Переглянути джерело

Merge branch 'master' of http://192.168.0.115:3000/shaogen1995/kaiPingWeb into master

shaogen1995 1 рік тому
батько
коміт
723d1b27cb
100 змінених файлів з 88 додано та 25 видалено
  1. BIN
      code/src/assets/img/btn_active.png
  2. BIN
      code/src/assets/img/btn_normal.png
  3. BIN
      code/src/assets/img/image36.png
  4. 16 0
      code/src/assets/styles/base.css
  5. 36 12
      code/src/components/KrpanoCom/index.module.scss
  6. 5 2
      code/src/components/KrpanoCom/index.tsx
  7. 28 10
      code/src/pages/A1Home/index.module.scss
  8. 3 1
      code/src/pages/A1Home/index.tsx
  9. BIN
      静态资源/web/staticData/A1Home/mobile/bg.jpg
  10. BIN
      静态资源/web/staticData/A1Home/mobile/map.jpg
  11. BIN
      静态资源/web/staticData/A1Home/pc/bg.jpg
  12. BIN
      静态资源/web/staticData/A1Home/pc/hover1.png
  13. BIN
      静态资源/web/staticData/A1Home/pc/hover2.png
  14. BIN
      静态资源/web/staticData/A1Home/pc/hover3.png
  15. BIN
      静态资源/web/staticData/A1Home/pc/hover4.png
  16. BIN
      静态资源/web/staticData/A1Home/pc/hover5.png
  17. BIN
      静态资源/web/staticData/A1Home/pc/map.jpg
  18. BIN
      静态资源/web/staticData/B1Village/mobile/1.jpg
  19. BIN
      静态资源/web/staticData/B1Village/mobile/2.jpg
  20. BIN
      静态资源/web/staticData/B1Village/mobile/3.jpg
  21. BIN
      静态资源/web/staticData/B1Village/mobile/4.jpg
  22. BIN
      静态资源/web/staticData/B1Village/mobile/5.jpg
  23. BIN
      静态资源/web/staticData/B1Village/pc/1.png
  24. BIN
      静态资源/web/staticData/B1Village/pc/1/4_1.png
  25. BIN
      静态资源/web/staticData/B1Village/pc/1/4_3.png
  26. BIN
      静态资源/web/staticData/B1Village/pc/1/SS-8mCMlChuTDE.png
  27. BIN
      静态资源/web/staticData/B1Village/pc/1/SS-EVbWCMsNJvk.png
  28. BIN
      静态资源/web/staticData/B1Village/pc/1/SS-ZiJgRvVBjOS.png
  29. BIN
      静态资源/web/staticData/B1Village/pc/1/move3.png
  30. BIN
      静态资源/web/staticData/B1Village/pc/1Ac.png
  31. BIN
      静态资源/web/staticData/B1Village/pc/2.png
  32. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-4izgBCZPgWo.png
  33. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-8khKY7IIIMV.png
  34. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-BPqjxGLPJ0r.png
  35. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-BPtFwB0zFqi.png
  36. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-C3DrnN7drgO.png
  37. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-EwE8HQH11ox.png
  38. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-GmZUoCc80HE.png
  39. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-TnPY8xlkQYd.png
  40. BIN
      静态资源/web/staticData/B1Village/pc/2/SS-vHLvzW3fAsY.png
  41. BIN
      静态资源/web/staticData/B1Village/pc/2/move10.png
  42. BIN
      静态资源/web/staticData/B1Village/pc/2/move11.png
  43. BIN
      静态资源/web/staticData/B1Village/pc/2/move12.png
  44. BIN
      静态资源/web/staticData/B1Village/pc/2/move4.png
  45. BIN
      静态资源/web/staticData/B1Village/pc/2/move5.png
  46. BIN
      静态资源/web/staticData/B1Village/pc/2/move6.png
  47. BIN
      静态资源/web/staticData/B1Village/pc/2/move7.png
  48. BIN
      静态资源/web/staticData/B1Village/pc/2/move8.png
  49. BIN
      静态资源/web/staticData/B1Village/pc/2/move9.png
  50. BIN
      静态资源/web/staticData/B1Village/pc/2/保安楼-min.png
  51. BIN
      静态资源/web/staticData/B1Village/pc/2/天禄楼-min.png
  52. BIN
      静态资源/web/staticData/B1Village/pc/2/惠安楼-min.png
  53. BIN
      静态资源/web/staticData/B1Village/pc/2/林庐-min.png
  54. BIN
      静态资源/web/staticData/B1Village/pc/2/祯庐-min.png
  55. BIN
      静态资源/web/staticData/B1Village/pc/2/耀庐-min.png
  56. BIN
      静态资源/web/staticData/B1Village/pc/2/骏庐-min.png
  57. BIN
      静态资源/web/staticData/B1Village/pc/2Ac.png
  58. BIN
      静态资源/web/staticData/B1Village/pc/3.png
  59. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-01eudqmJJf6.png
  60. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-47qqI0KB1s8.png
  61. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-AEqpZP9XxpJ.png
  62. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-AO2OuhBmQYN.png
  63. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-HLJQTX6MMlW.png
  64. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-KQlHqYj8L4c.png
  65. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-QsiInm7iTKU.png
  66. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-RJOS84cxgOf.png
  67. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-RnDvY6wwojU.png
  68. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-q5MsGKr9jsB.png
  69. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-s5dmqBDrzP4.png
  70. BIN
      静态资源/web/staticData/B1Village/pc/3/SS-t2ZeeQ2HH3t.png
  71. BIN
      静态资源/web/staticData/B1Village/pc/3/move13.png
  72. BIN
      静态资源/web/staticData/B1Village/pc/3/move14.png
  73. BIN
      静态资源/web/staticData/B1Village/pc/3/move15.png
  74. BIN
      静态资源/web/staticData/B1Village/pc/3/move16.png
  75. BIN
      静态资源/web/staticData/B1Village/pc/3/move17.png
  76. BIN
      静态资源/web/staticData/B1Village/pc/3/move18.png
  77. BIN
      静态资源/web/staticData/B1Village/pc/3/move19.png
  78. BIN
      静态资源/web/staticData/B1Village/pc/3/move20.png
  79. BIN
      静态资源/web/staticData/B1Village/pc/3/move21.png
  80. BIN
      静态资源/web/staticData/B1Village/pc/3/move22.png
  81. BIN
      静态资源/web/staticData/B1Village/pc/3/move23.png
  82. BIN
      静态资源/web/staticData/B1Village/pc/3/move24.png
  83. BIN
      静态资源/web/staticData/B1Village/pc/3Ac.png
  84. BIN
      静态资源/web/staticData/B1Village/pc/4.png
  85. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-51hhaqmHEPC.png
  86. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-5CyqOwWPVHy.png
  87. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-ETHPNXYCGBk.png
  88. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-Izffs9Hdwbb.png
  89. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-OIcrrksZgdF.png
  90. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-OxDDwuExOAB.png
  91. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-UGdq9R7zovj.png
  92. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-dE2dOaFk2pe.png
  93. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-dH8Y3m9kE7P.png
  94. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-hVk2cl8Zfak.png
  95. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-kfhjUHzf7Y3.png
  96. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-kkhvUu0U0Z6.png
  97. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-lXoKoaxED3k.png
  98. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-mxx687179lh.png
  99. BIN
      静态资源/web/staticData/B1Village/pc/4/SS-rMMFyYXh5qB.png
  100. 0 0
      静态资源/web/staticData/B1Village/pc/4/SS-txFBa7nCcMR.png

