main.js 912 字节
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 '@/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