瀏覽代碼

修复初始地图位置不对问题

shaogen1995 3 年之前
父節點
當前提交
98de2e9785
共有 3 個文件被更改,包括 10 次插入5 次删除
  1. 7 3
      css/main.css
  2. 2 2
      index.html
  3. 1 0
      js/main_2020_show.js

+ 7 - 3
css/main.css

@@ -5386,10 +5386,11 @@ a.hasHover.tag-link:hover {
 
 
 @media only screen and (max-width: 910px){
 @media only screen and (max-width: 910px){
     #hotListWrap{
     #hotListWrap{
+        display: block;
         position: absolute;
         position: absolute;
         width: 100%;
         width: 100%;
         /* height: 310px; */
         /* height: 310px; */
-        height: 250px;
+        height: auto;
         z-index: 100;
         z-index: 100;
         right: 0;
         right: 0;
         top: -320px;
         top: -320px;
@@ -5401,12 +5402,15 @@ a.hasHover.tag-link:hover {
     }
     }
 
 
     #hotListTitle{
     #hotListTitle{
-        height: 40%;
+        height: 40px;
         position: relative;
         position: relative;
         background: none;
         background: none;
         opacity: 1;
         opacity: 1;
     }
     }
     #hotListContent{
     #hotListContent{
+        height: auto;
+        max-height: 240px;
+        min-height: 170px;
         /* background: rgba(34, 36, 37,0.9); */
         /* background: rgba(34, 36, 37,0.9); */
         background: none;
         background: none;
     }
     }
@@ -5448,7 +5452,7 @@ a.hasHover.tag-link:hover {
         font-size: 16px;
         font-size: 16px;
     }
     }
     #hotListBottom{
     #hotListBottom{
-        display: none;
+        display: none !important;
         height: 15%;
         height: 15%;
         /* background: rgba(34, 36, 37,0.9); */
         /* background: rgba(34, 36, 37,0.9); */
         background: none;
         background: none;

+ 2 - 2
index.html

@@ -158,10 +158,9 @@
                 margin-bottom: 15px;
                 margin-bottom: 15px;
             }
             }
             .myBacImg .img{
             .myBacImg .img{
-                /* display: none !important; */
+                display: none !important;
                 width: 80vw;
                 width: 80vw;
                 height: 80vw;
                 height: 80vw;
-                /* height: 50vh; */
             }
             }
             .pinBottom.left{
             .pinBottom.left{
                 transform: translateX(0);
                 transform: translateX(0);
@@ -1028,6 +1027,7 @@
         //点击开始导览播放音乐
         //点击开始导览播放音乐
         $('.myBegin').click(()=>{
         $('.myBegin').click(()=>{
             manage.switchBgmState(true)
             manage.switchBgmState(true)
+            cad.setSign({x:8.682999610900879,y:21.323999404907227},267.7512054767344)
         })
         })
     </script>
     </script>
 
 

+ 1 - 0
js/main_2020_show.js

@@ -22313,6 +22313,7 @@ window.Modernizr = function(n, e, t) {
                     }
                     }
 
 
                     if(e.cameraChanged){
                     if(e.cameraChanged){
+                        // console.log(11111111,this.position.x,this.position.z,this.cameraControls.controls.panorama.lon);
                         this.mode == "panorama" && window.cad && cad.setSign({ x: this.position.x, y: this.position.z }, this.cameraControls.controls.panorama.lon);
                         this.mode == "panorama" && window.cad && cad.setSign({ x: this.position.x, y: this.position.z }, this.cameraControls.controls.panorama.lon);