2022-05-03 21:35:39 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App'
|
|
|
|
|
import './uni.scss';
|
|
|
|
|
import './assets/common.scss'
|
|
|
|
|
import './assets/iconfont-weapp-icon.css'
|
|
|
|
|
import './assets/iconfont.css'
|
|
|
|
|
import store from './store'
|
|
|
|
|
Vue.prototype.$store = store;
|
|
|
|
|
// js
|
|
|
|
|
import tools from '@/tools/tools.js'
|
|
|
|
|
Vue.prototype.$tools = tools;
|
|
|
|
|
// json
|
|
|
|
|
import data4 from '@/tools/data4.js'
|
|
|
|
|
Vue.prototype.weightInfo = data4;
|
|
|
|
|
//请求
|
|
|
|
|
import http from '@/tools/https.js'
|
|
|
|
|
Vue.prototype.$http = http;
|
|
|
|
|
//接口
|
|
|
|
|
import model from '@/tools/model.js'
|
|
|
|
|
Vue.prototype.$model = model;
|
|
|
|
|
|
2022-05-11 09:24:06 +08:00
|
|
|
// 环境配置
|
|
|
|
|
import config from './config.js'
|
|
|
|
|
Vue.prototype.config = config;
|
|
|
|
|
|
2022-05-03 21:35:39 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
App.mpType = 'app'
|
|
|
|
|
//让页面onLoad在onLaunch后执行
|
|
|
|
|
Vue.prototype.$onLaunched = new Promise(resolve => {
|
2022-05-11 09:24:06 +08:00
|
|
|
Vue.prototype.$isResolve = resolve
|
2022-05-03 21:35:39 +08:00
|
|
|
})
|
|
|
|
|
const app = new Vue({
|
2022-05-11 09:24:06 +08:00
|
|
|
...App
|
2022-05-03 21:35:39 +08:00
|
|
|
})
|
|
|
|
|
app.$mount()
|