|
|
|
@ -324,33 +324,26 @@ |
|
|
|
|
uni.requestPayment({ |
|
|
|
|
provider: 'wxpay', |
|
|
|
|
...res.data.baseWxOrderVo, |
|
|
|
|
success: (res1) => { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.code == 20000) { |
|
|
|
|
success: (_res) => { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.msg |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
oilPayApi.wxPayIntegral({ |
|
|
|
|
appId: 'wx2f203fde39b883bc', |
|
|
|
|
orderId: this.order.orderSerialNumber |
|
|
|
|
}) |
|
|
|
|
uni.redirectTo({ |
|
|
|
|
url: '/BagStation/pages/makeOrder/payResult?status=success&&payMethod=' + |
|
|
|
|
this.payMethod, |
|
|
|
|
fail: (err) => { |
|
|
|
|
// console.log(err) |
|
|
|
|
} |
|
|
|
|
this.payMethod |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.msg, |
|
|
|
|
icon: 'none' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
fail: function(err) { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|