|
@@ -44,6 +44,7 @@ export const CourseCatalog: React.FC = (props: any) => {
|
|
|
// wx.chooseWXPay()
|
|
|
}
|
|
|
const [isVideoFree,setIsVideoFree] = useState<string>('-1')
|
|
|
+ const myExamIds = useRef<number[]>([])
|
|
|
const createPayButton = () => {
|
|
|
if (isVideoFree == '1') {
|
|
|
return (<div
|
|
@@ -94,7 +95,7 @@ export const CourseCatalog: React.FC = (props: any) => {
|
|
|
}
|
|
|
|
|
|
const id = Number(new URLSearchParams(window.location.search).get("id") || '0')
|
|
|
- const myExamIds = useRef<number[]>([])
|
|
|
+
|
|
|
|
|
|
const allowLook = (item: any) => {
|
|
|
if (item.permission == 1) {
|