From 26a2195a4931224c9fed21fb10bc3cccc10822d1 Mon Sep 17 00:00:00 2001 From: pangxingyue <120277894@qq.com> Date: Wed, 31 Mar 2021 22:12:50 +0800 Subject: [PATCH] =?UTF-8?q?feature/GFRS-2215=E3=80=90=E5=BE=85=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E3=80=91=E9=87=8D=E6=96=B0=E6=8A=95=E4=BF=9D--?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E5=BA=A6=E6=9D=A1=E6=9C=AA=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=8F=AF=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=8F=8A=E5=88=B0=E7=AD=BE=E5=90=8D=E9=A1=B5=E5=90=8E=E5=89=8D?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E5=8F=AF=E7=82=B9=E5=87=BB=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=91=8A=E7=9F=A5=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A2=98=E5=9E=8B=E8=BF=87=E6=BB=A4--=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BA=BA=E5=BA=9E=E5=85=B4=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebiz/insureAgain/ProgressBar.vue | 18 ++++++---- .../ebiz/insureAgain/InsureInformation.vue | 3 ++ src/views/ebiz/insureAgain/Notification.vue | 33 +++++++++++-------- .../ebiz/insureAgain/ProductInformation.vue | 7 +++- .../insureAgain/SignatureConfirmation.vue | 5 ++- 5 files changed, 45 insertions(+), 21 deletions(-) diff --git a/src/components/ebiz/insureAgain/ProgressBar.vue b/src/components/ebiz/insureAgain/ProgressBar.vue index 5444b51bb..1342717a7 100644 --- a/src/components/ebiz/insureAgain/ProgressBar.vue +++ b/src/components/ebiz/insureAgain/ProgressBar.vue @@ -1,7 +1,7 @@
-
+
{{ item.impartCode + '.' + item.impartContent }}
@@ -188,9 +188,8 @@ export default { ProgressBar, ReadingAgreement }, - created() { - let res = JSON.parse(CacheUtils.getLocItem('orderDetailData')); - console.log(res); + created() { + let res = JSON.parse(CacheUtils.getLocItem('orderDetailData')); //投被保险人关系 // this.isExistAdditionalRisk = res.orderDTO.insuredDTOs[0].riskDTOLst.length > 1 ? true : false this.relationToAppnt = res.orderDTO.insuredDTOs[0].relationToAppnt @@ -198,9 +197,9 @@ export default { this.saleInsuredInfo = res.orderDTO.appntDTO this.saleInsuredPersonInfo = res.orderDTO.insuredDTOs[0] // 获取投保人信息 - this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(this.saleInsuredInfo)) + CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(this.saleInsuredInfo)) // 获取被保险人信息recmd - this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo)) + CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo)) //如果返回参数存在曾经提交的告知信息,获取曾经提交的告知信息 let insuredFinanceImpartDTO = this.insuredFinanceImpartDTO = res.orderDTO.appntDTO.financeImpartDTO || {} //投保人财务告知集合 let insuredImpartDTO = this.insuredImpartDTO = res.orderDTO.appntDTO.impartDTO || {} //投保人健康告知集合 @@ -212,15 +211,16 @@ export default { (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) || (insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) ) { - if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) { - this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType }) - }else if((insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){ + + if ((insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){ this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType }) + } else if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) { + this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType }) } - if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) { - this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType }) - }else if ((insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){ + if ((insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS) && this.relationToAppnt == '1'){ this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType }) + } else if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) { + this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType }) } if(this.relationToAppnt != '1'){ if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) { @@ -242,10 +242,14 @@ export default { if (i.impartAnswer == '0') { i.show = true } else { - i.questions[0].answer = '' + if (i.questions && i.questions.length>0) { + i.questions[0].answer = '' + } } }) }) + + console.log(this.impartDTOS, '==============this.impartDTOS=============') } //投被同人取到年纪和性别去判断是是否显示内容 this.saleInsuredAge = utilsAge.getAge(this.saleInsuredInfo.birthday, new Date()) @@ -258,6 +262,9 @@ export default { }, mounted() { + if (!this.$route.query.salePageFlag) { + CacheUtils.setLocItem('active', this.active) + } setTimeout(() => { EWebBridge.webCallAppInJs('webview_left_button', { img: this.$assetsUrl + 'images/del-close-btn@3x.png', diff --git a/src/views/ebiz/insureAgain/ProductInformation.vue b/src/views/ebiz/insureAgain/ProductInformation.vue index a1c7d6918..7402df1c5 100644 --- a/src/views/ebiz/insureAgain/ProductInformation.vue +++ b/src/views/ebiz/insureAgain/ProductInformation.vue @@ -122,7 +122,7 @@ export default { orderAccountDTO: [] } }, - created() { + created() { let res = JSON.parse(CacheUtils.getLocItem('orderDetailData')) this.appntDTO = res.orderDTO.appntDTO this.insuredDTOs = res.orderDTO.insuredDTOs[0] @@ -168,6 +168,11 @@ export default { } }) }, + mounted() { + if (!this.$route.query.salePageFlag) { + CacheUtils.setLocItem('active', this.active) + } + }, methods: { appCallBack(data) { if (data.trigger == 'left_button_click') { diff --git a/src/views/ebiz/insureAgain/SignatureConfirmation.vue b/src/views/ebiz/insureAgain/SignatureConfirmation.vue index e52d94532..3681dc50f 100644 --- a/src/views/ebiz/insureAgain/SignatureConfirmation.vue +++ b/src/views/ebiz/insureAgain/SignatureConfirmation.vue @@ -1456,7 +1456,10 @@ export default { }, mounted() { //若进入签名页,则不允许回到签名页前面的页面 - localStorage.setItem('salePageFlag', this.salePageFlag) + // localStorage.setItem('salePageFlag', this.salePageFlag) + if (!this.$route.query.salePageFlag) { + CacheUtils.setLocItem('active', this.active) + } let that = this document.title = this.changeCard ? '修改银行卡号确认' : '签名确认' // 初始化