Fix(购物车):地址编辑无法生效问退

This commit is contained in:
modendeveloper
2024-09-09 23:45:06 +08:00
parent 01199eeebd
commit 4434360f8a
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name" : "地标文化特产",
"appid" : "__UNI__281C173",
"appid" : "__UNI__7880B21",
"description" : "",
"versionName" : "4.0.0",
"versionCode" : 4,
+6 -5
View File
@@ -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
}