diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 2a2ab1d..455c998 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -539,6 +539,7 @@ ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法 isPageHide: false, // 是否息屏 duration: '', // 总时长 + isBand: false, // 阻止二次提交 }; }, computed: { @@ -847,8 +848,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, @@ -862,11 +864,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 { // 这里是重复点击的判断 @@ -892,6 +897,7 @@ } } this.effective = false; + this.isBand = true let parames = { id: this.customerId, validInvalid: '', @@ -902,6 +908,8 @@ this.$u.post("/customer/updateValidInvalid", parames).then(res => { console.log(res) this.Thetapeidisshow = false; + }).catch(e=>{ + this.isBand = false }) }, radioChange(evt) {