From c9593f5877d92efd184fdbc1e02d025026d045e1 Mon Sep 17 00:00:00 2001 From: "liu.xiaofeng@ebiz-digits.com" Date: Tue, 15 Aug 2023 16:50:54 +0800 Subject: [PATCH] =?UTF-8?q?hotfix[20230815]=E6=83=A0=E6=A1=82=E4=BF=9D?= =?UTF-8?q?=E7=A5=9E=E7=BB=8F=E6=80=A7=E8=80=B3=E8=81=8B=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/GroupCheckInfo.vue | 40 +++++++--- src/views/ebiz/cardList/Pay.vue | 85 ++++++++++++---------- 2 files changed, 74 insertions(+), 51 deletions(-) diff --git a/src/views/ebiz/cardList/GroupCheckInfo.vue b/src/views/ebiz/cardList/GroupCheckInfo.vue index 00c05f5e1..19514cd05 100644 --- a/src/views/ebiz/cardList/GroupCheckInfo.vue +++ b/src/views/ebiz/cardList/GroupCheckInfo.vue @@ -79,7 +79,8 @@ export default { riskDTO: {}, productDate: '', orderInfoDTO:{}, - isGroupCard:'' + isGroupCard:'', + mainRiskCode: '' // isLessEighteen: true // 被保人手机号和邮箱默认展示 } }, @@ -101,6 +102,11 @@ export default { this.orderInfoDTO = res.orderDTO.orderInfoDTO this.insuredInfo = res.orderDTO.insuredDTOs this.insuredInfo.forEach(item => { + item.riskDTOLst.forEach(ii=>{ + if(ii.isMainRisk == '0'){ + this.mainRiskCode = ii.mainRiskCode + } + }) item.homeName = getAreaName([{ code: item.homeProvince }, { code: item.homeCity }, { code: item.homeArea }]) }) // this.riskDTO = res.orderDTO.insuredDTOs[0].riskDTOLst[0] @@ -132,13 +138,27 @@ export default { }, methods: { nextStep() { - Dialog.alert({ - title: '特别提醒', - messageAlign: 'left', - confirmButtonText: '确认', - message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`, - }) - .then(() => { + if(this.mainRiskCode == 'GFRS_M0058'){ + Dialog.alert({ + title: '特别提醒', + messageAlign: 'left', + confirmButtonText: '确认', + message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`, + }) + .then(() => { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + `/#/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard + }, + routerInfo: { + path: `/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard + } + }) + }) + .catch(() => { + }) + }else{ this.$jump({ flag: 'h5', extra: { @@ -148,9 +168,7 @@ export default { path: `/cardList/SignatureConfirmation?isGroupCard=`+this.isGroupCard } }) - }) - .catch(() => { - }) + } } } } diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue index 4855f8575..d2fba3f98 100644 --- a/src/views/ebiz/cardList/Pay.vue +++ b/src/views/ebiz/cardList/Pay.vue @@ -290,6 +290,7 @@ export default { accBankProvince: '', accBankCity: '', areaStr: '', + mainRiskCode: '', isGroupCard:'' //1 团险标识 } }, @@ -310,17 +311,13 @@ export default { this.bankListName = orderDetail.orderAccountDTO.bankName this.orderStatus = orderDetail.orderInfoDTO.orderStatus localStorage.orderNo = orderDetail.orderInfoDTO.orderNo - // this.radio = '3' - // this.isLoading = true - // this.$toast.loading({ - // duration: 0, // 持续展示 toast - // forbidClick: true, // 禁用背景点击 - // loadingType: 'spinner', - // message: '加载中……' - // }) - // setTimeout(() => { - // this.pay() - // }, 500) + orderDetail.insuredDTOs.forEach(item=>{ + item.riskDTOLst.forEach(ii=>{ + if(ii.isMainRisk == '0'){ + this.mainRiskCode = ii.mainRiskCode + } + }) + }) } else { document.title = '支付分享' // 再次支付 调详情 获取信息 @@ -744,6 +741,40 @@ export default { let res = await saveOrUpdateAccount(data) this.$toast.clear() if (res.result == '0') { + if(this.mainRiskCode == 'GFRS_M0058'){ + Dialog.alert({ + title: '特别提醒', + messageAlign: 'left', + confirmButtonText: '确认', + message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`, + }) + .then(() => { + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) + this.acceptInsurance() + }) + .catch(() => { + }) + }else{ + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) + this.acceptInsurance() + } + + } else { + this.$toast(res.resultMessage) + this.isLoading = false + } + } else { + if(this.mainRiskCode == 'GFRS_M0058'){ Dialog.alert({ title: '特别提醒', messageAlign: 'left', @@ -761,32 +792,7 @@ export default { }) .catch(() => { }) - } else { - this.$toast(res.resultMessage) - this.isLoading = false - } - // }) - } else { - // if (!flag) { - // let rs = await this.underWrite() - - // if (rs.result != '0') { - // this.$toast.clear() - // return this.$toast(rs.resultMessage) - // } - - // if (rs.uwResult != '02') { - // return this.$toast(rs.message) - // } - // } - - Dialog.alert({ - title: '特别提醒', - messageAlign: 'left', - confirmButtonText: '确认', - message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`, - }) - .then(() => { + }else{ this.$toast.loading({ duration: 0, // 持续展示 toast forbidClick: true, // 禁用背景点击 @@ -794,9 +800,8 @@ export default { message: '加载中……' }) this.acceptInsurance() - }) - .catch(() => { - }) + } + } }, // 选择微信支付校验身份证类型