|
@@ -265,8 +265,10 @@ Page({
|
|
//type 1 是未支付带过去的 2 是已支付带过去的
|
|
//type 1 是未支付带过去的 2 是已支付带过去的
|
|
async goToOrderInfo(){
|
|
async goToOrderInfo(){
|
|
|
|
|
|
- let res = await WelfareMall.getPayStatus(this.data.orderSn);
|
|
|
|
- console.log(res);
|
|
|
|
|
|
+ if(this.data.orderSn){
|
|
|
|
+ let res = await WelfareMall.getPayStatus(this.data.orderSn);
|
|
|
|
+ console.log(res);
|
|
|
|
+ }
|
|
wx.redirectTo({
|
|
wx.redirectTo({
|
|
url: '/pages/welfareMall/order/orderCompletion?ordersn='+this.data.orderSn
|
|
url: '/pages/welfareMall/order/orderCompletion?ordersn='+this.data.orderSn
|
|
})
|
|
})
|