Commit f1855d04 by 张立顺

fix bug

1 parent 09eede4c
...@@ -123,8 +123,8 @@ Component({ ...@@ -123,8 +123,8 @@ Component({
// debugger // debugger
// console.log(wx.$router) // console.log(wx.$router)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
if (orderInfo.outTradeNo) return this.ResetOrder()
if (resetOrder) return this.newResetOrder() if (resetOrder) return this.newResetOrder()
if (orderInfo.outTradeNo) return this.ResetOrder()
if (payVoucherList.length && outTradeNo) { if (payVoucherList.length && outTradeNo) {
thisPage.setData({ thisPage.setData({
['orderInfo.transactionNo']: outTradeNo, ['orderInfo.transactionNo']: outTradeNo,
...@@ -141,6 +141,7 @@ Component({ ...@@ -141,6 +141,7 @@ Component({
newResetOrder() { newResetOrder() {
let { resetTransNo, payVoucherList } = this.data let { resetTransNo, payVoucherList } = this.data
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
// debugger
if (payVoucherList.length && resetTransNo) { if (payVoucherList.length && resetTransNo) {
thisPage.setData({ thisPage.setData({
['orderInfo.transactionNo']: resetTransNo, ['orderInfo.transactionNo']: resetTransNo,
......
...@@ -1202,8 +1202,11 @@ Page({ ...@@ -1202,8 +1202,11 @@ Page({
switchVlaue, switchVlaue,
outTradeNo, outTradeNo,
tradeNo, tradeNo,
['orderInfo.outTradeArr']: '',
['orderInfo.payType']: 1,
['orderInfo.outTradeNo']: outTradeNo, ['orderInfo.outTradeNo']: outTradeNo,
['orderInfo.tradeNo']: tradeNo, ['orderInfo.tradeNo']: tradeNo,
['orderInfo.transactionNo']: tradeNo,
accountDate, accountDate,
totalFee: totalFee, totalFee: totalFee,
showTips: true showTips: true
...@@ -1238,6 +1241,7 @@ Page({ ...@@ -1238,6 +1241,7 @@ Page({
['orderInfo.payType']: 5, ['orderInfo.payType']: 5,
['orderInfo.outTradeNo']: outTradeNo, ['orderInfo.outTradeNo']: outTradeNo,
['orderInfo.tradeNo']: tradeNo, ['orderInfo.tradeNo']: tradeNo,
['orderInfo.transactionNo']: tradeNo,
['orderInfo.outTradeArr']: outTradeArr, ['orderInfo.outTradeArr']: outTradeArr,
['orderInfo.successDateTime']: accountDate ['orderInfo.successDateTime']: accountDate
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!