Commit 69ce5891a883bb78ccfdd1a4e4c053587a55b8a8

Authored by zhiyangdu
1 parent 3d0c3561

ios地址更改多次提交

src/components/addressToast/addressToast.vue
@@ -51,8 +51,8 @@ export default { @@ -51,8 +51,8 @@ export default {
51 return { 51 return {
52 itemInfo: null, 52 itemInfo: null,
53 addressInfo: null, 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 // drawRecordItemInfo: null // 中奖记录单条信息 56 // drawRecordItemInfo: null // 中奖记录单条信息
57 }; 57 };
58 }, 58 },
@@ -62,10 +62,6 @@ export default { @@ -62,10 +62,6 @@ export default {
62 let addressId; 62 let addressId;
63 if (this.isiPhone.value) { 63 if (this.isiPhone.value) {
64 addressId = this.$route.query.addressId; 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 } else { 65 } else {
70 addressId = window.localStorage.getItem("addressId") || this.$route.query.addressId; 66 addressId = window.localStorage.getItem("addressId") || this.$route.query.addressId;
71 } 67 }
@@ -304,7 +300,6 @@ export default { @@ -304,7 +300,6 @@ export default {
304 ext 300 ext
305 ); 301 );
306 } 302 }
307 - var giftId = this.$route.query.giftId || 0;  
308 // 测试环境 303 // 测试环境
309 window.location.href = 304 window.location.href =
310 this.getApiVersion().addAddresss + 305 this.getApiVersion().addAddresss +
@@ -315,7 +310,7 @@ export default { @@ -315,7 +310,7 @@ export default {
315 encodeURIComponent( 310 encodeURIComponent(
316 "goodsId=" + 311 "goodsId=" +
317 this.goodsId + 312 this.goodsId +
318 - "orderId=" + 313 + "&orderId=" +
319 this.orderId + 314 this.orderId +
320 "&pointsToast_control=" + 315 "&pointsToast_control=" +
321 this.$parent.pointsToast_control 316 this.$parent.pointsToast_control
src/pages/goodDetails/goodDetails.vue
@@ -146,7 +146,7 @@ export default { @@ -146,7 +146,7 @@ export default {
146 methods: { 146 methods: {
147 // 跳转网家家购买音频协议 147 // 跳转网家家购买音频协议
148 toLink () { 148 toLink () {
149 - 149 + window.location.href = "https://wjj.ys1.cnliveimg.com/term/liveFwxy.html"
150 }, 150 },
151 151
152 /** 152 /**