From 45f3a541e16fc0a5a64354b008cf2c80bbbf7286 Mon Sep 17 00:00:00 2001 From: "tian.guangyuan" Date: Wed, 22 Apr 2020 15:23:33 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E5=AE=8C=E5=96=84=E5=8D=A1=E5=8D=95?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=8A=95=E4=BF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/cardList/CardTotreasure.vue | 11 ++++++----- src/views/ebiz/cardList/Pay.vue | 15 +++++++++------ src/views/ebiz/cardList/PayResult.vue | 14 +++++++------- src/views/ebiz/cardList/PaySuccess.vue | 22 +++++++++++++--------- 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/src/views/ebiz/cardList/CardTotreasure.vue b/src/views/ebiz/cardList/CardTotreasure.vue index 025988623..f70716983 100644 --- a/src/views/ebiz/cardList/CardTotreasure.vue +++ b/src/views/ebiz/cardList/CardTotreasure.vue @@ -2,11 +2,11 @@
-
+
  • @@ -25,7 +25,7 @@
-
    +
@@ -57,7 +57,8 @@ export default { name: 'kadantoubao.vue', data() { return { - arr: ['产品列表', '我的卡单'], + arr: ['产品列表'], + // , '我的卡单' list: [ // { // headImgUrl: icon1, diff --git a/src/views/ebiz/cardList/Pay.vue b/src/views/ebiz/cardList/Pay.vue index f138b00cf..cb43fbba9 100644 --- a/src/views/ebiz/cardList/Pay.vue +++ b/src/views/ebiz/cardList/Pay.vue @@ -177,7 +177,7 @@ export default { ReqReserved4: '', // 备用字段4 ReqReserved5: '', // 备用字段5 S3Sign: '', // 验签信息 - tradeState: '' // 状态 + tradeState: '' ,// 状态 }, gotPayParam: false, // 是否已正确获取支付参数, payStatus: '' // 接口返回的支付状态 @@ -436,8 +436,9 @@ export default { message: '加载中……' }) let that = this - let data = { - orderNo: window.localStorage.getItem('orderNo') + data = { + orderNo: window.localStorage.getItem('orderNo'), + cardOrder: 'cardOrder' } let rs = await this.underWrite() @@ -471,13 +472,15 @@ export default { console.log('----支付参数:this.payParam:', JSON.stringify(this.payParam)) this.gotPayParam = true this.$forceUpdate() + window.localStorage.setItem('resMessage', res.resultMessage) + window.localStorage.setItem('payStatus', res.payStatus) + window.localStorage.setItem('payInfo', JSON.stringify(res)) + this.underWriteData.bankListName = this.bankListName + localStorage['cardList-detail'] = JSON.stringify(this.underWriteData) let thisRef = this this.$nextTick(() => { thisRef.$refs.payForm.submit() // 表单提交,发起支付,跳至收银台 }) - window.localStorage.setItem('resMessage', res.resultMessage) - window.localStorage.setItem('payStatus', res.payStatus) - window.localStorage.setItem('payInfo', JSON.stringify(res)) } else { that.$toast.clear() that.$toast(res.resultMessage) diff --git a/src/views/ebiz/cardList/PayResult.vue b/src/views/ebiz/cardList/PayResult.vue index 185423e18..3b29af613 100644 --- a/src/views/ebiz/cardList/PayResult.vue +++ b/src/views/ebiz/cardList/PayResult.vue @@ -31,11 +31,11 @@
-->
- 返回列表页 + 返回首页
- 重新支付 - 返回列表页 + + 返回首页
@@ -148,10 +148,10 @@ export default { this.queryPayState() } }, - beforeRouteLeave(to, from, next) { - document.body.style.backgroundColor = '' - next() - } + // beforeRouteLeave(to, from, next) { + // document.body.style.backgroundColor = '' + // next() + // } } diff --git a/src/views/ebiz/cardList/PaySuccess.vue b/src/views/ebiz/cardList/PaySuccess.vue index d528d0766..fb297144b 100644 --- a/src/views/ebiz/cardList/PaySuccess.vue +++ b/src/views/ebiz/cardList/PaySuccess.vue @@ -5,15 +5,15 @@ 支付成功 - - - - + + + + @@ -25,14 +25,17 @@