diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index b0df1c1..76588f1 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -276,30 +276,32 @@ export default { addressId: this.addressId, orderId: this._orderId } - uni.showModal({ - title:'确定修改地址吗?', - content: '', - showCancel: true, - cancelText: '取消', - confirmText: '确认', - success:(success)=>{ - if(success.confirm) { - uni.showLoading() - editAddress(params).then(res => { - uni.showToast({ - icon: 'success', - title: '修改成功!' + setTimeout(() => { + uni.showModal({ + title:'确定修改地址吗?', + content: '', + showCancel: true, + cancelText: '取消', + confirmText: '确认', + success:(success)=>{ + if(success.confirm) { + uni.showLoading() + editAddress(params).then(res => { + uni.showToast({ + icon: 'success', + title: '修改成功!' + }) + }).finally(() => { + uni.hideLoading() }) - }).finally(() => { - uni.hideLoading() - }) - } - }, - complete:(complete)=>{ - this.addressId = '' - this._orderId = '' - }, - }) + } + }, + complete:(complete)=>{ + this.addressId = '' + this._orderId = '' + }, + }) + }, 1000) } } },