mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 13:16:43 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】支付页面--保费从这里orderInfoDTO.orderAmount取值
This commit is contained in:
@@ -5,7 +5,9 @@
|
|||||||
<van-field v-model="underWriteData.riskName" type="textarea" autosize readonly label="产品名称:" class="projuct" />
|
<van-field v-model="underWriteData.riskName" type="textarea" autosize readonly label="产品名称:" class="projuct" />
|
||||||
<van-field v-model="underWriteData.schemeName" readonly label="保障方案:" class="projuct" />
|
<van-field v-model="underWriteData.schemeName" readonly label="保障方案:" class="projuct" />
|
||||||
<van-field v-if="!isWeixin" v-model="underWriteData.appntName" readonly label="投保人姓名:" class="projuct" />
|
<van-field v-if="!isWeixin" v-model="underWriteData.appntName" readonly label="投保人姓名:" class="projuct" />
|
||||||
<van-field v-if="!isWeixin" v-model="underWriteData.insuredName" readonly label="被保人姓名:" class="projuct" />
|
<template v-if="!isWeixin">
|
||||||
|
<van-field v-for="item in insuredDTOs" :key="item.name" v-model="item.name" readonly label="被保人姓名:" class="projuct" />
|
||||||
|
</template>
|
||||||
<van-field :value="underWriteData.orderAmount == undefined ? '' : `${underWriteData.orderAmount} 元`" readonly label="支付金额:" />
|
<van-field :value="underWriteData.orderAmount == undefined ? '' : `${underWriteData.orderAmount} 元`" readonly label="支付金额:" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<!-- 银行卡支付开始 -->
|
<!-- 银行卡支付开始 -->
|
||||||
@@ -217,6 +219,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
return {
|
return {
|
||||||
|
insuredDTOs:[],//被保人信息
|
||||||
// 银行卡支付图片地址
|
// 银行卡支付图片地址
|
||||||
src: this.$assetsUrl + 'images/cardImg.png',
|
src: this.$assetsUrl + 'images/cardImg.png',
|
||||||
// 微信支付图片地址
|
// 微信支付图片地址
|
||||||
@@ -303,18 +306,6 @@ export default {
|
|||||||
cardBookCode: orderDetail.orderAccountDTO.cardBookCode,
|
cardBookCode: orderDetail.orderAccountDTO.cardBookCode,
|
||||||
bankName: orderDetail.orderAccountDTO.bankCode
|
bankName: orderDetail.orderAccountDTO.bankCode
|
||||||
}
|
}
|
||||||
// 团险产品团险产品显示多个被保人姓名
|
|
||||||
if(orderDetail.insuredDTOs.length == 1){
|
|
||||||
this.underWriteData.insuredName = orderDetail.insuredDTOs[0].name
|
|
||||||
}else if(orderDetail.insuredDTOs.length > 1){
|
|
||||||
orderDetail.insuredDTOs.forEach((item, index) => {
|
|
||||||
if(index == orderDetail.insuredDTOs.length -1){
|
|
||||||
this.underWriteData.insuredName += item.name
|
|
||||||
}else{
|
|
||||||
this.underWriteData.insuredName += item.name+'/'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.bankListName = orderDetail.orderAccountDTO.bankName
|
this.bankListName = orderDetail.orderAccountDTO.bankName
|
||||||
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
|
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
|
||||||
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
|
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
|
||||||
@@ -520,6 +511,7 @@ export default {
|
|||||||
getOrderDetail() {
|
getOrderDetail() {
|
||||||
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
this.insuredDTOs = res.orderDTO.insuredDTOs
|
||||||
this.orderStatus = res.orderDTO.orderInfoDTO.orderStatus
|
this.orderStatus = res.orderDTO.orderInfoDTO.orderStatus
|
||||||
try {
|
try {
|
||||||
if (this.noEdit) {
|
if (this.noEdit) {
|
||||||
@@ -548,19 +540,6 @@ export default {
|
|||||||
resultMessage: '交易处理成功',
|
resultMessage: '交易处理成功',
|
||||||
uwResult: '02'
|
uwResult: '02'
|
||||||
}
|
}
|
||||||
let orderDetail = res.orderDTO
|
|
||||||
// 团险产品团险产品显示多个被保人姓名
|
|
||||||
if(orderDetail.insuredDTOs.length == 1){
|
|
||||||
this.underWriteData.insuredName = orderDetail.insuredDTOs[0].name
|
|
||||||
}else if(orderDetail.insuredDTOs.length > 1){
|
|
||||||
orderDetail.insuredDTOs.forEach((item, index) => {
|
|
||||||
if(index == orderDetail.insuredDTOs.length -1){
|
|
||||||
this.underWriteData.insuredName += item.name
|
|
||||||
}else{
|
|
||||||
this.underWriteData.insuredName += item.name+'/'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// this.bankListName = res.orderDTO.orderAccountDTO.bankName
|
// this.bankListName = res.orderDTO.orderAccountDTO.bankName
|
||||||
this.underWriteData.bankCode =
|
this.underWriteData.bankCode =
|
||||||
res.orderDTO.orderAccountDTO.cardBookCode !== null ? res.orderDTO.orderAccountDTO.cardBookCode : this.$route.query.bankCode
|
res.orderDTO.orderAccountDTO.cardBookCode !== null ? res.orderDTO.orderAccountDTO.cardBookCode : this.$route.query.bankCode
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<van-goods-action style='z-index: 99'>
|
<van-goods-action style='z-index: 99'>
|
||||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'>总保费:<span
|
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'>总保费:<span
|
||||||
style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{
|
style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{
|
||||||
riskDTO.prem }}</span>元
|
orderAmount }}</span>元
|
||||||
</van-button>
|
</van-button>
|
||||||
<van-goods-action-button type='danger' text='确认' @click='nextStep' v-no-more-click='1000'
|
<van-goods-action-button type='danger' text='确认' @click='nextStep' v-no-more-click='1000'
|
||||||
style='border-radius: 0em; width: 50%; height: 40px' />
|
style='border-radius: 0em; width: 50%; height: 40px' />
|
||||||
@@ -127,6 +127,7 @@ export default {
|
|||||||
insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
|
insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
|
||||||
productDateTime = productDate.getFullYear() + '年' + insuYearM + '月' + insuYearD + '日'
|
productDateTime = productDate.getFullYear() + '年' + insuYearM + '月' + insuYearD + '日'
|
||||||
this.productDate = currentData + '0时至' + productDateTime + '24时止'
|
this.productDate = currentData + '0时至' + productDateTime + '24时止'
|
||||||
|
this.orderAmount = this.orderDTO.orderInfoDTO.orderAmount
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
nextStep() {
|
nextStep() {
|
||||||
|
|||||||
Reference in New Issue
Block a user