Commit d4b698c4cfe97c3ec9d7fab21235184c59ccdf29
1 parent
1c093395
地址信息回选优化
Showing
1 changed file
with
7 additions
and
3 deletions
src/components/addressToast/addressToast.vue
| @@ -253,8 +253,12 @@ export default { | @@ -253,8 +253,12 @@ export default { | ||
| 253 | * 确定 | 253 | * 确定 |
| 254 | */ | 254 | */ |
| 255 | confirm () { | 255 | confirm () { |
| 256 | + debugger | ||
| 256 | // 兑换商品的ID分两种一种是订单ID填写地址;一种是有商品地址填写地址 | 257 | // 兑换商品的ID分两种一种是订单ID填写地址;一种是有商品地址填写地址 |
| 257 | - let orderInfo; | 258 | + let orderInfo = { |
| 259 | + addressId: null, | ||
| 260 | + id: null, // 兑换商品ID | ||
| 261 | + }; | ||
| 258 | if (this.$route.query.orderId || this.orderId) { | 262 | if (this.$route.query.orderId || this.orderId) { |
| 259 | orderInfo = { | 263 | orderInfo = { |
| 260 | addressId: this.$route.query.addressId || this.addressInfo.id, | 264 | addressId: this.$route.query.addressId || this.addressInfo.id, |
| @@ -266,8 +270,6 @@ export default { | @@ -266,8 +270,6 @@ export default { | ||
| 266 | id: this.$route.query.goodsId || this.goodsId, // 兑换商品ID | 270 | id: this.$route.query.goodsId || this.goodsId, // 兑换商品ID |
| 267 | }; | 271 | }; |
| 268 | } | 272 | } |
| 269 | - // 隐藏弹框 | ||
| 270 | - this.$parent.pointsToast_control = false; | ||
| 271 | // 安卓手机下特殊处理 | 273 | // 安卓手机下特殊处理 |
| 272 | if (this.isAndroid.value) { | 274 | if (this.isAndroid.value) { |
| 273 | // 兑换商品的ID分两种一种是订单ID填写地址;一种是有商品地址填写地址 | 275 | // 兑换商品的ID分两种一种是订单ID填写地址;一种是有商品地址填写地址 |
| @@ -291,6 +293,8 @@ export default { | @@ -291,6 +293,8 @@ export default { | ||
| 291 | // 最新地址信息回传给父组件 | 293 | // 最新地址信息回传给父组件 |
| 292 | this.$parent.addressInfo = this.addressInfo; | 294 | this.$parent.addressInfo = this.addressInfo; |
| 293 | this.addLuckDrawAddress(orderInfo); | 295 | this.addLuckDrawAddress(orderInfo); |
| 296 | + // 隐藏弹框 | ||
| 297 | + this.$parent.pointsToast_control = false; | ||
| 294 | }, | 298 | }, |
| 295 | // 更改地址 | 299 | // 更改地址 |
| 296 | changeAddress () { | 300 | changeAddress () { |