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',