Commit 51449cce2fee39e84f5074c36bc7a39002411f73
1 parent
6581ddde
积分商城更多页跳转商品详情页做判断
Showing
1 changed file
with
26 additions
and
18 deletions
src/pages/morePoints/morePoints.vue
| ... | ... | @@ -173,26 +173,34 @@ export default { |
| 173 | 173 | */ |
| 174 | 174 | toDetail (item) { |
| 175 | 175 | if (this.isCNLive.value) { |
| 176 | - // this.$router.push({ | |
| 177 | - // path: "/goodDetails", | |
| 178 | - // query: { | |
| 179 | - // goodsId: item.id, | |
| 180 | - // uid: this.getStore("uid"), | |
| 181 | - // AppJump: this.$route.query.AppJump || false // 判断是否是APP跳转过来的 | |
| 182 | - // } | |
| 183 | - // }) | |
| 184 | - // 通用跳转跳转到商品详情页新打开webview | |
| 185 | - if (typeof this.$parent.gotoDetail === 'function') { | |
| 176 | + /** | |
| 177 | + * type 1实物 2优惠卷 3虚拟商品 | |
| 178 | + * *优惠卷路由跳转为了订单详情页跳转到优惠券列表页兑换返回直接关闭当前view | |
| 179 | + * *实物重新打开一个view为了兑换可以拿到app版本号做判断 | |
| 180 | + */ | |
| 181 | + if(this.$route.query.type == 2){ | |
| 182 | + this.$router.push({ | |
| 183 | + path: "/goodDetails", | |
| 184 | + query: { | |
| 185 | + goodsId: item.id, | |
| 186 | + uid: this.getStore("uid"), | |
| 187 | + AppJump: this.$route.query.AppJump || false // 判断是否是APP跳转过来的 | |
| 188 | + } | |
| 189 | + }) | |
| 190 | + }else{ | |
| 191 | + // 通用跳转跳转到商品详情页新打开webview | |
| 192 | + if (typeof this.$parent.gotoDetail === 'function') { | |
| 186 | 193 | |
| 187 | - // 设置跳转参数 | |
| 188 | - let params = { | |
| 189 | - type: '5', | |
| 190 | - to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | |
| 191 | - shop_type: '' | |
| 192 | - }; | |
| 194 | + // 设置跳转参数 | |
| 195 | + let params = { | |
| 196 | + type: '5', | |
| 197 | + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id, | |
| 198 | + shop_type: '' | |
| 199 | + }; | |
| 193 | 200 | |
| 194 | - // 页面跳转 | |
| 195 | - this.$parent.gotoDetail(params); | |
| 201 | + // 页面跳转 | |
| 202 | + this.$parent.gotoDetail(params); | |
| 203 | + } | |
| 196 | 204 | } |
| 197 | 205 | } else { |
| 198 | 206 | this.$parent.callApp(); | ... | ... |