From 560a41249cc171c7f6f24f71faef46fa1ce4fbd2 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 14 Jun 2024 16:04:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=85=A8=E9=80=89=E9=A2=84?= =?UTF-8?q?=E7=BA=A6=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/detailNursing/detailNursing.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/detailNursing/detailNursing.vue b/pages/detailNursing/detailNursing.vue index 2a5971e..84fb0e9 100644 --- a/pages/detailNursing/detailNursing.vue +++ b/pages/detailNursing/detailNursing.vue @@ -176,6 +176,7 @@ }, data() { return { + isSubmitConfirm: false, tips: "", isSignOutConfirm: false, isShowModal: false, //是否超过时间确认 @@ -417,6 +418,9 @@ //打卡 clock(files, type) { + if (this.isSubmitConfirm) { + return + } let title; switch (type) { case 1: @@ -431,6 +435,7 @@ default: title = '操作成功' } + this.isSubmitConfirm = true this.uploadImgs(files).then(res => { this.form.upload_list = res.map(item => { return { @@ -439,6 +444,7 @@ }) this.form.type = type this.$u.api.processSave(this.form).then(res1 => { + this.isSubmitConfirm = false uni.showToast({ icon: 'success', title @@ -451,8 +457,8 @@ this.tips = "用户服务次数已达到次数、总服务时长未满" this.isShowModal = true } - }) - }) + }).catch(err => this.isSubmitConfirm = false) + }).catch(err => this.isSubmitConfirm = false) }, //保存服务项目