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'; // new 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); // Vue.mixin(PayMixin) // 支付方法文件 // import pay from '@/static/js/pay.js'; // Vue.use(pay); 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