lsc 2 năm trước cách đây
mục cha
commit
024e299f53

+ 52 - 0
css/Desktop/Desktop.css

@@ -1053,4 +1053,56 @@ body div ::-webkit-scrollbar-resizer:vertical {
     flex-direction: row;
     justify-content: flex-start;
     align-items: center;
+}
+
+.U_PBL_Check{
+    position: fixed;
+    bottom: 15%;
+    right: 5%;
+    display: none;
+}
+
+.U_PBL_Check>div{
+    background: #595959;
+    height: 45px;
+    width: 110px;
+    font-size: 14px;
+    border-radius: 5px;
+    opacity: .7;
+    cursor: pointer;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+}
+
+.U_PBL_Check>div + div{
+    margin-top: 20px;
+    cursor: pointer;
+}
+
+.U_PBL_Check>div>span{
+    color: #fff;
+}
+
+.U_PBL_Check>div:nth-child(1):before{
+    content: '';
+    display: inline-block;
+    background: url(../../img/icon/easy/standard.png);
+    width: 20px;
+    height: 20px;
+    background-size: 100% 100%;
+    margin-right: 3px;
+}
+.U_PBL_Check>div:nth-child(2)::before{
+    content: '';
+    display: inline-block;
+    background: url(../../img/icon/easy/easy.png);
+    width: 20px;
+    height: 24px;
+    background-size: 100% 100%;
+    margin-right: 3px;
+}
+
+.U_PBL_Check>.active{
+    opacity: 1;
 }

BIN
img/icon/easy/class.png


BIN
img/icon/easy/easy.png


BIN
img/icon/easy/evaluate.png


BIN
img/icon/easy/project.png


BIN
img/icon/easy/standard.png


BIN
img/icon/easy/study.png


BIN
img/icon/easyBg.png


+ 4 - 0
index.html

@@ -148,6 +148,10 @@
                     </div>
                 </div>
             </div>
+            <div class="U_PBL_Check">
+                <div class="active" onclick="U.MD.D.I.ModeCheck(1)"><span>标准模式</span></div>
+                <div onclick="U.MD.D.I.ModeCheck(2)"><span>极简模式</span></div>
+            </div>
         </div>
         <div class="U_MD_D_AG">
             <div class="U_MD_D_AG_P" id="U_MD_D_AG_P" onselectstart="U.UF.EV.stopBubble();">

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 486 - 408
js/Desktop/DeskTop.js


+ 97 - 57
js/Desktop/Onload.js

