From 0cee7724678fdc37c4e31fdba417e405eee40e1a Mon Sep 17 00:00:00 2001 From: jyt <1592211625@qq.com> Date: Thu, 19 May 2022 18:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/details2.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index fb5b5cc..cfef005 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -539,6 +539,7 @@ ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法 isPageHide: false, // 是否息屏 duration: '', // 总时长 + isBand: false, // 阻止二次提交 }; }, computed: { @@ -846,8 +847,9 @@ title: '提示', content: msg, success: function(res) { - if (this.noClick) { - this.noClick= false; + that.isBand = true + if (that.noClick) { + that.noClick= false; if (res.confirm) { let parames = { id: that.customerId, @@ -861,11 +863,14 @@ } that.$u.post("/customer/updateValidInvalid", parames).then(res => { console.log(res) + that.isBand = false that.Thetapeidisshow = false; - }) + }).catch(e => { + that.isBand = false + }) } setTimeout(()=> { - this.noClick= true; + that.noClick= true; }, 2000) } else { // 这里是重复点击的判断 @@ -891,6 +896,7 @@ } } this.effective = false; + this.isBand = true let parames = { id: this.customerId, validInvalid: '', @@ -901,6 +907,8 @@ this.$u.post("/customer/updateValidInvalid", parames).then(res => { console.log(res) this.Thetapeidisshow = false; + }).catch(e=>{ + this.isBand = false }) }, radioChange(evt) {