ff58c49a by 张猛

支付

1 parent b9272f18
......@@ -225,7 +225,10 @@ const handleSubmit = async () => {
if (res == 'OK') {
uni.showToast({title: '支付成功', icon: 'success'});
setTimeout(() => {
uni.navigateBack();
// uni.navigateBack();
uni.redirectTo({
url: '/level/apply'
})
}, 1500)
}
}
......
......@@ -108,6 +108,10 @@ async function handlePay() {
try {
payLoading.value = true
uni.showToast({
title: '支付中...',
mask: true
})
const res = await api.goPay(rangeId.value, '2')
if (res.data.payResult && res.data.payResult.encryptedData) {
const reason = await minShengPay(res.data.orderId, res.data.payResult.encryptedData)
......@@ -119,7 +123,10 @@ async function handlePay() {
uni.showToast({title: '支付成功', icon: 'success'});
setTimeout(() => {
uni.navigateBack();
uni.hideLoading()
uni.redirectTo({
url: `/personalVip/payment`
})
}, 1500)
}
}
......@@ -133,6 +140,7 @@ async function handlePay() {
icon: 'none'
})
} finally {
uni.hideLoading()
payLoading.value = false
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!