完善问题件微信端签名

This commit is contained in:
mengxiaolong
2020-08-13 15:49:06 +08:00
parent 5996111c40
commit 1980e150ae

View File

@@ -670,13 +670,27 @@ export default {
} }
} }
} else { } else {
// 不是微信签名回调时清空保存的数据
localStorage.removeItem('insurantSignInfo') localStorage.removeItem('insurantSignInfo')
localStorage.removeItem('policyholderSignInfo') localStorage.removeItem('policyholderSignInfo')
localStorage.removeItem('agreementChecked') localStorage.removeItem('agreementChecked')
localStorage.removeItem('problemReplay') localStorage.removeItem('problemReplay')
// 转账不成功类型保存的数据
localStorage.removeItem('resolveType') localStorage.removeItem('resolveType')
localStorage.removeItem('problemBank') localStorage.removeItem('problemBank')
localStorage.removeItem('problemCard') localStorage.removeItem('problemCard')
localStorage.removeItem('problemBankCode')
// 补充资料问题件保存数据
localStorage.removeItem('insurantIdCardAUploadResult')
localStorage.removeItem('insurantIdCardBUploadResult')
localStorage.removeItem('policyholderIdCardAUploadResult')
localStorage.removeItem('policyholderIdCardBUploadResult')
localStorage.removeItem('policyholderBankCardAUploadResult')
localStorage.removeItem('insurantIdCardA')
localStorage.removeItem('insurantIdCardB')
localStorage.removeItem('policyholderIdCardA')
localStorage.removeItem('policyholderIdCardB')
localStorage.removeItem('policyholderBankCardA')
} }
// localstorage存在投保人签名信息 // localstorage存在投保人签名信息
@@ -706,30 +720,25 @@ export default {
{ {
// localstorage存在处理类型回显处理类型 // localstorage存在处理类型回显处理类型
if (localStorage.getItem('resolveType')) { if (localStorage.getItem('resolveType')) {
console.log('转账不成功类型:::回显处理方式')
this.transfer.mode = Number(localStorage.getItem('resolveType')) this.transfer.mode = Number(localStorage.getItem('resolveType'))
} }
// localstorage存在银行名称回显银行名称 // localstorage存在银行名称回显银行名称
if (localStorage.getItem('problemBank')) { if (localStorage.getItem('problemBank')) {
console.log('转账不成功类型:::回显银行名称')
this.transfer.bank = localStorage.getItem('problemBank') this.transfer.bank = localStorage.getItem('problemBank')
} }
// localstorage存在银行卡号回显银行卡号 // localstorage存在银行卡号回显银行卡号
if (localStorage.getItem('problemCard')) { if (localStorage.getItem('problemCard')) {
console.log('转账不成功类型:::回显银行卡号')
this.transfer.card = localStorage.getItem('problemCard') this.transfer.card = localStorage.getItem('problemCard')
} }
if (localStorage.getItem('problemBankCode')) { if (localStorage.getItem('problemBankCode')) {
console.log('转账不成功类型:::保存银行编码')
this.transfer.bankCode = localStorage.getItem('problemBankCode') this.transfer.bankCode = localStorage.getItem('problemBankCode')
} }
// 签名回调回显银行卡照片 // 签名回调回显银行卡照片
if (localStorage.getItem('bankcardA')) { if (localStorage.getItem('bankcardA')) {
console.log('转账不成功类型:::回显银行卡照片')
this.transfer.cardPhoto.push({ this.transfer.cardPhoto.push({
content: localStorage.getItem('bankcardA') content: localStorage.getItem('bankcardA')
}) })
@@ -748,9 +757,7 @@ export default {
// 签名回调保存被保人身份证头像面上传结果 // 签名回调保存被保人身份证头像面上传结果
if (localStorage.getItem('insurantIdCardAUploadResult')) { if (localStorage.getItem('insurantIdCardAUploadResult')) {
this.supplement.insurantIdCardA.push({ this.supplement.insurantIdCardAUploadResult = JSON.parse(localStorage.getItem('insurantIdCardAUploadResult'))
content: localStorage.getItem('insurantIdCardAUploadResult')
})
} }
// 签名回调回显被保人身份证国徽面照片 // 签名回调回显被保人身份证国徽面照片
@@ -762,9 +769,7 @@ export default {
// 签名回调回显被保人身份证国徽面 // 签名回调回显被保人身份证国徽面
if (localStorage.getItem('insurantIdCardBUploadResult')) { if (localStorage.getItem('insurantIdCardBUploadResult')) {
this.supplement.insurantIdCardB.push({ this.supplement.insurantIdCardBUploadResult = JSON.parse(localStorage.getItem('insurantIdCardBUploadResult'))
content: localStorage.getItem('insurantIdCardBUploadResult')
})
} }
// 签名回调回显投保人身份证头像面 // 签名回调回显投保人身份证头像面
@@ -797,13 +802,13 @@ export default {
content: localStorage.getItem('policyholderBankCardA') content: localStorage.getItem('policyholderBankCardA')
}) })
} }
}
// 签名回调后保存转账不成功上传银行卡照片结果信息 // 签名回调后保存转账不成功上传银行卡照片结果信息
if (localStorage.getItem('transferCardUploadResult')) { if (localStorage.getItem('transferCardUploadResult')) {
this.transfer.cardUploadResult = JSON.parse(localStorage.getItem('transferCardUploadResult')) this.transfer.cardUploadResult = JSON.parse(localStorage.getItem('transferCardUploadResult'))
} }
} }
}
this.getBankList() this.getBankList()
this.getQuestionDetail() this.getQuestionDetail()
}, },