chenlei 3 ヶ月 前
コミット
93ee2bd27a

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

@@ -3,7 +3,7 @@ window.isHH = document.documentElement.clientWidth >= document.documentElement.c
 const isPcTemp = document.documentElement.clientWidth >= 1200
 
 // 本地开发静态资源目录
-const baseUrlLoc = 'http://192.168.20.55:8080/staticData/'
+const baseUrlLoc = 'http://192.168.0.18:8080/staticData/'
 
 // 发送请求基地址
 const apiUrlTemp = 'https://sit-handaizy.4dage.com/api/'

+ 7 - 0
Code/src/pages/A2visit/PanoVideo/index.tsx

@@ -22,6 +22,11 @@ function PanoVideo({ lodingOk }: Propr) {
   const [activeIdx, setActiveIdx] = useState(-1)
   const middlewareIns = useRef<KrpanoMiddlewareMethods>(null)
 
+  const wechatJSReadyHandler = () => {
+    videoSceneModel.pause()
+    videoSceneModel.play()
+  }
+
   useEffect(() => {
     const readyEvent = videoSceneModel.event.on('Event.videoScene.play', () => {
       console.log('加载完成')
@@ -30,6 +35,8 @@ function PanoVideo({ lodingOk }: Propr) {
       }, 4000)
     })
 
+    document.addEventListener('WeixinJSBridgeReady', wechatJSReadyHandler, false)
+
     return () => {
       // 记得清理监听事件
       readyEvent()

BIN
资源/pano/1.mp4