Commit 462827eb301d947e05e782d492ec846ed0958003
1 parent
fd3e1f43
抽奖记录地址信息回选
Showing
2 changed files
with
7 additions
and
3 deletions
src/components/addressToast/addressToast.vue
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| ... | ... | @@ -104,12 +104,16 @@ export default { |
| 104 | 104 | this.$refs.itemsInfo.getItemInfo(item, item.id); |
| 105 | 105 | }, |
| 106 | 106 | // 填写完地址回调 |
| 107 | - updateAddressInfo (orderId) { | |
| 107 | + updateAddressInfo (orderInfo) { | |
| 108 | + console.log(orderInfo); | |
| 108 | 109 | this.list.forEach(item => { |
| 109 | 110 | let obj = item; |
| 110 | 111 | for (let key in obj) { |
| 111 | - if (item.id == orderId) { | |
| 112 | + if (item.id == orderInfo.id) { | |
| 112 | 113 | this.$set(item, "shop_type", 2); |
| 114 | + this.$set(item, "address_name", orderInfo.name); | |
| 115 | + this.$set(item, "address_phone", orderInfo.phone); | |
| 116 | + this.$set(item, "address_address", orderInfo.address); | |
| 113 | 117 | } |
| 114 | 118 | } |
| 115 | 119 | }); | ... | ... |