lanxin 3 дней назад
Родитель
Сommit
6502b3f702

BIN
Scene/public/images/marker.png


BIN
Scene/public/images/marker1.png


BIN
Scene/public/images/reticule.png


BIN
Scene/public/images/reticule1.png


+ 20 - 0
Scene/src/pages/A1home/index.tsx

@@ -14,6 +14,26 @@ function A1home() {
       document.head.appendChild(script)
       document.head.appendChild(script)
       script.onload = () => {
       script.onload = () => {
         setLodingJs(lodingJs + 1)
         setLodingJs(lodingJs + 1)
+        if (lodingJs === scriptArr.length - 1) {
+          const checkAndToggleVolume = () => {
+            const dom = document.querySelector('#volume a') as HTMLAnchorElement | null
+            if (dom) {
+              const img = dom.querySelector('img') as HTMLImageElement | null
+              if (img && img.src.includes('btn_on')) {
+                console.log('检测到静音状态,自动点击开启')
+                dom.click()
+              }
+            } else {
+              // 没找到就继续等
+              setTimeout(checkAndToggleVolume, 1000)
+            }
+          }
+
+          // 初始检查 + 每秒检查一次(最多等 30 秒)
+          checkAndToggleVolume()
+          const timer = setInterval(checkAndToggleVolume, 1000)
+          setTimeout(() => clearInterval(timer), 30000)
+        }
       }
       }
     }
     }
   }, [lodingJs])
   }, [lodingJs])

+ 10 - 5
Scene/src/pages/A2main/index.module.scss

@@ -76,7 +76,9 @@
           height: 45px;
           height: 45px;
         }
         }
       }
       }
-
+      #gui-modes-inside {
+        margin-left: 18px;
+      }
       //针对第一个按钮
       //针对第一个按钮
       #play,
       #play,
       #pause {
       #pause {
@@ -236,7 +238,7 @@
 
 
     .sectionIndex {
     .sectionIndex {
       position: fixed;
       position: fixed;
-      top: 25px;
+      top: 230px;
       right: 10px;
       right: 10px;
       .sectionIndexImg {
       .sectionIndexImg {
         width: 125px;
         width: 125px;
@@ -312,7 +314,8 @@
           background-size: 100% 100%;
           background-size: 100% 100%;
           p {
           p {
             float: right;
             float: right;
-            width: 80%;
+            width: 100%;
+            line-height: 27px;
             margin-top: 265px;
             margin-top: 265px;
             padding: 25px;
             padding: 25px;
             color: #fff;
             color: #fff;
@@ -323,7 +326,8 @@
           background-size: 100% 100%;
           background-size: 100% 100%;
           p {
           p {
             float: right;
             float: right;
-            width: 80%;
+            width: 100%;
+            line-height: 27px;
             margin-top: 265px;
             margin-top: 265px;
             padding: 25px;
             padding: 25px;
             color: #000;
             color: #000;
@@ -334,7 +338,8 @@
           background-size: 100% 100%;
           background-size: 100% 100%;
           p {
           p {
             float: right;
             float: right;
-            width: 80%;
+            width: 100%;
+            line-height: 27px;
             margin-top: 265px;
             margin-top: 265px;
             padding: 25px;
             padding: 25px;
             color: #fff;
             color: #fff;

+ 1 - 1
Scene/src/pages/A2main/index.tsx

@@ -108,7 +108,7 @@ function A2main() {
 
 
         <div className='pinBottom left'>
         <div className='pinBottom left'>
           <div id='gui-modes-map' className='ui-icon double active'>
           <div id='gui-modes-map' className='ui-icon double active'>
-            <div data-original-title='全景漫游' id='gui-modes-inside' rel='tooltip' style={{ marginLeft: '18px' }}>
+            <div data-original-title='全景漫游' id='gui-modes-inside' rel='tooltip' >
               <img className='icon icon-inside' src={`images/inside${state3d === 'panorama' ? '_active' : ''}.png`} alt='' />
               <img className='icon icon-inside' src={`images/inside${state3d === 'panorama' ? '_active' : ''}.png`} alt='' />
               {/* 鼠标移入 */}
               {/* 鼠标移入 */}
               <div className='hoveImg'>全景漫游</div>
               <div className='hoveImg'>全景漫游</div>