diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue index caf331ccf..fe4f7b2da 100644 --- a/src/views/ebiz/cardList/Pay.vue +++ b/src/views/ebiz/cardList/Pay.vue @@ -3,7 +3,7 @@
- + @@ -205,6 +205,7 @@ export default { name: '', bankCode: '', //银行卡号 bankName: '', //开户银行 + schemeName: '' //保障金额 }, radio: '3', result: [], @@ -265,6 +266,7 @@ export default { this.underWriteData.appntName = orderDetail.appntDTO.name this.underWriteData.insuredName = orderDetail.insuredDTOs[0].name this.underWriteData.orderAmount = orderDetail.insuredDTOs[0].riskDTOLst[0].prem + this.underWriteData.schemeName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].proScheme this.orderStatus = orderDetail.orderInfoDTO.orderStatus this.underWriteData.idType = orderDetail.appntDTO.idType // this.radio = '3' @@ -477,8 +479,9 @@ export default { // bankName: res.orderDTO.orderAccountDTO.bankCode, // bankCode: res.orderDTO.orderAccountDTO.cardBookCode, // cardBookCode: res.orderDTO.orderAccountDTO.cardBookCode, + schemeName: res.orderDTO.insuredDTOs[0].riskDTOLst[0].proScheme, idType: res.orderDTO.appntDTO.idType, - orderAmount: res.orderDTO.orderInfoDTO.orderAmount, + orderAmount: res.orderDTO.insuredDTOs[0].riskDTOLst[0].prem, orderNo: res.orderDTO.orderAccountDTO.orderNo, result: '', resultMessage: '交易处理成功', @@ -490,8 +493,7 @@ export default { this.underWriteData.bankName = res.orderDTO.orderAccountDTO.bankCode !== null ? res.orderDTO.orderAccountDTO.bankCode : this.$route.query.bankName this.underWriteData.cardBookCode = res.orderDTO.orderAccountDTO.cardBookCode !== null ? res.orderDTO.orderAccountDTO.cardBookCode : this.$route.query.bankCode - this.bankListName = res.orderDTO.orderAccountDTO.bankName !== null ? res.orderDTO.orderAccountDTO.bankName : this.$route.query.bankListName - + this.bankListName = res.orderDTO.orderAccountDTO.bankName !== null ? res.orderDTO.orderAccountDTO.bankName : this.$route.query.bankListName // if (this.isWeixin) { // this.pay() // } @@ -757,7 +759,6 @@ 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/information.vue b/src/views/ebiz/cardList/information.vue index 96eafd248..cffa44769 100644 --- a/src/views/ebiz/cardList/information.vue +++ b/src/views/ebiz/cardList/information.vue @@ -978,11 +978,24 @@ export default { switch (insuYear.insuYearFlag){ case 'D': var hoDate = Date.parse(val)/1000 + insuYear['insuYear']*24*3600 + var productDate = new Date(parseInt(hoDate) * 1000); + var productDateTime = productDate.getFullYear() + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日' + this.productDate = currentData + '0时至' + productDateTime + '24时止' + break; + case 'Y': + var productDate = new Date() + var productDateTime = parseInt(productDate.getFullYear())+parseInt(insuYear['insuYear']) + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日' + this.productDate = currentData + '0时至' + productDateTime + '24时止' + break; + case 'M': + var productDate = new Date() + let yearY = parseInt(productDate.getFullYear()) + parseInt((parseInt((productDate.getMonth() + 1))+parseInt(insuYear['insuYear']))/12) + let yearM = parseInt((productDate.getMonth() + 1)) + parseInt((parseInt((productDate.getMonth() + 1))+parseInt(insuYear['insuYear']))%12) + var productDateTime = yearY + '年' + yearM + '月' + productDate.getDate() + '日' + this.productDate = currentData + '0时至' + productDateTime + '24时止' break; } - var productDate = new Date(parseInt(hoDate) * 1000); - var productDateTime = productDate.getFullYear() + '年' + (productDate.getMonth() + 1) + '月' + productDate.getDate() + '日'; - this.productDate = currentData + '至' + productDateTime + '时止' + } break }