Fix:2621 【商城小程序】订单详情—再买一单,修改收货地址确认框弹出之前地址已修改,点取消修改无法取消

This commit is contained in:
linxi
2024-11-20 16:34:22 +08:00
parent f5898444ab
commit 23a02352d7
2 changed files with 21 additions and 5 deletions
+20 -4
View File
@@ -392,10 +392,26 @@ export default {
let that = this;
uni.$on('chooseAddress', (res) => {
console.log('监听到选择收货地址:' + JSON.stringify(res));
that.addressInfo = res;
//地址切换也要重新计算一下
that.computedPrice('onLoad chooseAddress');
})
setTimeout(() => {
uni.showModal({
title:'确定修改地址吗?',
content: '',
showCancel: true,
cancelText: '取消',
confirmText: '确认',
success:(success)=>{
if(success.confirm) {
that.addressInfo = res;
//地址切换也要重新计算一下
that.computedPrice('onLoad chooseAddress');
}
},
complete:(complete)=>{
uni.hideLoading()
},
})
})
},1000)
if (that.$yroute.query.pinkid !== undefined) {
that.pinkId = that.$yroute.query.pinkid;
}