shaogen1995 2 месяцев назад
Родитель
Сommit
e7f157684c

BIN
public/Chenzhebei-ShanxiMuseum/Build/Build.data.unityweb


+ 4 - 9
src/App.tsx

@@ -7,7 +7,7 @@ import SpinLoding from './components/SpinLoding'
 import store, { RootState } from './store'
 import { useSelector } from 'react-redux'
 import NotFound from '@/components/NotFound'
-import { baseURL, envFlag, isLoc } from './utils/http'
+import { envFlag, isLoc } from './utils/http'
 import AsyncSpinLoding from './components/AsyncSpinLoding'
 import { Image } from 'antd'
 import MessageCom from '@/components/Message'
@@ -55,7 +55,7 @@ const planSize = {
 }
 
 export default function App() {
-  const {myData} = useSelector((state: RootState) => state.A0Layout)
+  const { myData } = useSelector((state: RootState) => state.A0Layout)
 
   // 判断是中文还是英文
   useEffect(() => {
@@ -112,13 +112,11 @@ export default function App() {
     } else {
       if (tempMax - height > 100) return
 
-      
-
       // 竖屏
       isHHTemp = false
       const temp = width
-  
-     // 用来大场景调整样式
+
+      // 用来大场景调整样式
       const styleStr = `
     #pageIframe #wjwjScene,
     #pageIframe #panoramic,
@@ -617,9 +615,6 @@ export default function App() {
 
       <iframe style={{ display: 'none' }} id='modalIframe' title='modal' src=''></iframe>
 
-      {/* 背景音乐 */}
-      <audio id='bgMp3' loop style={{ display: 'none' }} src={baseURL + 'home/bg.mp3'}></audio>
-
       {/* 发送请求的加载组件 */}
       <AsyncSpinLoding />
 

+ 29 - 5
src/pages/A0base/index.module.scss

@@ -1,8 +1,9 @@
 .A0base {
-  width: 100%;
-  height: 100%;
-  background-color: #ccc;
-  position: relative;
+  width: 1% !important;
+  height: 1% !important;
+  background-color: transparent;
+  z-index: 3;
+  // position: relative;
 
 
   :global {
@@ -213,9 +214,32 @@
       .content {
         .title {
           width: auto;
-          max-width: auto;
+          max-width: 90%;
         }
+        .text{
+          height: 300px;
+          max-height: 9999px;
+          overflow: auto;
+        }
+      }
+
+      .baseContent {
+        .base {
+          font-size: 14px;
+          word-wrap: break-word;
+          line-height: 16px;
+          display: flex;
+          padding: 0 10px 0 35px;
+          align-items: center;
+          justify-content: center;
+          text-align: left;
+        }
+        // .baseAc{
+        //   padding-bottom: 8px;
+        // }
       }
     }
+
+
   }
 }

+ 0 - 1
src/pages/A0base/index.tsx

@@ -20,7 +20,6 @@ function A0base() {
   return (
     <div
       className={classNames(myLangue === 'ZH' ? '' : styles.A0baseEn, styles.A0base)}
-      id='opacityCss'
     >
       <div className='A0baseContainner'>
         <div className={`content`}>