import Vue from 'vue' import App from './App' // 引入全局uView import uView from '@/uni_modules/uview-ui' import echarts from '@/components/echarts-uniapp/echarts-uniapp.vue'; // vuex import store from './store' import * as dd from 'dingtalk-jsapi' import { dDingJudgeEnvPlatform } from 'utils/isDing.js' import {DICT_TYPE, getDictDataLabel, getDictDatas, getDictDatas2} from "./utils/dict"; window.wx = {} // 将 dict 方法挂载到全局对象上 Vue.config.productionTip = false Vue.prototype.$store = store Vue.prototype.getDictDatas = getDictDatas Vue.prototype.getDictDatas2 = getDictDatas2 Vue.prototype.getDictDataLabel = getDictDataLabel Vue.prototype.DICT_TYPE = DICT_TYPE Vue.prototype.$isDing = dDingJudgeEnvPlatform() Vue.component('echarts',echarts) App.mpType = 'app' Vue.use(uView) const app = new Vue({ store, ...App }) // 引入请求封装 require('./utils/request/index')(app) app.$mount()