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;

// 环境配置
import config from './config.js'
Vue.prototype.config = config;
console.log("uni.setStorageSync", store)
Vue.config.productionTip = false
App.mpType = 'app'
//让页面onLoad在onLaunch后执行
Vue.prototype.$onLaunched = new Promise(resolve => {
  Vue.prototype.$isResolve = resolve
})
const app = new Vue({
  ...App
})
app.$mount()
