|
@@ -109,7 +109,7 @@
|
|
|
<el-button type="primary" @click="getInfo">确 定</el-button>
|
|
<el-button type="primary" @click="getInfo">确 定</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog title="充值" :visible.sync="cztVisible" width="500px">
|
|
|
|
|
|
|
+ <el-dialog title="充值" :visible.sync="cztVisible" width="500px" @close="closeCz()">
|
|
|
<div class="biaoti">
|
|
<div class="biaoti">
|
|
|
温馨提示
|
|
温馨提示
|
|
|
</div>
|
|
</div>
|
|
@@ -448,19 +448,21 @@
|
|
|
showTime,
|
|
showTime,
|
|
|
...mapMutations(['setUserInfo', 'setBaseInfo']),
|
|
...mapMutations(['setUserInfo', 'setBaseInfo']),
|
|
|
getInfo() {
|
|
getInfo() {
|
|
|
- this.timer = null
|
|
|
|
|
- this.time = {}
|
|
|
|
|
- getrecharge(this.czForm).then(res => {
|
|
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ clearInterval(that.timer)
|
|
|
|
|
+ that.timer = null
|
|
|
|
|
+ that.time = {}
|
|
|
|
|
+ getrecharge(that.czForm).then(res => {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
- this.czVisible = false
|
|
|
|
|
- this.cztVisible = true
|
|
|
|
|
- this.czForm = res.data
|
|
|
|
|
- this.qrCodeText = res.data.address
|
|
|
|
|
- if (this.timer) {
|
|
|
|
|
- clearInterval(this.timer)
|
|
|
|
|
|
|
+ that.czVisible = false
|
|
|
|
|
+ that.cztVisible = true
|
|
|
|
|
+ that.czForm = res.data
|
|
|
|
|
+ that.qrCodeText = res.data.address
|
|
|
|
|
+ if (that.timer) {
|
|
|
|
|
+ clearInterval(that.timer)
|
|
|
}
|
|
}
|
|
|
- this.timer = setInterval(() => {
|
|
|
|
|
- this.time = timeComputed(res.data.endtime * 1000)
|
|
|
|
|
|
|
+ that.timer = setInterval(() => {
|
|
|
|
|
+ that.time = timeComputed(res.data.endtime * 1000)
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
|
|
|
|
|
})
|
|
})
|
|
@@ -663,10 +665,10 @@
|
|
|
},
|
|
},
|
|
|
//关闭充值
|
|
//关闭充值
|
|
|
closeCz() {
|
|
closeCz() {
|
|
|
- this.czVisible = false
|
|
|
|
|
|
|
+ this.cztVisible = false
|
|
|
|
|
+ clearInterval(this.timer)
|
|
|
this.czForm = {
|
|
this.czForm = {
|
|
|
recharge_num: '',
|
|
recharge_num: '',
|
|
|
- image: ''
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 充值提交
|
|
// 充值提交
|