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()
|