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.
31 lines
801 B
31 lines
801 B
import Vue from 'vue'
|
|
import App from './App'
|
|
import mixin from '@/common/js/mixin.js';
|
|
import {sandBox} from './common/js/sandBox.js';
|
|
import {cookieStorage,isBirthday} from './common/js/utils.js';
|
|
import * as $shared from '@/common/js/shared.js';
|
|
|
|
// 每个页面都会进入mixin
|
|
Vue.mixin(mixin);
|
|
// #ifdef H5
|
|
import wechat from './common/js/wechat'
|
|
if(wechat.isWechat()){
|
|
Vue.prototype.$wechat =wechat;
|
|
}
|
|
// #endif
|
|
import config from './common/js/config.js'
|
|
import store from '@/store/index.js';
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.prototype.$shared = $shared;
|
|
Vue.prototype.$http = sandBox;
|
|
Vue.prototype.$cookieStorage = cookieStorage;
|
|
Vue.prototype.$config = config;
|
|
Vue.prototype.$store = store;
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App,
|
|
store
|
|
})
|
|
app.$mount()
|