Commit 8b199cea83cb05392ba5d5105b39805f18ad07af

Authored by zhiyangdu
1 parent e500a9a4

积分商城通用跳转增加渠道码

src/pages/common/common.vue
@@ -507,11 +507,11 @@ @@ -507,11 +507,11 @@
507 }; 507 };
508 508
509 // 判断是否是请求商品详情页面 509 // 判断是否是请求商品详情页面
510 - if (options.type == '2') { 510 + if (options.type == '2' || options.type == '5') {
511 511
512 // 按如果有params参数,并且有params.activityCode参数,设置activityCode参数 512 // 按如果有params参数,并且有params.activityCode参数,设置activityCode参数
513 if (params !== null && typeof params === 'object' && params.activityCode) { 513 if (params !== null && typeof params === 'object' && params.activityCode) {
514 - 514 +
515 // 设置渠道页面参数 515 // 设置渠道页面参数
516 this.$set(options, 'activity_code', params.activityCode); 516 this.$set(options, 'activity_code', params.activityCode);
517 } 517 }
src/pages/pointsMall/pointsMall.vue
@@ -168,7 +168,8 @@ export default { @@ -168,7 +168,8 @@ export default {
168 }, // tabs数据 168 }, // tabs数据
169 refreshGrade: false, // 是否刷新积分 169 refreshGrade: false, // 是否刷新积分
170 version: this.$route.query.version, //长版本号(ios) 170 version: this.$route.query.version, //长版本号(ios)
171 - ver: this.$route.query.version //短版本号(Android) 171 + ver: this.$route.query.version, //短版本号(Android)
  172 + activityCode: "ds_jfsc", // 埋点统计
172 } 173 }
173 }, 174 },
174 //部件 175 //部件
@@ -513,9 +514,9 @@ export default { @@ -513,9 +514,9 @@ export default {
513 to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, 514 to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id,
514 shop_type: '' 515 shop_type: ''
515 }; 516 };
516 -  
517 - // 页面跳转  
518 - this.$parent.gotoDetail(params); 517 + this.$parent.gotoDetail(params, {
  518 + activityCode: this.activityCode ? this.activityCode : '' // 添加页面渠道码
  519 + });
519 } 520 }
520 } 521 }
521 } else { 522 } else {