lex 2 年之前
父節點
當前提交
29e0e6a7af

+ 10 - 6
src/student/music-group/pre-apply/order-detail.tsx

@@ -177,13 +177,17 @@ export default defineComponent({
           // console.log(data)
           if (data.status !== 'WAIT_PAY' && data.status !== 'PAYING') {
             // 默认关闭支付二维码弹窗
-            state.showQrcode = false
+            // state.showQrcode = false
             clearInterval(orderTimer)
-            setTimeout(() => {
-              window.location.replace(
-                window.location.origin + '/#/payment-result?orderNo=' + state.orderNo
-              )
-            }, 100)
+            // window.location.replace(
+            //   window.location.origin + '/#/payment-result?orderNo=' + state.orderNo
+            // )
+            router.replace({
+              path: 'payment-result',
+              query: {
+                orderNo: state.orderNo
+              }
+            })
           }
         } catch {
           //

+ 1 - 1
src/views/adapay/pay-result/index.module.less

@@ -50,6 +50,6 @@
 .error-icon {
   display: block;
   color: #ffb07b;
-  font-size: 16px;
+  font-size: 22px;
   margin-bottom: 20px;
 }

+ 3 - 3
src/views/adapay/pay-result/index.tsx

@@ -32,6 +32,8 @@ export default defineComponent({
       payInfo: {} as any
     })
 
+    console.log(state.errorText)
+
     const init = () => {
       const query = route.query
       console.log(query)
@@ -203,9 +205,7 @@ export default defineComponent({
 
         {!state.browserStatus && (
           <div class={styles['error-text']}>
-            {state.errorText && (
-              <Icon v-if="errorText" class={styles['error-icon']} name="warning-o" />
-            )}
+            {state.errorText && <Icon class={styles['error-icon']} name="warning-o" />}
             {state.errorText}
           </div>
         )}