// import '@/common/pc.js' import Vue from 'vue' import App from './App' import store from './store' import MinCache from './common/util/MinCache.js' import tip from './common/util/tip.js' import configService from './common/service/config.service.js' import router from './common/router' import { RouterMount } from './plugin/uni-simple-router/index.js' import { mdSig } from '@/common/util/md.js' import VueSignaturePad from "vue-signature-pad"; // request请求 import { http } from '@/common/service/service.js' import home from './pages/home/home.vue' import people from './pages/user/people.vue' import mySelect from './components/my-componets/my-select.vue' import myImageUpload from './components/my-componets/my-image-upload.vue' import myPage from './components/my-componets/my-page.vue' import basics from './pages/basics/home.vue' import cuCustom from './plugin/colorui/components/cu-custom.vue' import autograph from '@/components/autograph/autograph.vue' import search from '@/components/search/nx-search.vue' import linPopup from '@/components/lin-popup/index.vue' import dayjs from "dayjs" //封装dayjs import showToast from "@/common/util/showToast.js" import methCommon from "@/common/util/meth.js" import uploades from "@/common/util/upload.js" //ui框架 import uView from "uview-ui"; Vue.use(uView); Vue.use(VueSignaturePad); // 注册缓存器 Vue.use(MinCache, { timeout: 6 }) Vue.prototype.$store = store Vue.prototype.$tip = tip Vue.prototype.$config = configService Vue.prototype.$sig = mdSig Vue.prototype.$http = http Vue.prototype.$dayjs = dayjs Vue.prototype.$showToast = showToast Vue.prototype.$methCommon = methCommon Vue.prototype.$uploades = uploades Vue.component('home', home) Vue.component('people', people) Vue.component('mySelect', mySelect) Vue.component('myImageUpload', myImageUpload) Vue.component('myPage', myPage) Vue.component('basics', basics) Vue.component('cu-custom', cuCustom) Vue.component('autograph', autograph) Vue.component('search', search) Vue.component('linPopup', linPopup) Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ store, MinCache, ...App }) //v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式 // #ifdef H5 RouterMount(app, '#app'); // #endif // #ifndef H5 app.$mount(); //为了兼容小程序及app端必须这样写才有效果 // #endif