【fix】 修复支付结果页面,产品名称显示问题

This commit is contained in:
tian.guangyuan
2020-04-27 17:39:17 +08:00
parent 8a962c856f
commit 546ffb4331
2 changed files with 11 additions and 7 deletions

View File

@@ -290,7 +290,7 @@ export default {
currentTime = dateToday.getTime()
compareTime = new Date(orderItem.orderInfoDTO.appntDate).getTime()
let tmpSub = compareTime - currentTime
if( tmpSub > 0 && tmp < 24*60*60*1000){
if( tmpSub > 0 && tmpSub < 24*60*60*1000){
orderObj.isCanPay = true
}
NewItems.push(orderObj)

View File

@@ -15,9 +15,9 @@
</div>
<van-cell-group v-if="payStatus == 1">
<van-cell title="产品名称" :value="payInfo.productName" v-if="payInfo.appntName != ''" />
<van-cell title="产品名称" :value="card.appntName" />
<van-cell title="支付金额" :value="`${payInfo.amnt}元` | moneyFormat" v-if="payInfo.amnt != ''" />
<van-cell title="卡号" :value="payInfo.bankCardNumber" />
<van-cell title="卡号" :value="card.cardBookCode" />
</van-cell-group>
<!-- <div v-if="payStatus != '2' && payStatus != '1'" class=" p10 pb250 bg-white">
<span class="pt150 fs14"> 如有相关问题请联系信息技术部运维人员</span>
@@ -32,10 +32,10 @@
<span v-html="resMessage"></span>
</div> -->
<div class="bottom-btn bg-white" v-if="payStatus == '1' || payStatus == '4' || payStatus == '8'">
<!-- <div class="bottom-btn bg-white" v-if="payStatus == '1' || payStatus == '4' || payStatus == '8'">
<van-button type="danger" size="large" @click="next" v-no-more-click="1000">返回首页</van-button>
</div>
<div class="bottom-area bottom-btn flex" v-if="payStatus == '2'">
</div> -->
<div class="bottom-area bottom-btn flex">
<!-- <van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button> -->
<van-button size="large" type="danger" @click="next" v-no-more-click="1000">返回首页</van-button>
</div>
@@ -63,6 +63,9 @@ export default {
appntName: '', // 投保人
prtNo: '', // 投保单号
amnt: '' // 支付金额
},
card:{
},
// 图片
srcSuccess: this.$assetsUrl + 'images/success.png',
@@ -120,7 +123,7 @@ export default {
console.log('----支付结果查询', JSON.stringify(res))
if (res.result == '0') {
this.payStatus = res.payStatus
this.payInfo = { appntName: res.appntName, prtNo: res.prtNo, amnt: res.amnt }
this.payInfo = res
// 如果是支付中2秒后重新获取一次支付状态
if (this.payStatus == '4' && !this.isReloaded) {
@@ -164,6 +167,7 @@ export default {
let that = this
// document.body.style.backgroundColor = '#fff'
that.payStatus = window.localStorage.getItem('payStatus')
this.card = JSON.parse(window.localStorage.getItem('cardList-detail'))
that.payInfo = JSON.parse(window.localStorage.getItem('payInfo'))
if (window.localStorage.getItem('resMessage') != null) {
that.resMessage = window.localStorage.getItem('resMessage').replace(/\\n/g, '<br>')