shaogen1995 11 月之前
父节点
当前提交
25c9c5cff1
共有 3 个文件被更改,包括 11 次插入13 次删除
  1. 1 1
      Code/public/myData/myData.js
  2. 10 12
      Code/src/pages/A5chef/index.tsx
  3. 二进制
      资源/staticData/chef/3_1.mp4

+ 1 - 1
Code/public/myData/myData.js

@@ -795,7 +795,7 @@ moreHotArr = moreHotArr.filter(v => !v.noShow)
 const myDataTemp = {
   // 开发调试为 false  正式上线为  true
   // 开发调试的时候 取消所有加载进度条 所有的视频动画都加上跳过按钮
-  isLdong: false,
+  isLdong: true,
 
   // 首页(静态资源目录位置:staticData/home)
   home: {

+ 10 - 12
Code/src/pages/A5chef/index.tsx

@@ -28,18 +28,16 @@ function A5chef() {
   const [hotInd, setHotInd] = useState(-1)
 
   useEffect(() => {
-    if (hotInd !== -1) {
-      setTimeout(() => {
-        const videoDomAll: any = document.querySelectorAll('.A5video video')
-        videoDomAll.forEach((v: HTMLVideoElement) => {
-          if (v.className === `A5videoSon${hotInd}1`) v.play()
-          else {
-            v.currentTime = 0
-            v.pause()
-          }
-        })
-      }, 100)
-    }
+    setTimeout(() => {
+      const videoDomAll: any = document.querySelectorAll('.A5video video')
+      videoDomAll.forEach((v: HTMLVideoElement) => {
+        if (v.className === `A5videoSon${hotInd}1`) v.play()
+        else {
+          v.currentTime = 0
+          v.pause()
+        }
+      })
+    }, 100)
   }, [hotInd])
 
   const videoRef1 = useRef<HTMLVideoElement>(null)

二进制
资源/staticData/chef/3_1.mp4