Browse Source

fix:修改音乐按钮隐藏显示问题

aamin 2 years ago
parent
commit
3f962ab250

+ 2 - 0
H5场景本地化/public/static/js/main_2020_show_new.js

@@ -15132,6 +15132,8 @@ window.Modernizr = function(n, e, t) {
                     
                     
                     $("#volume").show();
+                }else {
+                    $('#volume').addClass('hide');
                 }
 
                 //隐藏公司logo

+ 10 - 10
H5场景本地化/src/views/gui/menu.vue

@@ -42,7 +42,7 @@
     </div>
 
     <!-- 音乐按钮 -->
-    <div class="myMusicBox" id="volume">
+    <!-- <div class="myMusicBox" id="volume">
       <div>
         <img
           id="openMusic"
@@ -61,7 +61,7 @@
           title="关闭音乐"
         />
       </div>
-    </div>
+    </div> -->
 
     <div
       id="lineTop"
@@ -506,7 +506,7 @@
             <div
               title="打开音乐"
               data-original-title="打开音乐"
-              id="volumeBid"
+              id="volume"
               rel="tooltip"
               :style="{
                 width:
@@ -823,7 +823,7 @@ export default {
   position: relative;
 }
 
-#volumeBid {
+#volume {
   position: relative;
 
   @media screen and (max-width: 1000px) {
@@ -925,13 +925,13 @@ export default {
   }
 }
 
-#volume {
-  width: 40px;
+// #volume {
+//   width: 40px;
 
-  @media screen and (min-width: 1000px) {
-    display: none !important;
-  }
-}
+//   @media screen and (min-width: 1000px) {
+//     display: none !important;
+//   }
+// }
 
 #gui-fullscreen-exit img {
   width: 40px !important;