BIN
code/src/assets/img/btn_active.png


BIN
code/src/assets/img/btn_normal.png


BIN
code/src/assets/img/image36.png


+ 16 - 0
code/src/assets/styles/base.css

@@ -63,6 +63,7 @@ textarea {
   width: 100%;
   height: 100%;
   position: relative;
+  overflow: hidden;
 }
 #root #App .Appvideo {
   position: absolute;
@@ -300,3 +301,18 @@ textarea {
     transform: translateY(6px);
   }
 }
+
+@keyframes scrollAnimation {
+  0% {
+    transform: translateY(0);
+  }
+  40% {
+    transform: translateY(-50%);
+  }
+  80% {
+    transform: translateY(0);
+  }
+  100% {
+    transform: translateY(0);
+  }
+}

+ 36 - 12
code/src/components/KrpanoCom/index.module.scss

@@ -12,17 +12,41 @@
     }
 
     .hotspotLabel {
-      position: absolute;
-      top: -60px;
-      left: 50%;
-      transform: translateX(-50%);
-      opacity: 0;
       text-align: center;
-      line-height: 68px;
-      font-size: 32px;
-      color: #fff;
-      pointer-events: none;
-      text-shadow: 2px 2px black;
+      background-image: url('../../assets/img/btn_normal.png');
+      background-size: 100% 100%;
+      width: 34px;
+      height: 158px;
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      letter-spacing: 2px;
+      color: var(--themeColor2);
+      font-weight: 700;
+      writing-mode: vertical-rl;
+      overflow: hidden;
+      transition: all .3s;
+
+      &.scroll p {
+        position: relative;
+        overflow: hidden;
+        height: calc(100% - 30px);
+        
+        span {
+          display: block;
+          position: relative;
+          height: max-content;
+          animation: scrollAnimation 4s linear infinite;
+        }
+      }
+    }
+    .A1locBoxLoc {
+      margin: 15px auto 0;
+      width: 64px;
+      height: 61px;
+      background-image: url('../../assets/img/image36.png');
+      background-size: 100% 100%;
+      transition: all .3s;
     }
 
     .hotspotPointer {
@@ -34,8 +58,8 @@
     }
 
     .hotspotActive .hotspotLabel {
-      opacity: 0.8;
-      color: #fce9ac;
+      color: var(--themeColor);
+      background-image: url('../../assets/img/btn_active.png');
       // background-image: url("../../assets/img/btn_active@2x.png");
     }
 

