From 43e47661225a0f234e36d00d88bea9acf01d0c8e Mon Sep 17 00:00:00 2001 From: zhouna Date: Tue, 5 Nov 2019 14:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E8=B4=B9=E8=AF=95=E7=AE=97=E4=B8=8E?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/CalculatePremium.vue | 5 + src/views/ebiz/sale/SignatureConfirmation.vue | 102 +++++++----------- 2 files changed, 44 insertions(+), 63 deletions(-) diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index c40b00bc5..4ae43e871 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -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 diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index a43ec1c2d..d18dd9fd2 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -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', '人脸检测失败')