loading
This commit is contained in:
@@ -122,8 +122,15 @@ export default {
|
|||||||
this.$refs.child.active = false
|
this.$refs.child.active = false
|
||||||
},
|
},
|
||||||
async __confirmPoint (code, type) {
|
async __confirmPoint (code, type) {
|
||||||
|
this.loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: this.$t('common.loading'),
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
})
|
||||||
try {
|
try {
|
||||||
let res = await confirmPoint(code, type)
|
let res = await confirmPoint(code, type)
|
||||||
|
this.loading.close()
|
||||||
if (this.timer) {
|
if (this.timer) {
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
}
|
}
|
||||||
@@ -133,6 +140,7 @@ export default {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
this.loading.close()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toCancle () {
|
toCancle () {
|
||||||
|
|||||||
Reference in New Issue
Block a user