ff58c49a by 张猛

支付

1 parent b9272f18
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!