mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 01:46:44 +08:00
测试微信签名
This commit is contained in:
@@ -259,7 +259,11 @@ export default {
|
|||||||
}
|
}
|
||||||
console.log('签名结果: ', res)
|
console.log('签名结果: ', res)
|
||||||
} else {
|
} 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) {
|
getBankNo(data) {
|
||||||
@@ -446,18 +450,19 @@ export default {
|
|||||||
})
|
})
|
||||||
this.problemInfo = rs.content
|
this.problemInfo = rs.content
|
||||||
this.problemDetail = this.problemInfo.list[0]
|
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.descriptionInsurant = this.problemDetail.content
|
||||||
this.supplement.descriptionPolicyholder = this.problemDetail.issueContent
|
this.supplement.descriptionPolicyholder = this.problemDetail.issueContent
|
||||||
},
|
},
|
||||||
//微信空签
|
//微信空签
|
||||||
toAirSign(status, keyword, offset, originStatus, personType) {
|
toAirSign(status, keyword, offset, originStatus, personType) {
|
||||||
|
localStorage.setItem('signedPersonType', personType)
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
'signInfo',
|
'signInfo',
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
originStatus: originStatus,
|
originStatus: originStatus,
|
||||||
idNo: localStorage.idNoD,
|
idNo: personType === 0 ? this.problemInfo.appntIdCardNo : this.problemInfo.insuredIdCardNo,
|
||||||
name: localStorage.idNameD,
|
name: personType === 0 ? this.problemInfo.appntName : this.problemInfo.insuredName,
|
||||||
type: '1',
|
type: '1',
|
||||||
keyword: keyword,
|
keyword: keyword,
|
||||||
status: status,
|
status: status,
|
||||||
@@ -475,9 +480,27 @@ export default {
|
|||||||
let imgBase64Data = sessionStorage.getItem('oneimgBase64Data')
|
let imgBase64Data = sessionStorage.getItem('oneimgBase64Data')
|
||||||
let wxSigned = sessionStorage.getItem('onewxSigned')
|
let wxSigned = sessionStorage.getItem('onewxSigned')
|
||||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||||
|
|
||||||
|
console.log('imgBase64', imgBase64Data)
|
||||||
|
console.log('wxSigned', wxSigned)
|
||||||
|
console.log('signInfo', signInfo)
|
||||||
|
|
||||||
if (wxSigned) {
|
if (wxSigned) {
|
||||||
console.log('第二次进问题件详情页面')
|
console.log('微信签名回调')
|
||||||
this.base64D = imgBase64Data
|
// 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()
|
this.getBankList()
|
||||||
|
|||||||
Reference in New Issue
Block a user