|
@@ -341,6 +341,7 @@ Page({
|
|
|
"orderName": name,
|
|
|
"orderDesc": name
|
|
|
})
|
|
|
+
|
|
|
if (data.code === 200) {
|
|
|
const { paymentConfig, paymentType, orderNo } = data.data
|
|
|
this.onExecutePay(paymentConfig, paymentType, orderNo)
|
|
@@ -351,12 +352,17 @@ Page({
|
|
|
icon: 'none'
|
|
|
})
|
|
|
} else if([5435, 5436, 5437, 5439, 5442, 5443, 5408, 5427, 5432].includes(data.code)) {
|
|
|
+ wx.hideLoading()
|
|
|
+ wx.showToast({
|
|
|
+ title: data.message,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
wx.navigateBack()
|
|
|
} else {
|
|
|
this.onPayError()
|
|
|
}
|
|
|
}
|
|
|
- } catch {
|
|
|
+ } catch(e) {
|
|
|
wx.hideLoading()
|
|
|
}
|
|
|
},
|
|
@@ -374,6 +380,13 @@ Page({
|
|
|
wx.hideLoading()
|
|
|
if (res.data.code === 200) {
|
|
|
this.onPay(paymentType, res.data.data.reqParams, orderNo)
|
|
|
+ } else if([5435, 5436, 5437, 5439, 5442, 5443, 5408, 5427, 5432].includes(res.data.code)) {
|
|
|
+ wx.hideLoading()
|
|
|
+ wx.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ wx.navigateBack()
|
|
|
} else {
|
|
|
this.onPayError(res.data.message)
|
|
|
}
|