Parcourir la source

延长科支付的时间

JXDS18FUJT il y a 1 an
Parent
commit
32c67b9694
1 fichiers modifiés avec 8 ajouts et 3 suppressions
  1. 8 3
      src/views/courseCatalog/components/courseCatalog/index.tsx

+ 8 - 3
src/views/courseCatalog/components/courseCatalog/index.tsx

@@ -22,10 +22,15 @@ export const CourseCatalog: React.FC = (props: any) => {
                     if (res.err_msg == "get_brand_wcpay_request:ok") {
                         // 使用以上方式判断前端返回,微信团队郑重提示:
                         //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
-                        console.log('支付成功')
+                        Toast.loading({
+                            message:'支付中',
+                            duration:3000,
+                            
+                        })
                         window.setTimeout(() => {
+                            Toast.clear()
                             window.location.reload()
-                        }, 1500)
+                        }, 3000)
 
                     }
                 });
@@ -38,7 +43,7 @@ export const CourseCatalog: React.FC = (props: any) => {
         })
         // wx.chooseWXPay()
     }
-
+   
     const id = Number(new URLSearchParams(window.location.search).get("id") || '0')
     const myExamIds = useRef<number[]>([])
     const allowLook = (item: any) => {