Commit 38e945e57f49ddd04656b295ea250976ce3f0dcd
1 parent
dbb3fe32
详情页走通用跳转
Showing
1 changed file
with
20 additions
and
20 deletions
src/pages/pointsMall/pointsMall.vue
| ... | ... | @@ -221,26 +221,26 @@ export default { |
| 221 | 221 | */ |
| 222 | 222 | toDetail (item) { |
| 223 | 223 | if (this.isCNLive.value) { |
| 224 | - this.$router.push({ | |
| 225 | - path: "/goodDetails", | |
| 226 | - query: { | |
| 227 | - goodsId: item.id, | |
| 228 | - uid: this.getStore("uid") | |
| 229 | - } | |
| 230 | - }) | |
| 231 | - // 跳转封装 | |
| 232 | - // if (typeof this.$parent.gotoDetail === 'function') { | |
| 233 | - | |
| 234 | - // // 设置跳转参数 | |
| 235 | - // let params = { | |
| 236 | - // type: '5', | |
| 237 | - // to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | |
| 238 | - // shop_type: '' | |
| 239 | - // }; | |
| 240 | - | |
| 241 | - // // 页面跳转 | |
| 242 | - // this.$parent.gotoDetail(params); | |
| 243 | - // } | |
| 224 | + // this.$router.push({ | |
| 225 | + // path: "/goodDetails", | |
| 226 | + // query: { | |
| 227 | + // goodsId: item.id, | |
| 228 | + // uid: this.getStore("uid") | |
| 229 | + // } | |
| 230 | + // }) | |
| 231 | + 跳转封装 | |
| 232 | + if (typeof this.$parent.gotoDetail === 'function') { | |
| 233 | + | |
| 234 | + // 设置跳转参数 | |
| 235 | + let params = { | |
| 236 | + type: '5', | |
| 237 | + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | |
| 238 | + shop_type: '' | |
| 239 | + }; | |
| 240 | + | |
| 241 | + // 页面跳转 | |
| 242 | + this.$parent.gotoDetail(params); | |
| 243 | + } | |
| 244 | 244 | } else { |
| 245 | 245 | this.$parent.callApp(); |
| 246 | 246 | } | ... | ... |