From 9b0216c8579910e3a2e140d5801e27fd42cce075 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Tue, 17 Sep 2024 22:06:36 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=BE=85=E4=BB=98=E6=AC=BE?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E2=80=94=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A0=E6=95=88=EF=BC=88=E6=9C=BA=E5=9E=8B?= =?UTF-8?q?=EF=BC=9A=E8=8B=B9=E6=9E=9C12=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/MyOrder/index.vue | 48 ++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 23 deletions(-) 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) } } },