|
@@ -4,6 +4,9 @@ import App from './App'
|
|
|
import './services/index.js'
|
|
|
import * as Api from '@/common/config/caimeiApi.js'
|
|
|
import * as Regs from '@/common/config/common.js'
|
|
|
+import { umtrackWxKey } from '@/utils/config.js'
|
|
|
+import uma from 'umtrack-wx';
|
|
|
+
|
|
|
import { msg, modal,prePage } from'./utils/util'
|
|
|
import cuCustom from './components/cm-custom/cu-custom.vue'
|
|
|
import auCustom from './components/cm-custom/au-custom.vue'
|
|
@@ -25,10 +28,8 @@ Vue.prototype.$getStorage = function(key){
|
|
|
/**
|
|
|
* 友盟+小程序统计
|
|
|
*/
|
|
|
-// #ifdef MP-WEIXIN
|
|
|
-import { umtrackWxKey } from '@/utils/config.js'
|
|
|
-import uma from 'umtrack-wx';
|
|
|
if(process.env.NODE_ENV != 'development'){
|
|
|
+// #ifdef MP-WEIXIN
|
|
|
uma.init({
|
|
|
appKey: umtrackWxKey, //由友盟分配的APP_KEY
|
|
|
// 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
|
|
@@ -44,8 +45,8 @@ if(process.env.NODE_ENV != 'development'){
|
|
|
Vue.prototype.$uma = uma;
|
|
|
}
|
|
|
Vue.use(uma);
|
|
|
-}
|
|
|
// #endif
|
|
|
+}
|
|
|
|
|
|
// Vue实例化
|
|
|
Vue.config.productionTip = false
|
|
@@ -54,6 +55,7 @@ Vue.prototype.$store = store;
|
|
|
Vue.prototype.$util = {msg,prePage,modal};
|
|
|
Vue.prototype.$api = Api;
|
|
|
Vue.prototype.$reg = Regs;
|
|
|
+
|
|
|
App.mpType = 'app'
|
|
|
|
|
|
const app = new Vue({
|