diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue
index 0698d6f0d..0b5648a0b 100644
--- a/src/views/ebiz/cardList/Pay.vue
+++ b/src/views/ebiz/cardList/Pay.vue
@@ -766,6 +766,7 @@ export default {
console.log(this.$validator)
return this.$toast(this.$validator.errors.all()[0])
}
+ let shareName = this.underWriteData.name
localStorage.name = this.underWriteData.name
localStorage.bankName = this.underWriteData.bankName
localStorage.bankCode = this.underWriteData.bankCode
diff --git a/src/views/ebiz/cardList/cardDetail.vue b/src/views/ebiz/cardList/cardDetail.vue
index 892c94b02..6a191360a 100644
--- a/src/views/ebiz/cardList/cardDetail.vue
+++ b/src/views/ebiz/cardList/cardDetail.vue
@@ -8,7 +8,7 @@
-
+
被保人信息
@@ -18,7 +18,7 @@
-
+
受益人信息
@@ -31,12 +31,10 @@
-
注:2020年04月03日0时至2021年04月02日24时止。
+ 注:{{productDate}}
- 总保费:{{ riskDTO.prem }}元
+ 总保费:{{
+ riskDTO.prem }}元
@@ -53,14 +51,14 @@ export default {
[GoodsAction.name]: GoodsAction,
[GoodsActionIcon.name]: GoodsActionIcon,
[GoodsActionButton.name]: GoodsActionButton,
- [Icon.name]: Icon,
+ [Icon.name]: Icon
},
computed: {
orderDTO: {
get() {
return JSON.parse(sessionStorage.orderDetail)
- },
- },
+ }
+ }
},
data() {
return {
@@ -69,29 +67,55 @@ export default {
insuredInfo: {},
bnfTypeVal: '法定受益人', //受益人类型文字展示
riskDTO: {},
+ productDate: ''
}
},
- created() {
- console.log(this.orderDTO)
+ created() {
this.appntInfo = this.orderDTO.appntDTO
this.appntInfo.homeName = getAreaName([{ code: this.appntInfo.homeProvince }, { code: this.appntInfo.homeCity }, { code: this.appntInfo.homeArea }])
this.insuredInfo = this.orderDTO.insuredDTOs[0]
this.insuredInfo.homeName = getAreaName([{ code: this.insuredInfo.homeProvince }, { code: this.insuredInfo.homeCity }, { code: this.insuredInfo.homeArea }])
- this.riskDTO = this.orderDTO.insuredDTOs[0].riskDTOLst[0]
+
+ let insuYear = (this.riskDTO = this.orderDTO.insuredDTOs[0].riskDTOLst[0])
+ let currentDataArr = insuYear.cvaliDate.split('-')
+ let currentData = currentDataArr[0] + '年' + currentDataArr[1] + '月' + currentDataArr[2] + '日'
+ let insuYearM, productDate, productDateTime,insuYearD;
+
+ switch (insuYear.insuYearFlag) {
+ case 'D':
+ let hoDate = Date.parse(insuYear.cvaliDate) / 1000 + insuYear['insuYear'] * 24 * 3600
+ productDate = new Date(parseInt(hoDate) * 1000)
+ insuYearM = productDate.getMonth() + 1 < 10 ? '0' + (productDate.getMonth() + 1) : productDate.getMonth() + 1
+ insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
+ productDateTime = productDate.getFullYear() + '年' + insuYearM + '月' + insuYearD + '日'
+ this.productDate = currentData + '0时至' + productDateTime + '24时止'
+ break
+ case 'Y':
+ productDate = new Date(insuYear.cvaliDate)
+ insuYearM = productDate.getMonth() + 1 < 10 ? '0' + (productDate.getMonth() + 1) : productDate.getMonth() + 1
+ insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
+ productDateTime = parseInt(productDate.getFullYear()) + parseInt(insuYear['insuYear']) + '年' + insuYearM + '月' + insuYearD + '日'
+ this.productDate = currentData + '0时至' + productDateTime + '24时止'
+ break
+ case 'M':
+ productDateTime = this.GetNextMonthDay(insuYear.cvaliDate, insuYear['insuYear'])
+ this.productDate = currentData + '0时至' + productDateTime + '24时止'
+ break
+ }
},
methods: {
nextStep() {
this.$jump({
flag: 'h5',
extra: {
- url: location.origin + `/#/cardList/SignatureConfirmation`,
+ url: location.origin + `/#/cardList/SignatureConfirmation`
},
routerInfo: {
- path: `/cardList/SignatureConfirmation`,
- },
+ path: `/cardList/SignatureConfirmation`
+ }
})
- },
- },
+ }
+ }
}
diff --git a/src/views/ebiz/cardList/phoneCode.vue b/src/views/ebiz/cardList/phoneCode.vue
index cb715ed19..97553b778 100644
--- a/src/views/ebiz/cardList/phoneCode.vue
+++ b/src/views/ebiz/cardList/phoneCode.vue
@@ -6,8 +6,7 @@
text="特别提示:国富人寿为保证您的投保安全,请您点击发送验证码至投保人手机号,输入正确的验证码后点击下一步进入投保流程。"
/>