支付
Showing
2 changed files
with
13 additions
and
2 deletions
| ... | @@ -225,7 +225,10 @@ const handleSubmit = async () => { | ... | @@ -225,7 +225,10 @@ const handleSubmit = async () => { |
| 225 | if (res == 'OK') { | 225 | if (res == 'OK') { |
| 226 | uni.showToast({title: '支付成功', icon: 'success'}); | 226 | uni.showToast({title: '支付成功', icon: 'success'}); |
| 227 | setTimeout(() => { | 227 | setTimeout(() => { |
| 228 | uni.navigateBack(); | 228 | // uni.navigateBack(); |
| 229 | uni.redirectTo({ | ||
| 230 | url: '/level/apply' | ||
| 231 | }) | ||
| 229 | }, 1500) | 232 | }, 1500) |
| 230 | } | 233 | } |
| 231 | } | 234 | } | ... | ... |
| ... | @@ -108,6 +108,10 @@ async function handlePay() { | ... | @@ -108,6 +108,10 @@ async function handlePay() { |
| 108 | 108 | ||
| 109 | try { | 109 | try { |
| 110 | payLoading.value = true | 110 | payLoading.value = true |
| 111 | uni.showToast({ | ||
| 112 | title: '支付中...', | ||
| 113 | mask: true | ||
| 114 | }) | ||
| 111 | const res = await api.goPay(rangeId.value, '2') | 115 | const res = await api.goPay(rangeId.value, '2') |
| 112 | if (res.data.payResult && res.data.payResult.encryptedData) { | 116 | if (res.data.payResult && res.data.payResult.encryptedData) { |
| 113 | const reason = await minShengPay(res.data.orderId, res.data.payResult.encryptedData) | 117 | const reason = await minShengPay(res.data.orderId, res.data.payResult.encryptedData) |
| ... | @@ -119,7 +123,10 @@ async function handlePay() { | ... | @@ -119,7 +123,10 @@ async function handlePay() { |
| 119 | 123 | ||
| 120 | uni.showToast({title: '支付成功', icon: 'success'}); | 124 | uni.showToast({title: '支付成功', icon: 'success'}); |
| 121 | setTimeout(() => { | 125 | setTimeout(() => { |
| 122 | uni.navigateBack(); | 126 | uni.hideLoading() |
| 127 | uni.redirectTo({ | ||
| 128 | url: `/personalVip/payment` | ||
| 129 | }) | ||
| 123 | }, 1500) | 130 | }, 1500) |
| 124 | } | 131 | } |
| 125 | } | 132 | } |
| ... | @@ -133,6 +140,7 @@ async function handlePay() { | ... | @@ -133,6 +140,7 @@ async function handlePay() { |
| 133 | icon: 'none' | 140 | icon: 'none' |
| 134 | }) | 141 | }) |
| 135 | } finally { | 142 | } finally { |
| 143 | uni.hideLoading() | ||
| 136 | payLoading.value = false | 144 | payLoading.value = false |
| 137 | } | 145 | } |
| 138 | } | 146 | } | ... | ... |
-
Please register or sign in to post a comment