[FIX] 测试签名一直loading问题

This commit is contained in:
wangmingzhe
2020-01-06 15:00:09 +08:00
parent ffad10c76a
commit 71ebf81d67

View File

@@ -210,13 +210,29 @@ export default {
}, },
// 点击签名 // 点击签名
sign(val) { sign(val) {
console.log('签名参数',this.saleInsuredInfo.idNo,this.saleInsuredInfo.name,'keyword'+':'+ '签字日期','pageNo'+':'+ '1','index'+':'+ '1','offset'+':'+ '-150','pos'+':'+ '3')
let that = this let that = this
let time = 4
this.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
let timer = setInterval(() => {
time--
if (time <= 0) {
time = 0
clearInterval(timer)
this.$toast.clear()
}
}, 1000)
// this.$toast.loading({
// duration: 0, // 持续展示 toast
// forbidClick: true, // 禁用背景点击
// loadingType: 'spinner',
// message: '加载中……'
// })
if (val == '0') { if (val == '0') {
if (this.detailJump != '1') { if (this.detailJump != '1') {
if (this.relationToAppnt == '1') { if (this.relationToAppnt == '1') {
@@ -234,7 +250,7 @@ export default {
offset: '-150', offset: '-150',
pos: '3' pos: '3'
}).then(data => { }).then(data => {
this.$toast.clear() // this.$toast.clear()
if (JSON.parse(data).state == '1') { if (JSON.parse(data).state == '1') {
this.base64 = decodeURI(JSON.parse(data).sign) this.base64 = decodeURI(JSON.parse(data).sign)
this.appntSign.documentStatus = '3' this.appntSign.documentStatus = '3'