Fix:【商城小程序】待付款订单—修改地址没有确认弹窗,修改无效(机型:苹果12)

This commit is contained in:
modendeveloper
2024-09-17 22:06:36 +08:00
parent b5e23dda59
commit 9b0216c857
+25 -23
View File
@@ -276,30 +276,32 @@ export default {
addressId: this.addressId, addressId: this.addressId,
orderId: this._orderId orderId: this._orderId
} }
uni.showModal({ setTimeout(() => {
title:'确定修改地址吗?', uni.showModal({
content: '', title:'确定修改地址吗?',
showCancel: true, content: '',
cancelText: '取消', showCancel: true,
confirmText: '确认', cancelText: '取消',
success:(success)=>{ confirmText: '确认',
if(success.confirm) { success:(success)=>{
uni.showLoading() if(success.confirm) {
editAddress(params).then(res => { uni.showLoading()
uni.showToast({ editAddress(params).then(res => {
icon: 'success', uni.showToast({
title: '修改成功!' icon: 'success',
title: '修改成功!'
})
}).finally(() => {
uni.hideLoading()
}) })
}).finally(() => { }
uni.hideLoading() },
}) complete:(complete)=>{
} this.addressId = ''
}, this._orderId = ''
complete:(complete)=>{ },
this.addressId = '' })
this._orderId = '' }, 1000)
},
})
} }
} }
}, },