mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 17:06:43 +08:00
测试签名
This commit is contained in:
@@ -199,7 +199,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async insurantUpload(file) {
|
async insurantUpload(file) {
|
||||||
let res = await this.afterRead(file)
|
let res = await this.afterRead(file)
|
||||||
console.log(res)
|
|
||||||
this.supplement.insurantUploadResult.push({
|
this.supplement.insurantUploadResult.push({
|
||||||
rgssUrl: res.path
|
rgssUrl: res.path
|
||||||
})
|
})
|
||||||
@@ -209,14 +208,12 @@ export default {
|
|||||||
this.transfer.cardUploadResult.push({
|
this.transfer.cardUploadResult.push({
|
||||||
rgssUrl: res.path
|
rgssUrl: res.path
|
||||||
})
|
})
|
||||||
console.log(res)
|
|
||||||
},
|
},
|
||||||
//签名
|
//签名
|
||||||
async autograph(personType) {
|
async autograph(personType) {
|
||||||
let problemInfo = JSON.parse(localStorage.getItem('currentProblemItem'))
|
let problemInfo = JSON.parse(localStorage.getItem('currentProblemItem'))
|
||||||
if (!this.isWeixin) {
|
if (!this.isWeixin) {
|
||||||
// eslint-disable-next-line
|
let signParam = {
|
||||||
const res = await EWebBridge.webCallAppInJs('ca_sign', {
|
|
||||||
name: personType === 0 ? problemInfo.prtName : problemInfo.insuredName,
|
name: personType === 0 ? problemInfo.prtName : problemInfo.insuredName,
|
||||||
type: '1',
|
type: '1',
|
||||||
number: '142727199301063550',
|
number: '142727199301063550',
|
||||||
@@ -224,17 +221,23 @@ export default {
|
|||||||
pageNo: '1',
|
pageNo: '1',
|
||||||
index: 1,
|
index: 1,
|
||||||
offset: 20,
|
offset: 20,
|
||||||
pos: 3
|
pos: 3,
|
||||||
})
|
signatureWidth: this.$utils.signParams().signatureWidth,
|
||||||
|
signatureHeight: this.$utils.signParams().signatureHeight
|
||||||
|
}
|
||||||
|
console.log(signParam)
|
||||||
|
// eslint-disable-next-line
|
||||||
|
const res = await EWebBridge.webCallAppInJs('ca_sign', signParam)
|
||||||
|
let signRes = JSON.parse(res)
|
||||||
// 投保人签名
|
// 投保人签名
|
||||||
if (personType === 0 && res.state === '1') {
|
if (personType === 0 && signRes.state === '1') {
|
||||||
this.policyholderSigned = true
|
this.policyholderSigned = true
|
||||||
}
|
}
|
||||||
// 被保人签名
|
// 被保人签名
|
||||||
else if (personType === 1 && res.state === '1') {
|
else if (personType === 1 && signRes.state === '1') {
|
||||||
this.insurantSigned = true
|
this.insurantSigned = true
|
||||||
}
|
}
|
||||||
console.log(res)
|
console.log('签名结果: ', res)
|
||||||
} else {
|
} else {
|
||||||
this.toAirSign('0', '签字日期', '-150', '2', personType)
|
this.toAirSign('0', '签字日期', '-150', '2', personType)
|
||||||
}
|
}
|
||||||
@@ -345,7 +348,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async getMessage({ type, data }) {
|
async getMessage({ type, data }) {
|
||||||
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
|
// 获取dialog信息,type为confirm时为短信框,alert时是确定框
|
||||||
console.log(type, data)
|
|
||||||
let currentProblem = JSON.parse(localStorage.getItem('currentProblemItem'))
|
let currentProblem = JSON.parse(localStorage.getItem('currentProblemItem'))
|
||||||
let problemData = {
|
let problemData = {
|
||||||
id: currentProblem.id,
|
id: currentProblem.id,
|
||||||
@@ -362,7 +364,6 @@ export default {
|
|||||||
// 契约问题件
|
// 契约问题件
|
||||||
if (this.issueType === 'TB89') {
|
if (this.issueType === 'TB89') {
|
||||||
problemData.content = this.newContract.feedback
|
problemData.content = this.newContract.feedback
|
||||||
console.log(problemData)
|
|
||||||
}
|
}
|
||||||
// 补充资料类问题件
|
// 补充资料类问题件
|
||||||
else if (this.issueType === '828601') {
|
else if (this.issueType === '828601') {
|
||||||
@@ -378,7 +379,6 @@ export default {
|
|||||||
item.subBusinessType = '0'
|
item.subBusinessType = '0'
|
||||||
}
|
}
|
||||||
problemData.list.push(...this.supplement.policyholderUploadResult)
|
problemData.list.push(...this.supplement.policyholderUploadResult)
|
||||||
console.log(problemData)
|
|
||||||
}
|
}
|
||||||
// 转账不成功问题件
|
// 转账不成功问题件
|
||||||
else {
|
else {
|
||||||
@@ -391,12 +391,9 @@ export default {
|
|||||||
item.subBusinessType = '0'
|
item.subBusinessType = '0'
|
||||||
}
|
}
|
||||||
problemData.list = this.transfer.cardUploadResult
|
problemData.list = this.transfer.cardUploadResult
|
||||||
|
|
||||||
console.log(problemData)
|
|
||||||
}
|
}
|
||||||
// 更新
|
// 更新
|
||||||
let res = await updateQuestionDetail(problemData)
|
let res = await updateQuestionDetail(problemData)
|
||||||
console.log(res)
|
|
||||||
this.dialog.show = false
|
this.dialog.show = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -405,7 +402,6 @@ export default {
|
|||||||
id: this.$route.params.id
|
id: this.$route.params.id
|
||||||
})
|
})
|
||||||
this.problemDetail = rs.content.list[0]
|
this.problemDetail = rs.content.list[0]
|
||||||
console.log(this.problemDetail)
|
|
||||||
let problemDetail = rs.content.list[0]
|
let problemDetail = rs.content.list[0]
|
||||||
this.supplement.descriptionInsurant = problemDetail.content
|
this.supplement.descriptionInsurant = problemDetail.content
|
||||||
this.supplement.descriptionPolicyholder = problemDetail.issueContent
|
this.supplement.descriptionPolicyholder = problemDetail.issueContent
|
||||||
@@ -434,9 +430,6 @@ 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(signInfo)
|
|
||||||
console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data)
|
|
||||||
console.log('wxSigned: ' + wxSigned)
|
|
||||||
if (wxSigned) {
|
if (wxSigned) {
|
||||||
console.log('第二次进问题件详情页面')
|
console.log('第二次进问题件详情页面')
|
||||||
this.base64D = imgBase64Data
|
this.base64D = imgBase64Data
|
||||||
|
|||||||
Reference in New Issue
Block a user