+ 5 - 2
code/src/components/KrpanoCom/index.tsx

@@ -52,8 +52,11 @@ function KrpanoCom({ curScene, curVillage, infoInd, setInfoInd }: Props) {
                 "hotspot"
               )}
             >
-              <span className="hotspotLabel">{item.label}</span>
-              <div className="hotspotPointer" />
+              <div className={classNames("hotspotLabel", item.label.length > 6 && 'scroll')}>
+                <p><span>{item.label}</span></p>
+              </div>
+              {/* 标点 */}
+              <div className="A1locBoxLoc"></div>
             </div>
           </HotSpot>
         );

+ 28 - 10
code/src/pages/A1Home/index.module.scss

@@ -4,7 +4,6 @@
 
   :global {
 
-
     .A1locBox {
       position: absolute;
       z-index: 3;
@@ -12,25 +11,43 @@
       height: 129px;
 
       .A1locBoxName {
+        position: relative;
+        left: 50%;
+        margin-left: -17px;
         text-align: center;
         background-image: url('../../assets/img/btn_normal.png');
         background-size: 100% 100%;
-        width: 158px;
-        height: 34px;
+        width: 34px;
+        height: 158px;
         display: flex;
         justify-content: center;
         align-items: center;
         letter-spacing: 2px;
         color: var(--themeColor2);
         font-weight: 700;
+        writing-mode: vertical-rl;
+        overflow: hidden;
         transition: all .3s;
+
+        &.scroll p {
+          position: relative;
+          overflow: hidden;
+          height: calc(100% - 30px);
+          
+          span {
+            display: block;
+            position: relative;
+            height: max-content;
+            animation: scrollAnimation 4s linear infinite;
+          }
+        }
       }
 
       .A1locBoxLoc {
         margin: 15px auto 0;
-        width: 60px;
-        height: 60px;
-        background-image: url('../../assets/img/homeB.png');
+        width: 64px;
+        height: 61px;
+        background-image: url('../../assets/img/image36.png');
         background-size: 100% 100%;
         transition: all .3s;
       }
@@ -63,16 +80,17 @@
       background-size: 100% 100%;
       opacity: 0;
       transition: all .3s;
+      writing-mode: vertical-rl;
       cursor: pointer;
 
       &>div {
         position: absolute;
-        top: -50px;
+        top: -188px;
         left: 50%;
         transform: translateX(-50%);
 
-        width: 188px;
-        height: 50px;
+        width: 34px;
+        height: 188px;
         padding-bottom: 16px;
 
         &>div {
@@ -249,4 +267,4 @@
     }
 
   }
-}
+}

+ 3 - 1
code/src/pages/A1Home/index.tsx

