mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 17:16:43 +08:00
保费试算与签名跳转问题修改
This commit is contained in:
@@ -484,6 +484,7 @@ export default {
|
||||
//试算成功,信息返显
|
||||
if (resultData.result == 0) {
|
||||
this.trialList = resultData.trialList
|
||||
console.log(resultData.trialList)
|
||||
localStorage.trialList = JSON.stringify(resultData.trialList)
|
||||
//设置豁免险保额
|
||||
this.setRemitRisk()
|
||||
@@ -622,6 +623,10 @@ export default {
|
||||
if (this.trialList[index].trialType == '1') {
|
||||
riskItem['amt'] = this.trialList[index].amt
|
||||
}
|
||||
//万能型产品保费赋值给保额
|
||||
if (this.trialList[index].productCode == 'GFRS_M0003') {
|
||||
riskItem['amt'] = this.trialList[index].prem
|
||||
}
|
||||
//豁免险保额处理
|
||||
if (item.isRemit == '0') {
|
||||
this.trialInfos[index].amt = this.trialList[0].prem
|
||||
|
||||
@@ -330,15 +330,7 @@ export default {
|
||||
if (val == '0' || val == '2') {
|
||||
//idtype为身份证和年纪小于18岁跳过人脸识别
|
||||
if (JSON.parse(this.$route.query.saleInsuredInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredInfo).age < '18') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
this.idcardData.typeface = !this.idcardData.typeface
|
||||
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-insured', JSON.stringify(that.insuredSign))
|
||||
if (JSON.parse(this.$route.query.saleInsuredPersonInfo).idType != '1' || JSON.parse(this.$route.query.saleInsuredPersonInfo).age < '18') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
this.idcardData.typeface = !this.idcardData.typeface
|
||||
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-appnt', JSON.stringify(that.appntSign))
|
||||
if (this.saleInsuredInfo.idType != '1' || this.saleInsuredInfo.age < '18') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
// 原人脸识别
|
||||
EWebBridge.webCallAppInJs('face_auth', {
|
||||
@@ -384,15 +360,7 @@ export default {
|
||||
name: that.saleInsuredInfo.name //姓名
|
||||
}).then(data => {
|
||||
if (JSON.parse(data).state == '1') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
// EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
|
||||
}
|
||||
@@ -402,15 +370,7 @@ export default {
|
||||
window.localStorage.setItem('sign-val', val)
|
||||
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
||||
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.age < '18') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
// 调原生人脸识别
|
||||
EWebBridge.webCallAppInJs('face_auth', {
|
||||
@@ -418,15 +378,7 @@ export default {
|
||||
name: that.saleInsuredInfo.name //姓名
|
||||
}).then(data => {
|
||||
if (JSON.parse(data).state == '1') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
// 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() {},
|
||||
// 微信分享
|
||||
share(code) {
|
||||
@@ -713,15 +697,7 @@ export default {
|
||||
sendimage(e) {
|
||||
let that = this
|
||||
if (e.result == '0') {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/insuranceInformation'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/insuranceInformation'
|
||||
}
|
||||
})
|
||||
that.goUrl()
|
||||
} else {
|
||||
that.$toast(e.resultMessage)
|
||||
// EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
|
||||
|
||||
Reference in New Issue
Block a user