Browse Source

按钮

dev
jyt 2 years ago
parent
commit
0cee772467
1 changed files with 12 additions and 4 deletions
  1. +12
    -4
      pages/mine/details2.vue

+ 12
- 4
pages/mine/details2.vue View File

@@ -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) {


Loading…
Cancel
Save