feature/GFRS-2301【需求】健康险渠道国富无忧卡金掌桂开发的需求--修改支付成功页面跳转--提交人庞兴月

This commit is contained in:
庞兴月
2021-04-07 14:29:31 +08:00
parent 9c7d340b82
commit d3e380d867
2 changed files with 15 additions and 5 deletions

View File

@@ -600,10 +600,10 @@ export default {
flag: 'h5', flag: 'h5',
extra: { extra: {
forbidSwipeBack: 1, //当前页面禁止右滑返回 forbidSwipeBack: 1, //当前页面禁止右滑返回
url: location.origin + `/#/cardList/paySuccess`, url: location.origin + `/#/cardList/PayResult`,
}, },
routerInfo: { routerInfo: {
path: `/cardList/paySuccess`, path: `/cardList/PayResult`,
type: '1', type: '1',
}, },
}) })

View File

@@ -6,9 +6,9 @@
<span>支付成功</span> <span>支付成功</span>
</div> </div>
<van-cell-group name="payInfo"> <van-cell-group name="payInfo">
<van-field v-model="productName" readonly clearable label="产品名称" name="产品名称" placeholder="国富安全出行2.0" /> <van-field :value="card.riskName" readonly clearable label="产品名称" name="产品名称" />
<van-field v-model="paymentAmount" readonly clearable label="支付金额" name="支付金额" placeholder="100.00元" /> <van-field :value="paymentAmount" readonly clearable label="支付金额" name="支付金额" />
<van-field v-model="bankCardNumber" readonly clearable label="卡号" name="卡号" placeholder="1297793740298" /> <van-field :value="card.bankCode" readonly clearable label="卡号" name="卡号" />
</van-cell-group> </van-cell-group>
</template> </template>
<!-- <template v-else-if="payStatus == '2'"> <!-- <template v-else-if="payStatus == '2'">
@@ -52,11 +52,21 @@ export default {
appntName: '', // 投保人 appntName: '', // 投保人
prtNo: '', // 投保单号 prtNo: '', // 投保单号
amnt: '' // 支付金额 amnt: '' // 支付金额
},
card:{
bankCode: '',
riskName: '',
riskName: '',
} }
} }
}, },
created() { created() {
this.payInfo = JSON.parse(window.localStorage.getItem('payInfo')) this.payInfo = JSON.parse(window.localStorage.getItem('payInfo'))
let orderDetail = JSON.parse(sessionStorage.orderDetail)
this.productName = orderDetail.insuredDTOs[0].riskDTOLst[0].riskName
this.paymentAmount = orderDetail.insuredDTOs[0].riskDTOLst[0].prem
this.bankCardNumber = orderDetail.insuredDTOs[0].riskDTOLst[0].riskName
this.card = JSON.parse(window.localStorage.getItem('cardList-detail'))
}, },
methods: { methods: {
goHome() { goHome() {