@@ -54,6 +54,8 @@ US.Config = {
     pbl: "//pbl.cocorobo.cn/api/pbl/",
     // pbl: "http://localhost:7003/api/pbl/",
     basename: '',
+    type:1,
+    background:'url("/img/icon/bgImg4.png")'
 }
 /**
  * 供外部调用的window.onload函数云端系统启动项
@@ -154,7 +156,11 @@ U.MD.D.reSize = function () {
             U.selectEl("#U_MD_D_RW").css("width", US.width - 165 + "px");
             U.MD.D.T.taskbar.multitask($("#U_MD_D_RW")[0]);
             //桌面图标处理
-            U.MD.D.iconPostion($("#U_MD_D_K").Child());
+            if(US.Config.type == '1'){
+                U.MD.D.iconPostion($("#U_MD_D_K").Child());
+            }else{
+                U.MD.D.iconPostion2($("#U_MD_D_K").Child());
+            }
         }
 
     }
@@ -331,54 +337,76 @@ U.MD.D.getuser = function () {
                                 } else {
                                     if (res.value[0][0].organizeid == '91305d49-01ba-11ed-8c78-005056b86db4') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
+                                        US.Config.background = 'url("/img/icon/mingdeBg.png")'
                                     } else if (res.value[0][0].organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
+                                        US.Config.background = 'url("/img/icon/zhongshanBg.png")'
                                     } else if (res.value[0][0].organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
                                         // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
                                     } else if (res.value[0][0].organizeid == 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yunhaiBg.png")'
+                                        US.Config.background = 'url("/img/icon/yunhaiBg.png")'
                                     } else if (res.value[0][0].organizeid == '857af1c7-c8ee-4b04-85b5-fd182903adb7') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/beijingBg.png")'
+                                        US.Config.background = 'url("/img/icon/beijingBg.png")'
                                     } else if (res.value[0][0].organizeid == '69893dca-1d47-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/weilaiBg.png")'
+                                        US.Config.background = 'url("/img/icon/weilaiBg.png")'
                                     } else if (res.value[0][0].organizeid == 'efdef564-4064-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/pz.jpg")'
+                                        US.Config.background = 'url("/img/icon/pz.png")'
                                     } else if (res.value[0][0].organizeid == 'd9db3320-503a-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/hzBg.png")'
+                                        US.Config.background = 'url("/img/icon/hzBg.png")'
                                     } else if (res.value[0][0].organizeid == 'ccb9754d-59c1-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+                                        US.Config.background = 'url("/img/icon/nanfangBg.png")'
                                     } else if (res.value[0][0].organizeid == 'f30a6615-5379-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longhuaBg.png")'
+                                        US.Config.background = 'url("/img/icon/longhuaBg.png")'
                                     } else if (res.value[0][0].organizeid == '4787cc87-6588-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+                                        US.Config.background = 'url("/img/icon/nanfangBg.png")'
                                     } else if (res.value[0][0].organizeid == '9f888eae-7558-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/song.png")'
+                                        US.Config.background = 'url("/img/icon/song.png")'
                                     } else if (res.value[0][0].organizeid == '2b9ceb66-a1dd-11ed-b13d-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gmxxBg.png")'
+                                        US.Config.background = 'url("/img/icon/gmxxBg.png")'
                                     } else if (res.value[0][0].organizeid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/wankeBg.png")'
+                                        US.Config.background = 'url("/img/icon/wankeBg.png")'
                                     }
                                    
 
                                     if (res.value[0][0].org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yantianOrgBg.png")'
+                                        US.Config.background = 'url("/img/icon/yantianOrgBg.png")'
                                     } else if (res.value[0][0].org == '7ada499f-4ec7-11ed-8c78-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/csteamBg.png")'
+                                        US.Config.background = 'url("/img/icon/csteamBg.png")'
                                     } else if (res.value[0][0].org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gm/bg.png")'
+                                        US.Config.background = 'url("/img/icon/bg.png")'
                                         U.MD.D.getNotice();
                                     } else if (res.value[0][0].org == '97c4ee8b-d010-4042-986d-e9d3c217264f') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhoujia.jpg")'
+                                        US.Config.background = 'url("/img/icon/zhoujia.png")'
                                     } else if (res.value[0][0].org == '150e3120-9195-11ed-b13d-005056b86db5') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/tencentBg.jpg")'
+                                        US.Config.background = 'url("/img/icon/tencentBg.png")'
                                         U.MD.D.getNotice();
                                     } else if (res.value[0][0].org == 'ee40e8e3-e36c-4872-8105-cf395481012s') {
                                         $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szscBg.png")'
+                                        US.Config.background = 'url("/img/icon/szscBg.png")'
                                         U.MD.D.getNotice();
                                     }
 
                                     US.userInfo = res.value[0][0];
                                     $(".avatar")[0].style.display = "block";
+                                    if(res.value[0][0].type === 1 && $(".U_PBL_Check")[0]){
+                                        $(".U_PBL_Check")[0].style.display = "block";
+                                    }
                                 }
                                 $(".login")[0].style.display = "none";
                                 $(".register")[0].style.display = "none";
@@ -395,67 +423,79 @@ U.MD.D.getuser = function () {
             }, [], { "type": "GET", "withCredentials": true });
         }
     } else {
-        if (userInfo.organizeid == '91305d49-01ba-11ed-8c78-005056b86db4') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
-        } else if (userInfo.organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
-        } else if (userInfo.organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
-            // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
-        } else if (userInfo.organizeid == 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yunhaiBg.png")'
-        } else if (userInfo.organizeid == '857af1c7-c8ee-4b04-85b5-fd182903adb7') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/beijingBg.png")'
-        } else if (userInfo.organizeid == '69893dca-1d47-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/weilaiBg.png")'
-        } else if (userInfo.organizeid == 'efdef564-4064-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/pz.jpg")'
-        } else if (userInfo.organizeid == 'd9db3320-503a-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/hzBg.png")'
-        } else if (userInfo.organizeid == 'ccb9754d-59c1-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
-        } else if (userInfo.organizeid == 'f30a6615-5379-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longhuaBg.png")'
-        } else if (userInfo.organizeid == '4787cc87-6588-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
-        } else if (userInfo.organizeid == '9f888eae-7558-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/song.png")'
-        } else if (userInfo.organizeid == '2b9ceb66-a1dd-11ed-b13d-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gmxxBg.png")'
-        } else if (userInfo.organizeid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/wankeBg.png")'
-        }
-
-        if (userInfo.org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yantianOrgBg.png")'
-        } else if (userInfo.org == '7ada499f-4ec7-11ed-8c78-005056b86db5') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/csteamBg.png")'
-        } else if (userInfo.org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gm/bg.png")'
-            U.MD.D.getNotice();
-        } else if (userInfo.org == '97c4ee8b-d010-4042-986d-e9d3c217264f') {
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhoujia.jpg")'
-        } else if (userInfo.org == '150e3120-9195-11ed-b13d-005056b86db5') {
-            if (!$("#tc_desktop_css")[0]) {
-                const link = document.createElement("link");
-                link.rel = "stylesheet";
-                link.href =
-                    "./css/tencent/Desktop.css";
-                link.id = "tc_desktop_css"
-                document.body.appendChild(link);
+        if(US.Config.type == '2'){
+            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/easyBg.png")'
+
+            if (userInfo.org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
+                U.MD.D.getNotice();
+            }else if (userInfo.org == '150e3120-9195-11ed-b13d-005056b86db5') {
+                U.MD.D.getNotice();
+            } else if (userInfo.org == 'ee40e8e3-e36c-4872-8105-cf395481012s') {
+                U.MD.D.getNotice();
+            }
+        }else{
+            if (userInfo.organizeid == '91305d49-01ba-11ed-8c78-005056b86db4') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/mingdeBg.png")'
+            } else if (userInfo.organizeid == 'c7df0bd4-6e75-401a-a137-4e163aa62263') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhongshanBg.png")'
+            } else if (userInfo.organizeid == '580aac24-a939-49f7-a75a-40a7b5af3a17') {
+                // $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longweiBg.png")'
+            } else if (userInfo.organizeid == 'b1095a3c-1d06-4ac8-854f-7c0d97f4ab41') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yunhaiBg.png")'
+            } else if (userInfo.organizeid == '857af1c7-c8ee-4b04-85b5-fd182903adb7') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/beijingBg.png")'
+            } else if (userInfo.organizeid == '69893dca-1d47-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/weilaiBg.png")'
+            } else if (userInfo.organizeid == 'efdef564-4064-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/pz.jpg")'
+            } else if (userInfo.organizeid == 'd9db3320-503a-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/hzBg.png")'
+            } else if (userInfo.organizeid == 'ccb9754d-59c1-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+            } else if (userInfo.organizeid == 'f30a6615-5379-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/longhuaBg.png")'
+            } else if (userInfo.organizeid == '4787cc87-6588-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/nanfangBg.png")'
+            } else if (userInfo.organizeid == '9f888eae-7558-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/song.png")'
+            } else if (userInfo.organizeid == '2b9ceb66-a1dd-11ed-b13d-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gmxxBg.png")'
+            } else if (userInfo.organizeid == '1c3b9def-8fbe-11ed-b13d-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/wankeBg.png")'
+            }
+    
+            if (userInfo.org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/yantianOrgBg.png")'
+            } else if (userInfo.org == '7ada499f-4ec7-11ed-8c78-005056b86db5') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/csteamBg.png")'
+            } else if (userInfo.org == 'eb2af5e9-ac3d-46b6-9fe3-3c1c364f0217') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/gm/bg.png")'
+                U.MD.D.getNotice();
+            } else if (userInfo.org == '97c4ee8b-d010-4042-986d-e9d3c217264f') {
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/zhoujia.jpg")'
+            } else if (userInfo.org == '150e3120-9195-11ed-b13d-005056b86db5') {
+                if (!$("#tc_desktop_css")[0]) {
+                    const link = document.createElement("link");
+                    link.rel = "stylesheet";
+                    link.href =
+                        "./css/tencent/Desktop.css";
+                    link.id = "tc_desktop_css"
+                    document.body.appendChild(link);
+                    $(".avatar")[0].onclick= function(){
+                        U.MD.D.I.openApplication('tcData')
+                    }
+                }
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/tencentBg.jpg")'
+                U.MD.D.getNotice();
+            } else if (userInfo.org == 'ee40e8e3-e36c-4872-8105-cf395481012s') {
                 $(".avatar")[0].onclick= function(){
                     U.MD.D.I.openApplication('tcData')
                 }
+                $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szscBg.png")'
+                U.MD.D.getNotice();
             }
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/tencentBg.jpg")'
-            U.MD.D.getNotice();
-        } else if (userInfo.org == 'ee40e8e3-e36c-4872-8105-cf395481012s') {
-            $(".avatar")[0].onclick= function(){
-                U.MD.D.I.openApplication('tcData')
-            }
-            $("#U_MD_D_BG")[0].style.backgroundImage = 'url("/img/icon/szscBg.png")'
-            U.MD.D.getNotice();
         }
-
+        
     }
 }
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác