Explorar el Código

新增免费观看参数来控制科目三视频2

JXDS18FUJT hace 1 año
padre
commit
7961994aa4
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/views/courseCatalog/components/courseCatalog/index.tsx

+ 5 - 0
src/views/courseCatalog/components/courseCatalog/index.tsx

@@ -98,6 +98,11 @@ export const CourseCatalog: React.FC = (props: any) => {
    
 
     const allowLook = (item: any) => {
+        //全局免费观看
+        if(isVideoFree=='1'){
+            window.location.href = item.videoUrl
+            return
+        }
         if (item.permission == 1) {
             window.location.href = item.videoUrl
             return