Bladeren bron

Merge branch 'developerB' of http://git.caimei365.com/caimei-repository/caimei-applets-caimei into developerB

zhengjinyi 3 jaren geleden
bovenliggende
commit
2a2f1e0c5e
2 gewijzigde bestanden met toevoegingen van 32 en 23 verwijderingen
  1. 9 0
      components/cm-module/activityContact/index.vue
  2. 23 23
      main.js

+ 9 - 0
components/cm-module/activityContact/index.vue

@@ -102,7 +102,16 @@ export default {
             this.entryVisiable = visiable
         },
 		navigator(){
+            // 友盟自定义事件
+            if(process.env.NODE_ENV != 'development'){
+            	this.$uma.trackEvent('meibohui_cloud_click', {
+            		Um_Key_PageName: '云上美博会',
+            		Um_Key_PageCategory: '活动专题页面',
+            		Um_Key_SourcePage: '活动专题页面',
+            	})
+            }
 			this.$api.navigateTo('/pages/user/coupon/coupon-collection')
+            this.entryVisiable = false
 		},
         // 初始化红包入口状态
         initActivityEntry(begin, end) {

+ 23 - 23
main.js

@@ -24,35 +24,35 @@ Vue.component('scroll-top',scrollTop)
 Vue.component('city-Picker',CityPicker)
 
 Vue.prototype.$getStorage = function(key){
-	var userParam = uni.getStorageSync(key)
-	if (userParam != null && userParam != '' && userParam!= undefined) {
-		return userParam
-	}else{
-		return null
-	} 
+    var userParam = uni.getStorageSync(key)
+    if (userParam != null && userParam != '' && userParam!= undefined) {
+        return userParam
+    }else{
+        return null
+    } 
 }
 
 /**
  * 友盟+小程序统计
  */
 if(process.env.NODE_ENV != 'development'){
-	// #ifdef MP-WEIXIN
-	uma.init({
-		appKey: umtrackWxKey, //由友盟分配的APP_KEY
-		// 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
-		// 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
-		useOpenid: true,
-		// 使用openid进行统计时,是否授权友盟自动获取Openid,
-		// 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
-		autoGetOpenid: true,
-		debug: true, //是否打开调试模式
-		uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
-	})
-	uma.install = function (Vue) {
-		Vue.prototype.$uma = uma
-	}
-	Vue.use(uma)
-	// #endif
+// #ifdef MP-WEIXIN
+    uma.init({
+        appKey: umtrackWxKey, //由友盟分配的APP_KEY
+        // 使用Openid进行统计,此项为false时将使用友盟+uuid进行用户统计。
+        // 使用Openid来统计微信小程序的用户,会使统计的指标更为准确,对系统准确性要求高的应用推荐使用Openid。
+        useOpenid: true,
+        // 使用openid进行统计时,是否授权友盟自动获取Openid,
+        // 如若需要,请到友盟后台"设置管理-应用信息"(https://mp.umeng.com/setting/appset)中设置appId及secret
+        autoGetOpenid: true,
+        debug: true, //是否打开调试模式
+        uploadUserInfo: false // 自动上传用户信息,设为false取消上传,默认为false
+    })
+    uma.install = function (Vue) {
+        Vue.prototype.$uma = uma
+    }
+    Vue.use(uma)
+// #endif
 }
 
 // Vue实例化