root 2 years ago
parent
commit
2f7bf12c69
2 changed files with 12 additions and 11 deletions
  1. 7 6
      css/gm/Desktop.css
  2. 5 5
      js/gm/DeskTop.js

+ 7 - 6
css/gm/Desktop.css

@@ -649,7 +649,7 @@ body div ::-webkit-scrollbar-resizer:vertical {
 
 .U_MD_D_KOA {
     margin: 5px auto 0 auto;
-    width: 57px;
+    width: 114px;
     border-radius: 5px;
     display: flex;
     flex-direction: column;
@@ -658,8 +658,8 @@ body div ::-webkit-scrollbar-resizer:vertical {
 }
 
 .U_MD_D_KOS {
-    width: 57px;
-    height: 57px;
+    width: 114px;
+    height: 114px;
 }
 
 .U_Img {
@@ -667,9 +667,10 @@ body div ::-webkit-scrollbar-resizer:vertical {
 }
 
 .U_MD_D_KOX {
-    width: 51px;
-    height: 15px;
-    line-height: 15px;
+    width: 114px;
+    height: 18px;
+    line-height: 18px;
+    font-size: 18px;
     margin-top: 3px;
     text-align: center;
 }

+ 5 - 5
js/gm/DeskTop.js

@@ -428,15 +428,15 @@ U.MD.D.iconPostion = function(childs, top, left) {
     //循环所有的图标,设置每个图标的间距,打印顺序是竖排打印的方式
     for (i = 0; i < childs.length; i++) {
         //如果竖排top超过了范围处理
-        if (top + 95 > US.height - 10) {
+        if (top + 150 > US.height - 10) {
             //left超过了页面范围处理,则向上重叠打印处理
             if ((left + 180) > US.width) {
-                top -= 110;
-                left -= 90;
+                top -= 150;
+                left -= 150;
             }
             //没有超过范围,那么left+90添加到下一个竖排打印
             else {
-                left += 90;
+                left += 150;
                 top = 15;
             };
         }
@@ -444,7 +444,7 @@ U.MD.D.iconPostion = function(childs, top, left) {
         U.selectEl(childs[i]).css({ top: top + "px", left: left + "px" });
         if (i < childs.length - 1) {
             //页面图标每次向下加95
-            top += 95;
+            top += 150;
         }
     }
     //返回最后调用的图标的位置