支付返回,修改禅道bug
This commit is contained in:
@@ -122,31 +122,7 @@
|
||||
initPaymentData()
|
||||
})
|
||||
|
||||
// 从支付收银台返回时检查支付结果
|
||||
onShow((options) => {
|
||||
// 检查是否有从日照银行小程序返回的支付结果
|
||||
if (options && options.referrerInfo && options.referrerInfo.extraData) {
|
||||
const extraData = options.referrerInfo.extraData
|
||||
if (extraData.retCode === 'SUCCESS') {
|
||||
sendPaySuccessPush()
|
||||
uni.redirectTo({
|
||||
url: '/pageSubPack/payment-list/addPaymentSuccess?type=pay'
|
||||
})
|
||||
return
|
||||
} else if (extraData.retCode === 'FAIL') {
|
||||
uni.showToast({ title: extraData.retMsg || '支付失败', icon: 'none' })
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
const paySuccess = uni.getStorageSync('paySuccess')
|
||||
if (paySuccess) {
|
||||
uni.removeStorageSync('paySuccess')
|
||||
uni.redirectTo({
|
||||
url: '/pageSubPack/payment-list/addPaymentSuccess?type=pay'
|
||||
})
|
||||
}
|
||||
})
|
||||
onShow(() => {})
|
||||
|
||||
// 初始化缴费数据
|
||||
const initPaymentData = () => {
|
||||
|
||||
Reference in New Issue
Block a user