From 33526c2df0e78524d4d37a8d9742f679b49c7dc0 Mon Sep 17 00:00:00 2001 From: linxi Date: Tue, 27 Aug 2024 18:14:57 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=97=E9=93=BA=E8=B5=84=E6=96=99):?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BA=97=E9=93=BA=E8=B5=84=E6=96=99--?= =?UTF-8?q?=E8=BF=9E=E7=BB=AD=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E4=BF=AE=E6=94=B9=EF=BC=8C=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=80=80=E5=87=BA=E5=88=B0=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E7=82=B9=E5=BA=97=E9=93=BA=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E4=BC=9A=E5=8F=8D=E5=A4=8D=E6=8F=90=E7=A4=BA=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=88=90=E5=8A=9F=E5=86=8D=E9=80=80=E5=87=BA=E6=9D=A5?= =?UTF-8?q?=EF=BC=8C=E5=BA=97=E9=93=BA=E8=B5=84=E8=B4=A8=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=BC=9A=E9=87=8D=E5=A4=8D=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innProfileEdit.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pagesInn/inn/innProfileEdit.vue b/pagesInn/inn/innProfileEdit.vue index 2a520e2..91b4ca7 100644 --- a/pagesInn/inn/innProfileEdit.vue +++ b/pagesInn/inn/innProfileEdit.vue @@ -229,7 +229,8 @@ export default { 'qrcode': '', 'tips': '', 'type': '' - } + }, + loading: false } }, onShow() { @@ -330,6 +331,9 @@ export default { }) }, submit() { + if(this.loading) { + return + } if (!this.innApplyInfo.logo) { this.$dialog.error('请上传店铺LOGO') return @@ -372,6 +376,7 @@ export default { if (param.coverType === 2) { param.cover = param.coverVideo } + this.loading = true uni.showLoading() postHotelInfoEdit(param).then((res) => { uni.hideLoading() @@ -380,11 +385,13 @@ export default { content: '修改成功!', showCancel: false, success: () => { + this.loading = false uni.navigateBack() } }) }).catch((err) => { uni.hideLoading() + this.loading = false uni.showToast({ title: err.msg + '', icon: 'none',