Commit 69ce5891a883bb78ccfdd1a4e4c053587a55b8a8

Authored by zhiyangdu
1 parent 3d0c3561

ios地址更改多次提交

src/components/addressToast/addressToast.vue
... ... @@ -51,8 +51,8 @@ export default {
51 51 return {
52 52 itemInfo: null,
53 53 addressInfo: null,
54   - goodsId: null, // 兑换商品ID
55   - orderId: null, // 订单ID 先兑换后填地址使用
  54 + goodsId: this.$route.query.goodsId || null, // 兑换商品ID
  55 + orderId: this.$route.query.orderId || null, // 订单ID 先兑换后填地址使用
56 56 // drawRecordItemInfo: null // 中奖记录单条信息
57 57 };
58 58 },
... ... @@ -62,10 +62,6 @@ export default {
62 62 let addressId;
63 63 if (this.isiPhone.value) {
64 64 addressId = this.$route.query.addressId;
65   - // 因为iOS地址回选两次后goodsId丢失,所以页面加载时判断是否有商品goodsId
66   - if (this.$route.query.goodsId) {
67   - this.goodsId = this.$route.query.goodsId;
68   - }
69 65 } else {
70 66 addressId = window.localStorage.getItem("addressId") || this.$route.query.addressId;
71 67 }
... ... @@ -304,7 +300,6 @@ export default {
304 300 ext
305 301 );
306 302 }
307   - var giftId = this.$route.query.giftId || 0;
308 303 // 测试环境
309 304 window.location.href =
310 305 this.getApiVersion().addAddresss +
... ... @@ -315,7 +310,7 @@ export default {
315 310 encodeURIComponent(
316 311 "goodsId=" +
317 312 this.goodsId +
318   - "orderId=" +
  313 + "&orderId=" +
319 314 this.orderId +
320 315 "&pointsToast_control=" +
321 316 this.$parent.pointsToast_control
... ...
src/pages/goodDetails/goodDetails.vue
... ... @@ -146,7 +146,7 @@ export default {
146 146 methods: {
147 147 // 跳转网家家购买音频协议
148 148 toLink () {
149   -
  149 + window.location.href = "https://wjj.ys1.cnliveimg.com/term/liveFwxy.html"
150 150 },
151 151  
152 152 /**
... ...