浏览代码

更新数据

lanxin 2 月之前
父节点
当前提交
61606f0278
共有 3 个文件被更改,包括 7 次插入8 次删除
  1. 4 5
      src/pages/A1home/index.tsx
  2. 2 3
      src/pages/A1home2/index.tsx
  3. 1 0
      src/pages/A6ybwx/A6_1_zxys/index.tsx

+ 4 - 5
src/pages/A1home/index.tsx

@@ -13,7 +13,7 @@ function A1home() {
       objectFit: 'cover', // 视频的object-fit样式, 默认 cover
       loop: true, // 是否循环, 默认false
       autoplay: true, // 自动播放, 默认false
-      onSourceEstablished: () => {} //有足够的数据可以播放了
+      onSourceEstablished: () => { } //有足够的数据可以播放了
     }
     const videoInit = F_Video('./myData/base.ts', params)
     const dom = document.querySelector('.A1baseVideo')!
@@ -51,8 +51,8 @@ function A1home() {
         objectFit: 'cover', // 视频的object-fit样式, 默认 cover
         loop: false, // 是否循环, 默认false
         autoplay: false, // 自动播放, 默认false
-        onPlay: () => {}, // 触发播放事件
-        onPause: () => {}, // 触发暂停事件
+        onPlay: () => { }, // 触发播放事件
+        onPause: () => { }, // 触发暂停事件
         onEnded: () => {
           window.location.replace('#/base')
         }, // 触发播放结束事件
@@ -72,7 +72,6 @@ function A1home() {
       if (modalIframe) {
         modalIframe.style.display = 'block'
         modalIframe.src = 'Chenzhebei-ShanxiMuseum/index.html'
-        modalIframe.loading = 'lazy'
       }
       window.unityLoading = (progress: number) => {
         clearInterval(timeRef.current)
@@ -106,7 +105,7 @@ function A1home() {
 
       <div className={classNames('A1video', loding >= 100 ? 'A1videoShow' : '')}>
         <div className='A1videoBox'></div>
-        <div className='A1videoBtn' onClick={()=>window.location.replace('#/base')}>跳过</div>
+        <div className='A1videoBtn' onClick={() => window.location.replace('#/base')}>跳过</div>
       </div>
     </div>
   )

+ 2 - 3
src/pages/A1home2/index.tsx

@@ -36,7 +36,6 @@ function A1home() {
       if (modalIframe) {
         modalIframe.style.display = 'block'
         modalIframe.src = 'Chenzhebei-ShanxiMuseum/index.html'
-        modalIframe.loading = 'lazy'
       }
     }
   }, [baseFlag])
@@ -48,8 +47,8 @@ function A1home() {
         objectFit: 'cover', // 视频的object-fit样式, 默认 cover
         loop: false, // 是否循环, 默认false
         autoplay: false, // 自动播放, 默认false
-        onPlay: () => {}, // 触发播放事件
-        onPause: () => {}, // 触发暂停事件
+        onPlay: () => { }, // 触发播放事件
+        onPause: () => { }, // 触发暂停事件
         onEnded: () => {
           window.location.replace('#/base')
         }, // 触发播放结束事件

+ 1 - 0
src/pages/A6ybwx/A6_1_zxys/index.tsx

@@ -1,5 +1,6 @@
 import React, { useState } from 'react'
 import styles from './index.module.scss'
+import store from '@/store'
 import { isPc, myData } from '@/utils/http'
 import classNames from 'classnames'