Commit 58b0671a76bb618818bceed6cd1564b713971972

Authored by zhiyangdu
1 parent 944180e4

跳转虚拟红包虚拟商品打开一个新的webview

src/pages/morePoints/morePoints.vue
... ... @@ -179,14 +179,25 @@ export default {
179 179 * *实物重新打开一个view为了兑换可以拿到app版本号做判断
180 180 */
181 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   - })
  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 + if (typeof this.$parent.gotoDetail === 'function') {
  191 +
  192 + // 设置跳转参数
  193 + let params = {
  194 + type: '5',
  195 + to: window.location.origin + '/html/select_good/1/#/goodDetails?goodsId=' + item.id+"&uid="+this.getStore("uid") + "&AppJump="+ (this.$route.query.AppJump || false),
  196 + shop_type: ''
  197 + };
  198 + // 传渠道码给原生
  199 + this.$parent.gotoDetail(params);
  200 + }
190 201 }else{
191 202 // 通用跳转跳转到商品详情页新打开webview
192 203 if (typeof this.$parent.gotoDetail === 'function') {
... ...