|
|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 修改地址对话框 -->
|
|
|
- <el-dialog title="充值" :visible.sync="dialogTableVisible" width="500px">
|
|
|
+ <el-dialog title="充值" :visible.sync="dialogTableVisible" width="500px" @close="closeCz">
|
|
|
<div class="biaoti">
|
|
|
温馨提示
|
|
|
</div>
|
|
|
@@ -162,18 +162,29 @@
|
|
|
methods: {
|
|
|
...mapMutations(['setBaseInfo', 'setUserInfo']),
|
|
|
showTime,
|
|
|
+ closeCz() {
|
|
|
+ clearInterval(this.timer)
|
|
|
+ this.dialogTableVisible = false
|
|
|
+ this.form = {
|
|
|
+ recharge_num: ''
|
|
|
+ }
|
|
|
+ },
|
|
|
getInfo() {
|
|
|
- getrecharge(this.form).then(res => {
|
|
|
+ let that = this
|
|
|
+ clearInterval(that.timer)
|
|
|
+ that.time = {}
|
|
|
+ that.timer = null
|
|
|
+ getrecharge(that.form).then(res => {
|
|
|
console.log(res);
|
|
|
- this.czVisible = false
|
|
|
- this.dialogTableVisible = true
|
|
|
- this.form = res.data
|
|
|
- this.qrCodeText = res.data.address
|
|
|
- if(this.timer) {
|
|
|
- clearInterval(this.timer)
|
|
|
+ that.czVisible = false
|
|
|
+ that.dialogTableVisible = true
|
|
|
+ that.form = 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)
|
|
|
|
|
|
})
|