|
@@ -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) => {
|