main.js
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import Vue from 'vue'
import App from './App'
import store from '@/common/store'
import cuCustom from '@/static/colorui/components/cu-custom.vue'
import router from '@/common/router'
import tools from '@/common/utils/tools'
// import vconsole from 'vconsole' // 引入vconsole
// Vue.prototype.$vconsole = new vconsole() // 使用vconsole
// import 'http://res.wx.qq.com/open/js/jweixin-1.2.0.js'
// import '@/common/utils/sdk/sdk-h5.js'
// 取消hdk的显示
import {
API_URL
} from './env.js'
import shoproShare from '@/common/mixins/shopro-share'
Vue.mixin(shoproShare);
import {
RouterMount
} from 'uni-simple-router'
import api from '@/common/request/index'
Vue.prototype.$store = store;
Vue.prototype.$api = api;
Vue.prototype.$tools = tools;
Vue.prototype.$API_URL = API_URL;
Vue.component('cu-custom', cuCustom);
Vue.config.productionTip = false;
App.mpType = 'app';
const app = new Vue({
store,
...App
});
// #ifdef H5
import wxsdk from '@/common/wechat/sdk'
Vue.prototype.$wxsdk = wxsdk;
RouterMount(app, '#app');
// #endif
// #ifndef H5
app.$mount();
// #endif