Admin
4 天以前 bd6818fc9d40f343547bafca0743658f3c0379dc
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
import Vue from 'vue'
import App from './App'
import AjaxRequest from '@/utils/AjaxRequest.js';
import AjaxRequestWcs from '@/utils/AjaxRequestWcs.js';
import DateTool from '@/utils/DateTool.js';
import UserTool from '@/utils/UserTool.js';
import CommonMethod from '@/utils/CommonMethod.js'
import xflSelect from './components/xfl-select/xfl-select.vue';
import wybPopup from '@/components/wyb-popup/wyb-popup.vue';
Vue.config.productionTip = false;
App.mpType = 'app';
 
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);
 
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore);
 
// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare);
 
//引入下拉插件 https://ext.dcloud.net.cn/plugin?id=518
Vue.component('xfl-select', xflSelect);
 
//引入模态框插件 https://ext.dcloud.net.cn/plugin?id=2504
Vue.component('wyb-popup', wybPopup);
 
//引入ajaxRequest
Vue.prototype.$AjaxRequest = AjaxRequest;
 
//引入ajaxRequest
Vue.prototype.$AjaxRequestWcs = AjaxRequestWcs;
 
//引入DateTool
Vue.prototype.$DateTool = DateTool;
 
//引入UserTool
Vue.prototype.$UserTool = UserTool;
 
Vue.prototype.$CommonMethod = CommonMethod;
const app = new Vue({
    ...App
})
 
app.$mount()