73 lines
1.7 KiB
JavaScript
73 lines
1.7 KiB
JavaScript
import App from './App'
|
|
import store from './store';
|
|
import prototype from '@/static/js/toolclass/prototype.js';
|
|
import H5 from "@/static/js/index.js";
|
|
import newconfig from "@/static/js/newconfig.js";
|
|
|
|
Vue.use(newconfig);
|
|
Vue.prototype.$store = store;
|
|
Vue.prototype.$tst = 1;
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
Vue.config.productionTip = false;
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
import uView from "uview-ui";
|
|
Vue.use(uView);
|
|
// import VConsole from 'vconsole';
|
|
Vue.prototype.text = 1;
|
|
let wx = require('weixin-js-sdk');
|
|
// let $URL = require('urijs');
|
|
Vue.prototype.$wx = wx;
|
|
// Vue.prototype.$URL = $URL;
|
|
// 支付文件
|
|
import PayMixin from '@/static/js/mixin/PayMixin.js';
|
|
Vue.use(PayMixin);
|
|
try{
|
|
// new VConsole();
|
|
// console.log(vConsole,'vConsole');
|
|
// vConsole.hide()
|
|
}catch(e){
|
|
//TODO handle the exception
|
|
}
|
|
// Vue.mixin(PayMixin)
|
|
// 支付方法文件
|
|
// import pay from '@/static/js/pay.js';
|
|
// Vue.use(pay);
|
|
// 只有在开发环境下才加载vconsole
|
|
// if (process.env.NODE_ENV == 'development') {
|
|
// new VConsole();
|
|
// console.log(JSON.stringify(navigator,null,5),navigator,'userAgent')
|
|
// console.log(navigator['userAgent'],'userAgent')
|
|
// }
|
|
|
|
import tool from '@/static/js/toolclass/index.js';
|
|
Vue.use(prototype);
|
|
Vue.prototype.tool = tool;
|
|
// 自定义指令
|
|
import directive from '@/static/js/directive.js';
|
|
// import vuexLazy from './store/vuexLazy'
|
|
// Vue.use(vuexLazy)
|
|
// #ifdef VUE3
|
|
// Vue.mixin({
|
|
// mounted() {
|
|
// console.log('VUE加载');
|
|
// }
|
|
// });
|
|
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app,
|
|
store
|
|
}
|
|
}
|
|
// #endif
|