lanxin 8 месяцев назад
Родитель
Сommit
f74a97a4f2

+ 2 - 2
public/js/Hot.js

@@ -56,8 +56,8 @@ window.initHot = function (model) {
     ;-1 == r.indexOf('?')
       ? (src = link + '?time=' + randomTime().getTime() + '&id=' + window.number + o)
       : (src = link + '&time=' + randomTime().getTime() + '&id=' + window.number + o)
-    return src.replace('https://www.4dmodel.com/SuperTwo/hot_online1/', 'http://localhost:8080/')
-    // return src
+    // return src.replace('https://www.4dmodel.com/SuperTwo/hot_online1/', 'http://localhost:8080/')
+    return src
   }
   var removeSrcPostMark = function (url) {
     //去除texture.load时自动加上的'?'

+ 3 - 3
src/pages/A0base/component/Panoramic.tsx

@@ -95,7 +95,7 @@ const Panoramic = ({
               // onDown='draggable_hotspot()'
             >
               <div className='A0hotspot'>
-                <div className='A0hotspot-text'>星通大厦</div>
+                <div className='A0hotspot-text'>前海院区</div>
                 <div className='A0hotspot-bg'></div>
               </div>
             </HotSpot>
@@ -121,7 +121,7 @@ const Panoramic = ({
               distorted={true}
             >
               <div className='A0hotspot'>
-                <div className='A0hotspot-text'>桃花源科技创新生态园</div>
+                <div className='A0hotspot-text'>宝安院区</div>
                 <div className='A0hotspot-bg'></div>
               </div>
             </HotSpot>
@@ -147,7 +147,7 @@ const Panoramic = ({
               distorted={true}
             >
               <div className='A0hotspot'>
-                <div className='A0hotspot-text'>深圳虚拟大学园</div>
+                <div className='A0hotspot-text'>南山院区</div>
                 <div className='A0hotspot-bg'></div>
               </div>
             </HotSpot>

+ 12 - 8
src/pages/A0base/component/startVideo.tsx

@@ -7,6 +7,8 @@ const VideoPlayer = ({ setIsEnd }: { setIsEnd: (isEnd: boolean) => void }) => {
     const video = videoRef.current
     if (!video) return
 
+    video.controls = false
+
     // 处理视频播放
     const handlePlay = async () => {
       try {
@@ -33,15 +35,17 @@ const VideoPlayer = ({ setIsEnd }: { setIsEnd: (isEnd: boolean) => void }) => {
   }, [setIsEnd])
 
   return (
-    <video
-      style={{ height: '100%', width: '100%', objectFit: 'cover' }}
-      ref={videoRef}
-      src={require('../image/video/shenzhen.mp4')}
-      muted
-      playsInline // 添加iOS内联播放支持
+    <div style={{ height: '100%', width: '100%', pointerEvents: 'none' }}>
+      <video
+        style={{ height: '100%', width: '100%', objectFit: 'cover', pointerEvents: 'none' }}
+        ref={videoRef}
+        src={require('../image/video/shenzhen.mp4')}
+        muted
+        playsInline // 添加iOS内联播放支持
       controls={false}
-      onError={e => console.error('视频加载失败:', e)}
-    />
+        onError={e => console.error('视频加载失败:', e)}
+      />
+    </div>
   )
 }
 

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

@@ -1,4 +1,4 @@
-import React, { useState, useEffect } from 'react'
+import React, { useState, useEffect, useMemo } from 'react'
 import styles from './index.module.scss'
 import classNames from 'classnames'
 import http from '@/utils/http'
@@ -167,9 +167,10 @@ function A0Base() {
       })
     }, 2000)
   }
+  const isWeChat = useMemo(() => /MicroMessenger/i.test(navigator.userAgent), [])
   return (
     <>
-      {!isEnd ? (
+      {!isEnd && !isWeChat ? (
         <StartVideo setIsEnd={setIsEnd} />
       ) : (
         <div