Commit 8b199cea83cb05392ba5d5105b39805f18ad07af
1 parent
e500a9a4
积分商城通用跳转增加渠道码
Showing
2 changed files
with
7 additions
and
6 deletions
src/pages/common/common.vue
| ... | ... | @@ -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 | 512 | // 按如果有params参数,并且有params.activityCode参数,设置activityCode参数 |
| 513 | 513 | if (params !== null && typeof params === 'object' && params.activityCode) { |
| 514 | - | |
| 514 | + | |
| 515 | 515 | // 设置渠道页面参数 |
| 516 | 516 | this.$set(options, 'activity_code', params.activityCode); |
| 517 | 517 | } | ... | ... |
src/pages/pointsMall/pointsMall.vue
| ... | ... | @@ -168,7 +168,8 @@ export default { |
| 168 | 168 | }, // tabs数据 |
| 169 | 169 | refreshGrade: false, // 是否刷新积分 |
| 170 | 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 | 514 | to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, |
| 514 | 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 | 522 | } else { | ... | ... |