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