浏览代码

commit -m 商品收藏

zhengjinyi 3 年之前
父节点
当前提交
652bbd8acb
共有 4 个文件被更改,包括 26 次插入2 次删除
  1. 7 0
      pages.json
  2. 0 1
      pages/goods/product.vue
  3. 7 0
      pages/login/logincode.vue
  4. 12 1
      pages/tabBar/user/user.vue

+ 7 - 0
pages.json

@@ -383,6 +383,13 @@
                         "navigationBarTitleText": "活动商品",
                         "enablePullDownRefresh": true
                     }
+                },
+                {
+                    "path": "collection/collection",
+                    "style": {
+                        "navigationBarTitleText": "收藏商品",
+                        "enablePullDownRefresh": true
+                    }
                 }
             ]
         },

+ 0 - 1
pages/goods/product.vue

@@ -707,7 +707,6 @@
 							Um_Key_SourcePage: '商品详情购物车入口',
 						})
 					}		
-					// this.$api.navigateTo('/pages/goods/cart')
 					this.$api.navigateTo('/pages/goods/cart-index')
 				}else{
 					this.$api.navigateTo('/pages/login/login?type=1')

+ 7 - 0
pages/login/logincode.vue

@@ -60,6 +60,13 @@
 				}
 				this.isUserInfo = false
 				this.params.unionId = uni.getStorageSync('unionId')
+				// 友盟埋点邀请码确认登录点击事件
+				if(process.env.NODE_ENV != 'development'){
+					this.$uma.trackEvent('Um_Event_InvitationCode', {
+						Um_Key_PageName: '邀请码登录',
+						Um_Key_SourcePage: '邀请码页面',
+					})
+				}
 				this.GetUserProfile()
 			},
 			navigatorRegirst(url){

+ 12 - 1
pages/tabBar/user/user.vue

@@ -27,7 +27,7 @@
 						<view class="user-item">
 							<text class="u-p" @click="navigator('/pages/login/login')">登录商城了解更多产品信息吧!</text>
 						</view>
-						<view class="user-code" @click="navigatorNex('/pages/login/logincode')">邀请码登录></view>
+						<view class="user-code" @click="navigatorLoginCode('/pages/login/logincode')">邀请码登录></view>
 					</view>
 				</view>
 				<!-- 我的资产 -->
@@ -419,6 +419,17 @@
 				}
 				this.$api.navigateTo(url)
 			},
+			navigatorLoginCode(){
+				// 友盟埋点普通机构升级点击事件
+				if(process.env.NODE_ENV != 'development'){
+					this.$uma.trackEvent('Um_Event_LoginCodeBtn', {
+						Um_Key_ClubName: `${this.name}`,
+						Um_Key_PageName: '邀请码登录',
+						Um_Key_SourcePage: '个人中心',
+					})
+				}
+				this.$api.navigateTo(url)
+			},
 			navigatorNex(url){
 				if(!this.hasLogin){
 					this.$api.navigateTo(url)