Commit f1855d04 by 张立顺

fix bug

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