保费试算与签名跳转问题修改

This commit is contained in:
zhouna
2019-11-05 14:10:43 +08:00
parent 983313c91e
commit 43e4766122
2 changed files with 44 additions and 63 deletions

View File

@@ -484,6 +484,7 @@ export default {
//试算成功,信息返显 //试算成功,信息返显
if (resultData.result == 0) { if (resultData.result == 0) {
this.trialList = resultData.trialList this.trialList = resultData.trialList
console.log(resultData.trialList)
localStorage.trialList = JSON.stringify(resultData.trialList) localStorage.trialList = JSON.stringify(resultData.trialList)
//设置豁免险保额 //设置豁免险保额
this.setRemitRisk() this.setRemitRisk()
@@ -622,6 +623,10 @@ export default {
if (this.trialList[index].trialType == '1') { if (this.trialList[index].trialType == '1') {
riskItem['amt'] = this.trialList[index].amt riskItem['amt'] = this.trialList[index].amt
} }
//万能型产品保费赋值给保额
if (this.trialList[index].productCode == 'GFRS_M0003') {
riskItem['amt'] = this.trialList[index].prem
}
//豁免险保额处理 //豁免险保额处理
if (item.isRemit == '0') { if (item.isRemit == '0') {
this.trialInfos[index].amt = this.trialList[0].prem this.trialInfos[index].amt = this.trialList[0].prem

View File

@@ -330,15 +330,7 @@ export default {
if (val == '0' || val == '2') { if (val == '0' || val == '2') {
//idtype为身份证和年纪小于18岁跳过人脸识别 //idtype为身份证和年纪小于18岁跳过人脸识别
if (JSON.parse(this.$route.query.saleInsuredInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredInfo).age < '18') { if (JSON.parse(this.$route.query.saleInsuredInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredInfo).age < '18') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
this.idcardData.typeface = !this.idcardData.typeface this.idcardData.typeface = !this.idcardData.typeface
this.idcardData.idcardName = JSON.parse(this.$route.query.saleInsuredInfo).name this.idcardData.idcardName = JSON.parse(this.$route.query.saleInsuredInfo).name
@@ -348,15 +340,7 @@ export default {
window.localStorage.setItem('sign-val', val) window.localStorage.setItem('sign-val', val)
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign)) window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
if (JSON.parse(this.$route.query.saleInsuredPersonInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredPersonInfo).age < '18') { if (JSON.parse(this.$route.query.saleInsuredPersonInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredPersonInfo).age < '18') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
this.idcardData.typeface = !this.idcardData.typeface this.idcardData.typeface = !this.idcardData.typeface
this.idcardData.idcardName = JSON.parse(this.$route.query.saleInsuredInfo).name this.idcardData.idcardName = JSON.parse(this.$route.query.saleInsuredInfo).name
@@ -368,15 +352,7 @@ export default {
window.localStorage.setItem('sign-val', val) window.localStorage.setItem('sign-val', val)
window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign)) window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
if (this.saleInsuredInfo.idType != '1' || this.saleInsuredInfo.age < '18') { if (this.saleInsuredInfo.idType != '1' || this.saleInsuredInfo.age < '18') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
// 原人脸识别 // 原人脸识别
EWebBridge.webCallAppInJs('face_auth', { EWebBridge.webCallAppInJs('face_auth', {
@@ -384,15 +360,7 @@ export default {
name: that.saleInsuredInfo.name //姓名 name: that.saleInsuredInfo.name //姓名
}).then(data => { }).then(data => {
if (JSON.parse(data).state == '1') { if (JSON.parse(data).state == '1') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
// EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败') // EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
} }
@@ -402,15 +370,7 @@ export default {
window.localStorage.setItem('sign-val', val) window.localStorage.setItem('sign-val', val)
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign)) window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.age < '18') { if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.age < '18') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
// 调原生人脸识别 // 调原生人脸识别
EWebBridge.webCallAppInJs('face_auth', { EWebBridge.webCallAppInJs('face_auth', {
@@ -418,15 +378,7 @@ export default {
name: that.saleInsuredInfo.name //姓名 name: that.saleInsuredInfo.name //姓名
}).then(data => { }).then(data => {
if (JSON.parse(data).state == '1') { if (JSON.parse(data).state == '1') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
// this.$toast(JSON.parse(data).error) // this.$toast(JSON.parse(data).error)
} }
@@ -435,6 +387,38 @@ export default {
} }
} }
}, },
goUrl() {
let that = this
let path = ''
if (localStorage.productCode == 'GFRS_M0003') {
if (that.appntSign[0].documentStatus == 0) {
path = 'insuranceInformation'
} else if (that.appntSign[1].documentStatus == 2) {
path = 'productTip'
} else if (that.appntSign[2].documentStatus == 2) {
path = 'InsuranceTip'
} else if (that.appntSign[3].documentStatus == 2) {
path = 'SignatureOfElectronic'
}
} else {
if (that.appntSign[0].documentStatus == 0) {
path = 'insuranceInformation'
} else if (that.appntSign[1].documentStatus == 2) {
path = 'InsuranceTip'
} else if (that.appntSign[2].documentStatus == 2) {
path = 'SignatureOfElectronic'
}
}
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/' + path
},
routerInfo: {
path: '/sale/' + path
}
})
},
toTest() {}, toTest() {},
// 微信分享 // 微信分享
share(code) { share(code) {
@@ -713,15 +697,7 @@ export default {
sendimage(e) { sendimage(e) {
let that = this let that = this
if (e.result == '0') { if (e.result == '0') {
this.$jump({ that.goUrl()
flag: 'h5',
extra: {
url: location.origin + '/#/sale/insuranceInformation'
},
routerInfo: {
path: '/sale/insuranceInformation'
}
})
} else { } else {
that.$toast(e.resultMessage) that.$toast(e.resultMessage)
// EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败') // EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')