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) }, //保存服务项目