f1508768 by lttnew

传参优化

1 parent 95e867bc
...@@ -206,8 +206,12 @@ function goDetail(item) { ...@@ -206,8 +206,12 @@ function goDetail(item) {
206 } 206 }
207 207
208 function handlePay(item) { 208 function handlePay(item) {
209 let url = `/level/paymentDetail?examId=${item.examId}`
210 if (item.orderId) {
211 url += `&orderId=${item.orderId}`
212 }
209 uni.navigateTo({ 213 uni.navigateTo({
210 url: `/level/paymentDetail?examId=${item.examId}&orderId=${item.orderId || ''}` 214 url: url
211 }) 215 })
212 } 216 }
213 </script> 217 </script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!