mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 05:06:43 +08:00
【fix】 修复支付结果页面,产品名称显示问题
This commit is contained in:
@@ -290,7 +290,7 @@ export default {
|
|||||||
currentTime = dateToday.getTime()
|
currentTime = dateToday.getTime()
|
||||||
compareTime = new Date(orderItem.orderInfoDTO.appntDate).getTime()
|
compareTime = new Date(orderItem.orderInfoDTO.appntDate).getTime()
|
||||||
let tmpSub = compareTime - currentTime
|
let tmpSub = compareTime - currentTime
|
||||||
if( tmpSub > 0 && tmp < 24*60*60*1000){
|
if( tmpSub > 0 && tmpSub < 24*60*60*1000){
|
||||||
orderObj.isCanPay = true
|
orderObj.isCanPay = true
|
||||||
}
|
}
|
||||||
NewItems.push(orderObj)
|
NewItems.push(orderObj)
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-cell-group v-if="payStatus == 1">
|
<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.amnt}元` | moneyFormat" v-if="payInfo.amnt != ''" />
|
||||||
<van-cell title="卡号" :value="payInfo.bankCardNumber" />
|
<van-cell title="卡号" :value="card.cardBookCode" />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<!-- <div v-if="payStatus != '2' && payStatus != '1'" class=" p10 pb250 bg-white">
|
<!-- <div v-if="payStatus != '2' && payStatus != '1'" class=" p10 pb250 bg-white">
|
||||||
<span class="pt150 fs14"> 如有相关问题,请联系信息技术部运维人员</span>
|
<span class="pt150 fs14"> 如有相关问题,请联系信息技术部运维人员</span>
|
||||||
@@ -32,10 +32,10 @@
|
|||||||
<span v-html="resMessage"></span>
|
<span v-html="resMessage"></span>
|
||||||
</div> -->
|
</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>
|
<van-button type="danger" size="large" @click="next" v-no-more-click="1000">返回首页</van-button>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="bottom-area bottom-btn flex" v-if="payStatus == '2'">
|
<div class="bottom-area bottom-btn flex">
|
||||||
<!-- <van-button class="m-btn w250" type="danger" size="normal" @click="rePayMent">重新支付</van-button> -->
|
<!-- <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>
|
<van-button size="large" type="danger" @click="next" v-no-more-click="1000">返回首页</van-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -63,6 +63,9 @@ export default {
|
|||||||
appntName: '', // 投保人
|
appntName: '', // 投保人
|
||||||
prtNo: '', // 投保单号
|
prtNo: '', // 投保单号
|
||||||
amnt: '' // 支付金额
|
amnt: '' // 支付金额
|
||||||
|
},
|
||||||
|
card:{
|
||||||
|
|
||||||
},
|
},
|
||||||
// 图片
|
// 图片
|
||||||
srcSuccess: this.$assetsUrl + 'images/success.png',
|
srcSuccess: this.$assetsUrl + 'images/success.png',
|
||||||
@@ -120,7 +123,7 @@ export default {
|
|||||||
console.log('----支付结果查询', JSON.stringify(res))
|
console.log('----支付结果查询', JSON.stringify(res))
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.payStatus = res.payStatus
|
this.payStatus = res.payStatus
|
||||||
this.payInfo = { appntName: res.appntName, prtNo: res.prtNo, amnt: res.amnt }
|
this.payInfo = res
|
||||||
|
|
||||||
// 如果是支付中,2秒后,重新获取一次支付状态
|
// 如果是支付中,2秒后,重新获取一次支付状态
|
||||||
if (this.payStatus == '4' && !this.isReloaded) {
|
if (this.payStatus == '4' && !this.isReloaded) {
|
||||||
@@ -164,6 +167,7 @@ export default {
|
|||||||
let that = this
|
let that = this
|
||||||
// document.body.style.backgroundColor = '#fff'
|
// document.body.style.backgroundColor = '#fff'
|
||||||
that.payStatus = window.localStorage.getItem('payStatus')
|
that.payStatus = window.localStorage.getItem('payStatus')
|
||||||
|
this.card = JSON.parse(window.localStorage.getItem('cardList-detail'))
|
||||||
that.payInfo = JSON.parse(window.localStorage.getItem('payInfo'))
|
that.payInfo = JSON.parse(window.localStorage.getItem('payInfo'))
|
||||||
if (window.localStorage.getItem('resMessage') != null) {
|
if (window.localStorage.getItem('resMessage') != null) {
|
||||||
that.resMessage = window.localStorage.getItem('resMessage').replace(/\\n/g, '<br>')
|
that.resMessage = window.localStorage.getItem('resMessage').replace(/\\n/g, '<br>')
|
||||||
|
|||||||
Reference in New Issue
Block a user