Commit d4b698c4cfe97c3ec9d7fab21235184c59ccdf29

Authored by zhiyangdu
1 parent 1c093395

地址信息回选优化

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