| | |
| | | <view class="desc del t-green m-l-10" v-if="source==='select'" @click="selectAddress(item)"> |
| | | 选择此地址 |
| | | </view> |
| | | <view class="desc del t-green m-l-10" v-if="source==='home'" @click="selectAddress(item)"> |
| | | 按此地址定位 |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | ...item |
| | | }) |
| | | |
| | | |
| | | } |
| | | }, err => { |
| | | this.$nextTick(() => { |
| | |
| | | }) |
| | | }, |
| | | async selectAddress(item) { |
| | | await this.$message.confirm('确定选择此地址作为收货地址吗') |
| | | //携带,然后返回 |
| | | |
| | | if(this.source==='home'){ |
| | | this.$store.commit('setAddressDesc', '') |
| | | this.$store.commit('setDefaultAddress', { |
| | | ...item |
| | | }) |
| | | }else{ |
| | | await this.$message.confirm('确定选择此地址作为收货地址吗') |
| | | this.$store.commit('setDefaultAddress', { |
| | | ...item |
| | | }) |
| | | |
| | | } |
| | | this.backpage() |
| | | }, |
| | | async deleteAddress(item) { |