12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import Vue from 'vue'
- import App from './App'
- //import MyCommon from '@/components/Common.vue'
- //import CarLoading from '@/components/Loading.vue'
- import getOpenId from './utils/init.js'
- getOpenId.init()
- import 'remixicon/fonts/remixicon.css'
- import mixin from './utils/mixin.js'
- Vue.config.ignoredElements.push("wx-open-subscribe") ;
- Vue.prototype.carhelp=mixin
- import Vconsole from 'vconsole'
- //import './router' // 引入路由
- import router from './bobo-router'
- window.wx = {}
- // main.js
- import uView from "uview-ui";
- Vue.use(uView);
- Vue.config.productionTip = false
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- //Vue.component('my-common',MyCommon)
- //Vue.component('car-loading',CarLoading)
- //Vue.use(mixin)
- Vue.mixin({
- onLoad( option){
-
- if (option.test == 'test') {
- let vConsole = new Vconsole()
- }
- this.projectName = process.car.ProjectName;
- this.branchParameter=process.car.branchParameter;
-
-
- } ,methods:{
-
- gotoUrl(url){
- uni.navigateTo({
- url:"/"+url
- })
- }
- }
- })
- app.$mount()
|