You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App'
|
|
|
|
|
|
|
|
// vuex
|
|
|
|
import store from './store'
|
|
|
|
|
|
|
|
// 引入全局uView
|
|
|
|
import uView from '@/uni_modules/uview-ui'
|
|
|
|
|
|
|
|
import mixin from './common/mixin'
|
|
|
|
|
|
|
|
import onfire from 'onfire.js'
|
|
|
|
|
|
|
|
import Define from './common/define.js'
|
|
|
|
|
|
|
|
import utils from './common/utils.js'
|
|
|
|
|
|
|
|
Vue.prototype.$store = store;
|
|
|
|
|
|
|
|
var fire = new onfire();
|
|
|
|
|
|
|
|
Vue.prototype.$fire = fire;
|
|
|
|
|
|
|
|
Vue.prototype.$Define = Define;
|
|
|
|
|
|
|
|
Vue.prototype.$utils = utils;
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
App.mpType = 'app'
|
|
|
|
Vue.use(uView)
|
|
|
|
|
|
|
|
// #ifdef MP
|
|
|
|
// 引入uView对小程序分享的mixin封装
|
|
|
|
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
|
|
|
|
Vue.mixin(mpShare)
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
Vue.mixin(mixin)
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
store,
|
|
|
|
fire,
|
|
|
|
...App
|
|
|
|
})
|
|
|
|
|
|
|
|
// 引入请求封装
|
|
|
|
require('./util/request/index')(app)
|
|
|
|
|
|
|
|
app.$mount()
|