mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 11:16:45 +08:00
修改微信保存回显图片
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<div class="item">
|
||||
<van-field label-class="labels" readonly label="银行卡照片"></van-field>
|
||||
<div class="cardList">
|
||||
<van-uploader :max-count="1" :after-read="cardUpload" @delete="transferBankCardDelete" name="card" v-model="transfer.cardPhoto" />
|
||||
<van-uploader :max-count="1" :after-read="cardUpload" @delete="transferBankCardDelete" name="bankcardA" v-model="transfer.cardPhoto" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -212,7 +212,7 @@ export default {
|
||||
show: false, //显示银行列表
|
||||
showDiscern: false, //是否开启银行卡识别
|
||||
clear: false, //是否清空银行卡识别数据
|
||||
cardUploadResult: []
|
||||
cardUploadResult: null
|
||||
},
|
||||
// 勾选协议
|
||||
checked: false,
|
||||
@@ -255,12 +255,21 @@ export default {
|
||||
switch (detail.name) {
|
||||
case 'policyholderIdCardA':
|
||||
this.supplement.policyholderIdCardAUploadResult = result
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('policyholderIdCardAUploadResult', JSON.stringify(result))
|
||||
}
|
||||
break
|
||||
case 'policyholderIdCardB':
|
||||
this.supplement.policyholderIdCardBUploadResult = result
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('policyholderIdCardBUploadResult', JSON.stringify(result))
|
||||
}
|
||||
break
|
||||
case 'policyholderBankCardA':
|
||||
this.supplement.policyholderBankCardAUploadResult = result
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('policyholderBankCardAUploadResult', JSON.stringify(result))
|
||||
}
|
||||
break
|
||||
}
|
||||
},
|
||||
@@ -297,9 +306,15 @@ export default {
|
||||
switch (detail.name) {
|
||||
case 'insurantIdCardA':
|
||||
this.supplement.insurantIdCardAUploadResult = result
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('insurantIdCardAUploadResult', JSON.stringify(result))
|
||||
}
|
||||
break
|
||||
case 'insurantIdCardB':
|
||||
this.supplement.insurantIdCardBUploadResult = result
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('insurantIdCardBUploadResult', JSON.stringify(result))
|
||||
}
|
||||
break
|
||||
}
|
||||
},
|
||||
@@ -318,17 +333,23 @@ export default {
|
||||
},
|
||||
// 转账不成功问题件添加银行卡照片
|
||||
async cardUpload(file, detail) {
|
||||
// 供微信签名回调回显图片
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem(detail.name, file.content)
|
||||
}
|
||||
let res = await this.afterRead(file)
|
||||
this.transfer.cardUploadResult.push({
|
||||
rgssUrl: res.path
|
||||
})
|
||||
this.transfer.cardUploadResult = {
|
||||
rgssUrl: res.path,
|
||||
imageInfoType: '3',
|
||||
subBusinessType: '0'
|
||||
}
|
||||
if (this.isWeixin) {
|
||||
localStorage.setItem('transferCardUploadResult', JSON.stringify(this.transfer.cardUploadResult))
|
||||
}
|
||||
},
|
||||
// 转账不成功问题件删除银行卡照片
|
||||
transferBankCardDelete() {
|
||||
this.transfer.cardUploadResult.splice(0)
|
||||
this.transfer.cardUploadResult = null
|
||||
},
|
||||
// 签名
|
||||
async autograph(personType) {
|
||||
@@ -556,13 +577,9 @@ export default {
|
||||
problemData.bankType = this.transfer.bankCode
|
||||
problemData.bankName = this.transfer.bank
|
||||
problemData.bankNo = this.transfer.card
|
||||
for (let item of this.transfer.cardUploadResult) {
|
||||
item.imageInfoType = '3'
|
||||
item.subBusinessType = '0'
|
||||
}
|
||||
// 选择非终止转账时上传银行卡照片
|
||||
if (this.transfer.mode !== 2) {
|
||||
problemData.list = this.transfer.cardUploadResult
|
||||
problemData.list.push(this.transfer.cardUploadResult)
|
||||
}
|
||||
}
|
||||
// 更新问题件数据
|
||||
@@ -663,41 +680,107 @@ export default {
|
||||
|
||||
// localstorage存在投保人签名信息
|
||||
if (localStorage.getItem('policyholderSignInfo')) {
|
||||
console.log('policyholderSignInfo', localStorage.getItem('policyholderSignInfo'))
|
||||
this.policyholderBase64 = localStorage.getItem('policyholderSignInfo')
|
||||
this.policyholderSigned = true
|
||||
}
|
||||
|
||||
// localstorage存在被保人签名信息
|
||||
if (localStorage.getItem('insurantSignInfo')) {
|
||||
console.log('insurantSignInfo', localStorage.getItem('insurantSignInfo'))
|
||||
this.insurantBase64 = localStorage.getItem('insurantSignInfo')
|
||||
this.insurantSigned = true
|
||||
}
|
||||
|
||||
// localstorage存在回复内容时不允许修改回复内容
|
||||
// localstorage存在回复内容时回显回复内容
|
||||
if (localStorage.getItem('problemReplay')) {
|
||||
console.log('problemReplay', localStorage.getItem('problemReplay'))
|
||||
this.newContract.feedback = localStorage.getItem('problemReplay')
|
||||
this.newContract.feedbackAvailable = true
|
||||
}
|
||||
|
||||
if (localStorage.getItem('agreementChecked')) {
|
||||
console.log('agreementChecked', localStorage.getItem('agreementChecked'))
|
||||
this.checked = true
|
||||
}
|
||||
|
||||
// localstorage存在处理类型回显处理类型
|
||||
if (localStorage.getItem('resolveType')) {
|
||||
this.transfer.mode = Number(localStorage.getItem('resolveType'))
|
||||
}
|
||||
|
||||
// localstorage存在银行名称回显银行名称
|
||||
if (localStorage.getItem('problemBank')) {
|
||||
this.transfer.mode = localStorage.getItem('problemBank')
|
||||
this.transfer.bank = localStorage.getItem('problemBank')
|
||||
}
|
||||
|
||||
// localstorage存在银行卡号回显银行卡号
|
||||
if (localStorage.getItem('problemCard')) {
|
||||
this.transfer.card = localStorage.getItem('problemCard')
|
||||
}
|
||||
|
||||
// 签名回调回显银行卡照片
|
||||
if (localStorage.getItem('bankcardA')) {
|
||||
this.transfer.cardPhoto.push({
|
||||
content: localStorage.getItem('bankcardA')
|
||||
})
|
||||
}
|
||||
|
||||
// 补充资料问题件
|
||||
{
|
||||
// 签名回调回显被保人身份证头像面
|
||||
if (localStorage.getItem('policyholderIdCardA')) {
|
||||
this.supplement.insurantIdCardA.push({
|
||||
content: localStorage.getItem('policyholderIdCardA')
|
||||
})
|
||||
}
|
||||
|
||||
// 签名回调保存被保人身份证头像面上传结果
|
||||
if (localStorage.getItem('insurantIdCardAUploadResult')) {
|
||||
this.supplement.insurantIdCardA.push({
|
||||
content: localStorage.getItem('insurantIdCardAUploadResult')
|
||||
})
|
||||
}
|
||||
|
||||
// 签名回调回显被保人身份证国徽面
|
||||
if (localStorage.getItem('insurantIdCardBUploadResult')) {
|
||||
this.supplement.insurantIdCardB.push({
|
||||
content: localStorage.getItem('insurantIdCardBUploadResult')
|
||||
})
|
||||
}
|
||||
|
||||
// 签名回调回显投保人身份证头像面
|
||||
if (localStorage.getItem('policyholderIdCardA')) {
|
||||
this.supplement.policyholderIdCardA.push({
|
||||
content: localStorage.getItem('policyholderIdCardA')
|
||||
})
|
||||
}
|
||||
|
||||
// 签名回调保存投保人身份证头像面上传结果
|
||||
if (localStorage.getItem('policyholderIdCardAUploadResult')) {
|
||||
this.supplement.policyholderIdCardAUploadResult = JSON.parse(localStorage.getItem('policyholderIdCardAUploadResult'))
|
||||
}
|
||||
|
||||
// 签名回调回显投保人身份证国徽面
|
||||
if (localStorage.getItem('policyholderIdCardB')) {
|
||||
this.supplement.policyholderIdCardB.push({
|
||||
content: localStorage.getItem('policyholderIdCardB')
|
||||
})
|
||||
}
|
||||
|
||||
// 签名回调保存投保人身份证国徽面上传结果
|
||||
if (localStorage.getItem('policyholderIdCardBUploadResult')) {
|
||||
this.supplement.policyholderIdCardBUploadResult = JSON.parse(localStorage.getItem('policyholderIdCardBUploadResult'))
|
||||
}
|
||||
|
||||
// 签名回调回显投保人银行卡照片
|
||||
if (localStorage.getItem('policyholderBankCardA')) {
|
||||
this.supplement.policyholderBankCardA.push({
|
||||
content: localStorage.getItem('policyholderBankCardA')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 签名回调后保存转账不成功上传银行卡照片结果信息
|
||||
if (localStorage.getItem('transferCardUploadResult')) {
|
||||
this.transfer.cardUploadResult = JSON.parse(localStorage.getItem('transferCardUploadResult'))
|
||||
}
|
||||
}
|
||||
this.getBankList()
|
||||
this.getQuestionDetail()
|
||||
|
||||
Reference in New Issue
Block a user