Browse Source

Merge branch 'dev' of http://git.2weisou.com/liumin/NewZkgj into dev

dev
douzhuo 2 years ago
parent
commit
05adf74dac
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'), // 唯一值区分每个页面的方法 ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
isPageHide: false, // 是否息屏 isPageHide: false, // 是否息屏
duration: '', // 总时长 duration: '', // 总时长
isBand: false, // 阻止二次提交
}; };
}, },
computed: { computed: {
@@ -847,8 +848,9 @@
title: '提示', title: '提示',
content: msg, content: msg,
success: function(res) { success: function(res) {
if (this.noClick) {
this.noClick= false;
that.isBand = true
if (that.noClick) {
that.noClick= false;
if (res.confirm) { if (res.confirm) {
let parames = { let parames = {
id: that.customerId, id: that.customerId,
@@ -862,11 +864,14 @@
} }
that.$u.post("/customer/updateValidInvalid", parames).then(res => { that.$u.post("/customer/updateValidInvalid", parames).then(res => {
console.log(res) console.log(res)
that.isBand = false
that.Thetapeidisshow = false; that.Thetapeidisshow = false;
})
}).catch(e => {
that.isBand = false
})
} }
setTimeout(()=> { setTimeout(()=> {
this.noClick= true;
that.noClick= true;
}, 2000) }, 2000)
} else { } else {
// 这里是重复点击的判断 // 这里是重复点击的判断
@@ -892,6 +897,7 @@
} }
} }
this.effective = false; this.effective = false;
this.isBand = true
let parames = { let parames = {
id: this.customerId, id: this.customerId,
validInvalid: '', validInvalid: '',
@@ -902,6 +908,8 @@
this.$u.post("/customer/updateValidInvalid", parames).then(res => { this.$u.post("/customer/updateValidInvalid", parames).then(res => {
console.log(res) console.log(res)
this.Thetapeidisshow = false; this.Thetapeidisshow = false;
}).catch(e=>{
this.isBand = false
}) })
}, },
radioChange(evt) { radioChange(evt) {


Loading…
Cancel
Save