From e90dc72a159dfe971be0fbdb25d65004a15d5920 Mon Sep 17 00:00:00 2001
From: mengxiaolong
Date: Fri, 7 Aug 2020 18:08:32 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E5=88=86=E7=B1=BB,=20=E4=BC=98=E5=8C=96=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/questions/QuestionsDetail.vue | 41 +++++++++++---
src/views/ebiz/questions/QuestionsList.vue | 57 ++++++++++++--------
2 files changed, 68 insertions(+), 30 deletions(-)
diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue
index 2c064a91a..27e14c15a 100644
--- a/src/views/ebiz/questions/QuestionsDetail.vue
+++ b/src/views/ebiz/questions/QuestionsDetail.vue
@@ -14,7 +14,10 @@
{{ supplement.descriptionInsurant }}
-
+ 身份证正面照片
+
+ 身份证背面照片
+
@@ -26,7 +29,12 @@
{{ supplement.descriptionPolicyholder }}
-
+ 身份证正面照片
+
+ 身份证背面照片
+
+ 银行卡照片
+
@@ -145,10 +153,13 @@ export default {
// 投保人问题描述
descriptionPolicyholder: '',
// 被保人身份证明
- idImgList: [],
+ insurantIdCardA: [],
+ insurantIdCardB: [],
insurantUploadResult: [],
// 投保人身份证明等资料
- copyImgList: [],
+ policyholderIdCardA: [],
+ policyholderIdCardB: [],
+ policyholderBankCardA: [],
policyholderUploadResult: []
},
newContract: {
@@ -192,19 +203,29 @@ export default {
}
},
methods: {
- async policyHolderUpload(file) {
+ async policyHolderUpload(file, detail) {
+ // 微信端将上传的图片保存到localstorage中供签名回调使用
+ if (this.isWeixin) {
+ localStorage.setItem(detail.name, file.content)
+ }
let res = await this.afterRead(file)
this.supplement.policyholderUploadResult.push({
rgssUrl: res.path
})
},
- async insurantUpload(file) {
+ async insurantUpload(file, detail) {
+ if (this.isWeixin) {
+ localStorage.setItem(detail.name, file.content)
+ }
let res = await this.afterRead(file)
this.supplement.insurantUploadResult.push({
rgssUrl: res.path
})
},
- async cardUpload(file) {
+ 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
@@ -522,6 +543,11 @@ export default {
}