|
@@ -7,7 +7,7 @@ import * as Regs from '@/common/config/common.js'
|
|
import { umtrackWxKey } from '@/utils/config.js'
|
|
import { umtrackWxKey } from '@/utils/config.js'
|
|
|
|
|
|
// 友盟依赖包
|
|
// 友盟依赖包
|
|
-import uma from 'umtrack-wx';
|
|
|
|
|
|
+import uma from 'umtrack-wx'
|
|
|
|
|
|
// 公共组件
|
|
// 公共组件
|
|
import { msg, modal,prePage } from'./utils/util'
|
|
import { msg, modal,prePage } from'./utils/util'
|
|
@@ -24,17 +24,18 @@ Vue.component('scroll-top',scrollTop)
|
|
Vue.component('city-Picker',CityPicker)
|
|
Vue.component('city-Picker',CityPicker)
|
|
|
|
|
|
Vue.prototype.$getStorage = function(key){
|
|
Vue.prototype.$getStorage = function(key){
|
|
- var userParam = uni.getStorageSync(key);
|
|
|
|
- if (userParam != null && userParam != "" && userParam!= undefined) {
|
|
|
|
- return userParam;
|
|
|
|
|
|
+ var userParam = uni.getStorageSync(key)
|
|
|
|
+ if (userParam != null && userParam != '' && userParam!= undefined) {
|
|
|
|
+ return userParam
|
|
}else{
|
|
}else{
|
|
- return null;
|
|
|
|
|
|
+ return null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 友盟+小程序统计
|
|
* 友盟+小程序统计
|
|
*/
|
|
*/
|
|
|
|
+/*
|
|
if(process.env.NODE_ENV != 'development'){
|
|
if(process.env.NODE_ENV != 'development'){
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
uma.init({
|
|
uma.init({
|
|
@@ -53,15 +54,15 @@ if(process.env.NODE_ENV != 'development'){
|
|
}
|
|
}
|
|
Vue.use(uma);
|
|
Vue.use(uma);
|
|
// #endif
|
|
// #endif
|
|
-}
|
|
|
|
|
|
+}*/
|
|
|
|
|
|
// Vue实例化
|
|
// Vue实例化
|
|
Vue.config.productionTip = false
|
|
Vue.config.productionTip = false
|
|
-Vue.prototype.$fire = new Vue();
|
|
|
|
-Vue.prototype.$store = store;
|
|
|
|
-Vue.prototype.$util = {msg,prePage,modal};
|
|
|
|
-Vue.prototype.$api = Api;
|
|
|
|
-Vue.prototype.$reg = Regs;
|
|
|
|
|
|
+Vue.prototype.$fire = new Vue()
|
|
|
|
+Vue.prototype.$store = store
|
|
|
|
+Vue.prototype.$util = {msg,prePage,modal}
|
|
|
|
+Vue.prototype.$api = Api
|
|
|
|
+Vue.prototype.$reg = Regs
|
|
|
|
|
|
App.mpType = 'app'
|
|
App.mpType = 'app'
|
|
|
|
|