@@ -37,7 +37,9 @@ function A1Home() {
           style={{ top: v.top, left: v.left, right: v.right, bottom: v.bottom }}
         >
           {/* 名字 */}
-          <div className="A1locBoxName">{v.name}</div>
+          <div className={classNames("A1locBoxName", v.name.length > 6 && 'scroll')}>
+            <p><span>{v.name}</span></p>
+          </div>
           {/* 标点 */}
           <div className="A1locBoxLoc"></div>
           {/* 光点 */}

BIN
静态资源/web/staticData/A1Home/mobile/bg.jpg


BIN
静态资源/web/staticData/A1Home/mobile/map.jpg


BIN
静态资源/web/staticData/A1Home/pc/bg.jpg


BIN
静态资源/web/staticData/A1Home/pc/hover1.png


BIN
静态资源/web/staticData/A1Home/pc/hover2.png


BIN
静态资源/web/staticData/A1Home/pc/hover3.png


BIN
静态资源/web/staticData/A1Home/pc/hover4.png


BIN
静态资源/web/staticData/A1Home/pc/hover5.png


BIN
静态资源/web/staticData/A1Home/pc/map.jpg


BIN
静态资源/web/staticData/B1Village/mobile/1.jpg


BIN
静态资源/web/staticData/B1Village/mobile/2.jpg


BIN
静态资源/web/staticData/B1Village/mobile/3.jpg


BIN
静态资源/web/staticData/B1Village/mobile/4.jpg


BIN
静态资源/web/staticData/B1Village/mobile/5.jpg


BIN
静态资源/web/staticData/B1Village/pc/1.png


BIN
静态资源/web/staticData/B1Village/pc/1/4_1.png


BIN
静态资源/web/staticData/B1Village/pc/1/4_3.png


BIN
静态资源/web/staticData/B1Village/pc/1/SS-8mCMlChuTDE.png


BIN
静态资源/web/staticData/B1Village/pc/1/SS-EVbWCMsNJvk.png


BIN
静态资源/web/staticData/B1Village/pc/1/SS-ZiJgRvVBjOS.png


BIN
静态资源/web/staticData/B1Village/pc/1/move3.png


BIN
静态资源/web/staticData/B1Village/pc/1Ac.png


BIN
静态资源/web/staticData/B1Village/pc/2.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-4izgBCZPgWo.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-8khKY7IIIMV.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-BPqjxGLPJ0r.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-BPtFwB0zFqi.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-C3DrnN7drgO.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-EwE8HQH11ox.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-GmZUoCc80HE.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-TnPY8xlkQYd.png


BIN
静态资源/web/staticData/B1Village/pc/2/SS-vHLvzW3fAsY.png


BIN
静态资源/web/staticData/B1Village/pc/2/move10.png


BIN
静态资源/web/staticData/B1Village/pc/2/move11.png


BIN
静态资源/web/staticData/B1Village/pc/2/move12.png


BIN
静态资源/web/staticData/B1Village/pc/2/move4.png


BIN
静态资源/web/staticData/B1Village/pc/2/move5.png


BIN
静态资源/web/staticData/B1Village/pc/2/move6.png


BIN
静态资源/web/staticData/B1Village/pc/2/move7.png


BIN
静态资源/web/staticData/B1Village/pc/2/move8.png


BIN
静态资源/web/staticData/B1Village/pc/2/move9.png


BIN
静态资源/web/staticData/B1Village/pc/2/保安楼-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/天禄楼-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/惠安楼-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/林庐-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/祯庐-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/耀庐-min.png


BIN
静态资源/web/staticData/B1Village/pc/2/骏庐-min.png


BIN
静态资源/web/staticData/B1Village/pc/2Ac.png


BIN
静态资源/web/staticData/B1Village/pc/3.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-01eudqmJJf6.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-47qqI0KB1s8.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-AEqpZP9XxpJ.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-AO2OuhBmQYN.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-HLJQTX6MMlW.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-KQlHqYj8L4c.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-QsiInm7iTKU.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-RJOS84cxgOf.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-RnDvY6wwojU.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-q5MsGKr9jsB.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-s5dmqBDrzP4.png


BIN
静态资源/web/staticData/B1Village/pc/3/SS-t2ZeeQ2HH3t.png


BIN
静态资源/web/staticData/B1Village/pc/3/move13.png


BIN
静态资源/web/staticData/B1Village/pc/3/move14.png


BIN
静态资源/web/staticData/B1Village/pc/3/move15.png


BIN
静态资源/web/staticData/B1Village/pc/3/move16.png


BIN
静态资源/web/staticData/B1Village/pc/3/move17.png


BIN
静态资源/web/staticData/B1Village/pc/3/move18.png


BIN
静态资源/web/staticData/B1Village/pc/3/move19.png


BIN
静态资源/web/staticData/B1Village/pc/3/move20.png


BIN
静态资源/web/staticData/B1Village/pc/3/move21.png


BIN
静态资源/web/staticData/B1Village/pc/3/move22.png


BIN
静态资源/web/staticData/B1Village/pc/3/move23.png


BIN
静态资源/web/staticData/B1Village/pc/3/move24.png


BIN
静态资源/web/staticData/B1Village/pc/3Ac.png


BIN
静态资源/web/staticData/B1Village/pc/4.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-51hhaqmHEPC.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-5CyqOwWPVHy.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-ETHPNXYCGBk.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-Izffs9Hdwbb.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-OIcrrksZgdF.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-OxDDwuExOAB.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-UGdq9R7zovj.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-dE2dOaFk2pe.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-dH8Y3m9kE7P.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-hVk2cl8Zfak.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-kfhjUHzf7Y3.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-kkhvUu0U0Z6.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-lXoKoaxED3k.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-mxx687179lh.png


BIN
静态资源/web/staticData/B1Village/pc/4/SS-rMMFyYXh5qB.png


+ 0 - 0
静态资源/web/staticData/B1Village/pc/4/SS-txFBa7nCcMR.png


Деякі файли не було показано, через те що забагато файлів було змінено