Fix(购物车):地址编辑无法生效问退
This commit is contained in:
+6
-5
@@ -259,7 +259,7 @@
|
||||
<image :src="webUrl+'/orderIcon/编辑.png'" style="width: 30rpx;height: 30rpx" class="v12-mr-1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class=" v12-px-3">
|
||||
<view class=" v12-px-3 v12-mb-3">
|
||||
<view class="v12-py-2 v12-primary-text v12-font-28 v12-radius-60 v12-text-center plus-btn" @click="addNewAddress">+ 添加新地址</view>
|
||||
</view>
|
||||
|
||||
@@ -328,14 +328,15 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.getCart()
|
||||
this.getAddress()
|
||||
},
|
||||
onLoad() {
|
||||
uni.$on('chooseAddress', (res) => {
|
||||
this.addressInfo = res;
|
||||
})
|
||||
this.getAddress()
|
||||
},
|
||||
onShow() {
|
||||
uni.$on('chooseAddress', (res) => {
|
||||
this.addressInfo = res;
|
||||
this.$forceUpdate()
|
||||
})
|
||||
if (!this.isLoad) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user