From e8b7050209c41b9908f10c788a3a68e3dd978152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E5=85=B4=E6=9C=88?= <120277894@qq.com> Date: Wed, 7 Apr 2021 18:22:11 +0800 Subject: [PATCH] =?UTF-8?q?feature/GFRS-2301=E3=80=90=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E3=80=91=E5=81=A5=E5=BA=B7=E9=99=A9=E6=B8=A0=E9=81=93=E5=9B=BD?= =?UTF-8?q?=E5=AF=8C=E6=97=A0=E5=BF=A7=E5=8D=A1=E9=87=91=E6=8E=8C=E6=A1=82?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=9A=84=E9=9C=80=E6=B1=82--=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E4=B8=AD=E6=9C=89=E6=9C=8B=E5=8F=8B=E5=9C=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E9=A1=B5?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E9=94=99=E8=AF=AF=E5=8F=8A=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E9=94=99=E8=AF=AF=E6=9C=AA=E6=8F=90=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98--=E6=8F=90=E4=BA=A4=E4=BA=BA=E5=BA=9E=E5=85=B4?= =?UTF-8?q?=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/Pay.vue | 2 ++ src/views/ebiz/cardList/information.vue | 44 ++++++++++++++++++------- src/views/ebiz/cardList/phoneCode.vue | 4 +++ 3 files changed, 38 insertions(+), 12 deletions(-) diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue index c2f804655..da744f934 100644 --- a/src/views/ebiz/cardList/Pay.vue +++ b/src/views/ebiz/cardList/Pay.vue @@ -286,6 +286,7 @@ export default { // this.pay() // }, 500) } else { + document.title = '支付分享' // 再次支付 调详情 获取信息 this.getOrderDetail() } @@ -776,6 +777,7 @@ export default { flag: 'share', extra: { title: `国富人寿卡单投保(${shareName})付款`, + shareScene: '0', content: '付款进行', url: url, img: this.$assetsUrl + 'images/logo.png' diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue index 9656f620f..bbf156692 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -4,8 +4,7 @@

投保人信息

+ required :parentShowPicker.sync="customerShowPicker" v-model="userInfo.name" @nameChange="nameChange" @on-click="selectClick('1', '0')"> @@ -23,7 +22,7 @@ - @@ -58,7 +57,7 @@ maxlength="11" /> - @@ -91,7 +90,7 @@ maxlength="11" /> - + { + underWrite(data).then(res => { if (res.result == '0') { this.$toast.clear() if (res.uwResult == '33') { @@ -439,7 +438,7 @@ export default { } }) return true - } else { + } else { this.$toast(res.resultMessage) return false } @@ -721,13 +720,13 @@ export default { let currentData = currentDataArr[0] + '年' + currentDataArr[1] + '月' + currentDataArr[2] + '日' let insuYear = JSON.parse(localStorage.insuYear) let insuYearM, productDate, productDateTime - let insuYearD, hoDate + let insuYearD, hoDate switch (insuYear.insuYearFlag) { case 'D': hoDate = Date.parse(val) / 1000 + (insuYear['insuYear'] - 1) * 24 * 3600 break - case 'Y': - hoDate = Date.parse(val) / 1000 + insuYear['insuYear'] * 24 * 3600 * (afterDate.isLeapYear(new Date(val).getFullYear())-1) + case 'Y': + hoDate = Date.parse(val) / 1000 + insuYear['insuYear'] * 24 * 3600 * (afterDate.isLeapYear(new Date(val).getFullYear()) - 1) break } productDate = new Date(parseInt(hoDate) * 1000) @@ -800,7 +799,7 @@ export default { this.userInfo.homeProvince = data.homeProvince //家庭省 this.userInfo.homeCity = data.homeCity //家庭市 this.userInfo.homeArea = data.homeArea //家庭区 - if (data.homeProvince && data.homeCity && data.homeArea) { + if (data.homeProvince && data.homeCity && data.homeArea) { this.userInfo.homeName = getAreaName([{ code: data.homeProvince }, { code: data.homeCity }, { code: data.homeArea }]) //家庭地址 } this.userInfo.homeAddress = data.homeAddress //家庭详细地址 @@ -1122,7 +1121,7 @@ export default { //930折中方案,责任险分档 riskItem['amt'] = this.trialList[index].amt } - + //保费算保额 if (this.trialList[index].trialType == '1') { riskItem['amt'] = this.trialList[index].amt @@ -1259,6 +1258,27 @@ export default { // 如果关系为本人,将投保人信息带入到被保人信息上 if (newV == 1) { Object.assign(this.insuredInfo, this.userInfo) + } else { + this.insuredInfo = { + name: '', // 被保人姓名 + idType: '1', //被保人证件类型 + idNo: '', //被保人证件号码 + sex: '0', //被保人性别 + birthday: '', //被保人出生日期 + occupationCode: '', //职业代码 + occupationName: '', //职业名称 + lifeGrade: '', //寿险等级 + healthGrade: '', //健康等级 + nativeplace: '', //国家地区 + marriageStatus: '', //婚姻状况 + homeProvince: '', //家庭省 + homeCity: '', //家庭市 + homeArea: '', //家庭区 + homeName: '', //联系地址 + homeAddress: '', //详细地址 + mobile: '', //移动电话 + email: '' //电子邮箱 + } } }, immediate: true, diff --git a/src/views/ebiz/cardList/phoneCode.vue b/src/views/ebiz/cardList/phoneCode.vue index 869f7c9a9..a3385695c 100644 --- a/src/views/ebiz/cardList/phoneCode.vue +++ b/src/views/ebiz/cardList/phoneCode.vue @@ -73,6 +73,9 @@ export default { path: `/cardList/cardDetail`, }, }) + } else { + this.$toast(res.resultMessage) + return false } }) }, @@ -104,6 +107,7 @@ export default { }, 1000) } else { this.$toast(res.resultMessage) + return false } }) },