Commit 099b82eebca968579237152aa1274b57c45f63a9
1 parent
e4f9932c
商品页面跳转优化
Showing
1 changed file
with
10 additions
and
15 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -198,20 +198,18 @@ export default { | @@ -198,20 +198,18 @@ export default { | ||
| 198 | toDetail (item) { | 198 | toDetail (item) { |
| 199 | if (this.isCNLive.value) { | 199 | if (this.isCNLive.value) { |
| 200 | // 跳转封装 | 200 | // 跳转封装 |
| 201 | - // if (typeof this.$parent.gotoDetail === 'function') { | 201 | + if (typeof this.$parent.gotoDetail === 'function') { |
| 202 | 202 | ||
| 203 | - // // 设置跳转参数 | ||
| 204 | - // let params = { | ||
| 205 | - // type: '5', | ||
| 206 | - // to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | ||
| 207 | - // shop_type: '' | ||
| 208 | - // }; | 203 | + // 设置跳转参数 |
| 204 | + let params = { | ||
| 205 | + type: '5', | ||
| 206 | + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | ||
| 207 | + shop_type: '' | ||
| 208 | + }; | ||
| 209 | 209 | ||
| 210 | - // // 页面跳转 | ||
| 211 | - // this.$parent.gotoDetail(params); | ||
| 212 | - // } | ||
| 213 | - // 调用接刷新当前页面数据 | ||
| 214 | - this.getGoodsInfo(item.id) | 210 | + // 页面跳转 |
| 211 | + this.$parent.gotoDetail(params); | ||
| 212 | + } | ||
| 215 | } else { | 213 | } else { |
| 216 | this.$parent.callApp(); | 214 | this.$parent.callApp(); |
| 217 | } | 215 | } |
| @@ -337,9 +335,6 @@ export default { | @@ -337,9 +335,6 @@ export default { | ||
| 337 | this.pointsToast_control = true; | 335 | this.pointsToast_control = true; |
| 338 | // 礼品兑换弹框派发 | 336 | // 礼品兑换弹框派发 |
| 339 | this.$refs.itemsInfo.getItemInfo(this.goodsInfo, params.id) | 337 | this.$refs.itemsInfo.getItemInfo(this.goodsInfo, params.id) |
| 340 | - } else { | ||
| 341 | - // 调用back返回事件到积分商城首页 | ||
| 342 | - this.back(); | ||
| 343 | } | 338 | } |
| 344 | }, | 339 | }, |
| 345 | /** | 340 | /** |