diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index f1ebbe467..6659cfa95 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -259,7 +259,11 @@ export default { } console.log('签名结果: ', res) } else { - this.toAirSign('0', '签字日期', '-150', '2', personType) + if (personType === 0) { + this.toAirSign('0', '投保人签名', '-150', '2', personType) + } else { + this.toAirSign('0', '被保人签名', '-150', '2', personType) + } } }, getBankNo(data) { @@ -446,18 +450,19 @@ export default { }) this.problemInfo = rs.content this.problemDetail = this.problemInfo.list[0] - this.problemDetail.receiveType = this.$route.receiveType + this.problemDetail.receiveType = this.$route.query.receiveType this.supplement.descriptionInsurant = this.problemDetail.content this.supplement.descriptionPolicyholder = this.problemDetail.issueContent }, //微信空签 toAirSign(status, keyword, offset, originStatus, personType) { + localStorage.setItem('signedPersonType', personType) localStorage.setItem( 'signInfo', JSON.stringify({ originStatus: originStatus, - idNo: localStorage.idNoD, - name: localStorage.idNameD, + idNo: personType === 0 ? this.problemInfo.appntIdCardNo : this.problemInfo.insuredIdCardNo, + name: personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName, type: '1', keyword: keyword, status: status, @@ -475,9 +480,27 @@ export default { let imgBase64Data = sessionStorage.getItem('oneimgBase64Data') let wxSigned = sessionStorage.getItem('onewxSigned') let signInfo = JSON.parse(localStorage.getItem('signInfo')) + + console.log('imgBase64', imgBase64Data) + console.log('wxSigned', wxSigned) + console.log('signInfo', signInfo) + if (wxSigned) { - console.log('第二次进问题件详情页面') - this.base64D = imgBase64Data + console.log('微信签名回调') + // 0代表投保人签名 + if (Number(localStorage.getItem('signedPersonType')) === 0) { + if (signInfo.status == '0') { + this.policyholderSigned = true + this.policyholderBase64 = imgBase64Data + } + } + // 1代表被保人签名 + else { + if (signInfo.status == '0') { + this.insurantSigned = true + this.insurantBase64 = imgBase64Data + } + } } } this.getBankList()