1 Star 1 Fork 1K

暮文 / 萤火商城V2.0-uniapp端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 759 Bytes
一键复制 编辑 原始数据 按行查看 历史
萤火科技 提交于 2021-03-17 09:07 . 项目初始化
import Vue from 'vue'
import App from './App'
import store from './store'
import uView from 'uview-ui'
import bootstrap from './core/bootstrap'
import {
getPlatform,
navTo,
showToast,
showSuccess,
showError,
getShareUrlParams
} from './utils/app'
import './js_sdk/ican-H5Api/ican-H5Api'
Vue.config.productionTip = false
App.mpType = 'app'
// 当前运行的终端
Vue.prototype.$platform = getPlatform()
// 载入uView库
Vue.use(uView)
// 挂载全局函数
Vue.prototype.$toast = showToast
Vue.prototype.$success = showSuccess
Vue.prototype.$error = showError
Vue.prototype.$navTo = navTo
Vue.prototype.$getShareUrlParams = getShareUrlParams
// 实例化应用
const app = new Vue({
...App,
store,
created: bootstrap
})
app.$mount()
1
https://gitee.com/muwen/yoshop2.0-uniapp.git
git@gitee.com:muwen/yoshop2.0-uniapp.git
muwen
yoshop2.0-uniapp
萤火商城V2.0-uniapp端
master

搜索帮助