فهرست منبع

fix(*): 优化

lanxin 8 ماه پیش
والد
کامیت
67b27a2063
3فایلهای تغییر یافته به همراه13 افزوده شده و 11 حذف شده
  1. 1 1
      src/pages/A0base/component/Panoramic.tsx
  2. 4 3
      src/pages/A0base/component/index.module.scss
  3. 8 7
      src/pages/A0base/index.tsx

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

@@ -65,7 +65,7 @@ const Panoramic = ({
                   }
                 : {
                     hlookat: 15,
-                    vlookat: 45
+                    vlookat: 32
                   })}
               fovType='MFOV'
               fov={130}

+ 4 - 3
src/pages/A0base/component/index.module.scss

@@ -117,9 +117,10 @@
 }
 
 .mapIntro {
-  width: 100%;
-  height: 100%;
-  background-color: rgba(0, 0, 0, 0.5);
+  position: absolute;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%);
   display: flex;
   justify-content: center;
   align-items: center;

+ 8 - 7
src/pages/A0base/index.tsx

@@ -143,16 +143,10 @@ function A0Base() {
                 : `url(${require('./image/bg_floor.png')})`
               : isMobile()
               ? `url(${require('./image/M_bg_map.png')})`
-              : `url(${require('./image/bg_map.png')})`
+              : `none`
           }}
         >
           {isFloor && !showIntro && <Layout setIsFloor={setIsFloor} />}
-          {showIntro &&
-            (isFloor ? (
-              <Intro handleIntroClick={handleIntroClick} />
-            ) : (
-              <MapIntro handleIntroClick={handleIntroClick} />
-            ))}
 
           <Panoramic
             setIsFloor={setIsFloor}
@@ -161,6 +155,13 @@ function A0Base() {
             setIsMouseMove={setIsMouseMove}
           />
 
+          {showIntro &&
+            (isFloor ? (
+              <Intro handleIntroClick={handleIntroClick} />
+            ) : (
+              <MapIntro handleIntroClick={handleIntroClick} />
+            ))}
+
           {isPreview[0] && (
             <Preview
               imgArr={isPreview[1] === 'baoan' ? imgArrTemp : imgArrTemp2}