zhangdechen 6 år sedan
förälder
incheckning
eaa7bb687f

+ 0 - 3
.vscode/settings.json

@@ -1,3 +0,0 @@
-{
-    "liveServer.settings.port": 5501
-}

+ 106 - 0
css/layout.css

@@ -0,0 +1,106 @@
+body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif; line-height: 1; -webkit-font-smoothing: antialiased; font-size: 14px; color: #495060; vertical-align: baseline; }
+
+.top-header-Jf03 { vertical-align: baseline; }
+
+.top-header-Jf03 .main-Kg48 { height: 60px; background: linear-gradient(to right, #006946, #007d5f); overflow: hidden; padding: 0 24px 0 16px; position: relative; display: flex; align-items: center; justify-content: space-between; color: #fff; }
+
+.top-header-Jf03 .main-Kg48 .left { display: flex; align-items: center; height: 100%; }
+
+.top-header-Jf03 .main-Kg48 .left .logo { font-size: 0; }
+
+.top-header-Jf03 .main-Kg48 .left .logo .img { height: 30px; width: 30px; cursor: pointer; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
+
+.top-header-Jf03 .main-Kg48 .left .company-name { display: flex; align-items: center; margin-left: 8px; cursor: pointer; height: 50px; }
+
+.top-header-Jf03 .main-Kg48 .left .company-name .name { font-size: 17px; max-width: 174px; margin-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+
+.top-header-Jf03 .main-Kg48 .left .company-name .icon { color: #fff; font-size: 12px; vertical-align: -0.15em; }
+
+.top-header-Jf03 .main-Kg48 .left .divider { height: 20px; width: 1px; background: white; opacity: 0.2; margin-left: 17px; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu { padding-left: 19px; height: 100%; white-space: nowrap; position: relative; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav { background-color: unset; color: #fff; padding: 0; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-item:nth-child(n+2) { margin-left: 32px; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-item a { color: #fff; padding: 0; cursor: pointer; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-item.layui-this::after { bottom: 9px !important; width: 100%; height: 3px; border-radius: 2px; background-color: #fff; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-item#layui-nav-item-more { margin-left: 36px; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-item#layui-nav-item-more .icon { vertical-align: -0.15em; }
+
+.top-header-Jf03 .main-Kg48 .left #top-bar-menu .layui-nav .layui-nav-bar { display: none; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 { display: flex; align-items: center; height: 100%; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search { background-color: rgba(0, 0, 0, 0.15); border-radius: 16px; border: 1px solid transparent; color: #fff; height: 32px; position: relative; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input { position: relative; font-size: 14px; display: inline-block; width: 100%; width: 300px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input.active { background-color: white; border-radius: 16px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input.active .input { color: #495060; font-size: 14px; padding-right: 36px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input.active .input:focus { outline: none; border-color: #0bb27a; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input.active .icon-search { display: none; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input.active .icon-search2 { display: block; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input .input { background: transparent; box-shadow: none; border: none; height: 32px !important; line-height: 32px !important; color: white; -webkit-appearance: none; border-radius: 4px; box-sizing: border-box; display: inline-block; font-size: inherit; outline: none; padding: 0 15px; transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); width: 100%; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .query-input .input::placeholder { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .icon-search, .top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .icon-search2 { font-size: 16px; position: absolute; right: 12px; top: -2px; bottom: 0; margin: auto; width: 1em; height: 1em; overflow: hidden; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .quick-search .icon-search2 { display: none; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .notice { margin-left: 17px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .feedback { margin-left: 12px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .avatar { margin-left: 19px; }
+
+.top-header-Jf03 .main-Kg48 .right-Le52 .icon { vertical-align: -0.15em; }
+
+.left-menu-Vg32 { position: fixed; top: 60px; left: 0; height: calc(100% - 104px); width: 180px; z-index: 199; background: #f8f8f9; padding-top: 16px; overflow-x: hidden; overflow-y: auto; transition: all 0.5s; }
+
+.left-menu-Vg32 .menu-list .item { height: 40px; margin-bottom: 8px; color: #495060; transition: all 0.2s; display: flex; align-items: center; user-select: none; white-space: nowrap; cursor: pointer; position: relative; border-left: 3px solid transparent; }
+
+.left-menu-Vg32 .menu-list .item:hover { border-left-color: #59c993; background: #f2f2f2; }
+
+.left-menu-Vg32 .menu-list .item .icon-svg { font-size: 20px; position: absolute; right: 13px; top: 0; bottom: 0; margin: auto; transition: all 0.2s; color: #bbbec4; line-height: 40px; width: 1em; height: 1em; vertical-align: -0.15em; pointer-events: none; }
+
+.left-menu-Vg32 .menu-list > .item.active + .item-list { display: block; }
+
+.left-menu-Vg32 .menu-list > .item.active .icon-svg { transform: rotate(180deg); }
+
+.left-menu-Vg32 .menu-list .item-list { display: none; }
+
+.left-menu-Vg32 .menu-list .item-list .item .name { font-size: 13px; }
+
+.left-menu-Vg32 .menu-list .item-list .item.active { border-left-color: #59c993; background: #f2f2f2; color: #0bb27a; }
+
+.left-menu-Vg32 .icon { margin-left: 13px; width: 20px; height: 20px; }
+
+.left-menu-Vg32 .name { position: relative; white-space: nowrap; margin-left: 16px; font-size: 14px; }
+
+.right-main-Vk67 { margin-left: 180px; }
+
+.right-main-Vk67 .layui-tab { margin: 0; }
+
+.right-main-Vk67 .layui-tab .layui-tab-title { font-weight: 600; }
+
+.right-main-Vk67 .layui-tab .layui-tab-title .layui-index .layui-tab-close { display: none; }
+
+.right-main-Vk67 .layui-tab .layui-tab-title :after { height: 40px; }
+
+.right-main-Vk67 .layui-tab .layui-tab-content { height: calc(100vh - 100px); overflow: auto; padding: 0; }
+
+.right-main-Vk67 .layui-tab .layui-tab-content .layui-tab-item { position: relative; height: 100%; width: 100%; }
+
+.right-main-Vk67 .layui-tab .layui-tab-content .layui-tab-item .iframe-content { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; }
+/*# sourceMappingURL=layout.css.map */

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 13 - 0
css/layout.css.map


+ 4 - 0
css/layout.scss

@@ -0,0 +1,4 @@
+@import './scss/global'; 
+@import './scss/header';
+@import './scss/leftMenu';
+@import './scss/rightMain';

+ 0 - 67
css/layout/_body.scss

@@ -1,67 +0,0 @@
-$color-active :#2168fe;
-.z-body{
-    position: fixed;
-    top:60px;
-    bottom: 0;
-    left: 200px;
-    right: 0;
-    .layui-tab{
-        margin:0;
-        .layui-tab-title{
-            font-weight: 600;
-            .layui-index{
-                .layui-tab-close{
-                    display: none;
-                }
-                &:after{
-                    left:30%;
-                }
-            }
-            .layui-this{
-                color:$color-active;
-                &:after{
-                    width:40%;
-                    left:calc(30% - 10px);
-                    border-bottom:solid 3px $color-active;
-                }
-                &.layui-index{
-                    .layui-tab-close{
-                        display: none;
-                    }
-                    &:after{
-                        left:30%;
-                    }
-                }
-            }
-        }
-        .layui-tab-content{
-            height: calc(100vh - 105px);
-            overflow: auto;
-            padding:0;
-            .layui-tab-item{
-                position: relative;
-                height: 100%;
-                width: 100%;
-                .iframe-content{
-                    position: absolute;
-                    top:0;
-                    bottom: 0;
-                    left: 0;
-                    right: 0;
-                    height: 100%;
-                    width: 100%;                    
-                }
-            }
-        }
-    }
-    .tabs-pages-more{
-        border: 1px solid #e6e6e6;
-        width: 30px;
-        height: 40px;
-        line-height: 40px;
-        z-index: 10;
-        text-align: center;
-        cursor: pointer;
-        border-bottom: 2px solid #e6e6e6;
-    }
-}

+ 0 - 36
css/layout/_global.scss

@@ -1,36 +0,0 @@
-$primary  :#2168fe !default;
-$info : #ffce30 !default;
-$color-active :red;
-$color:#000 !default;
-html,body{
-    font-size: 12px;
-}
-
-.z-drop-tigger{
-    position: relative;
-    &:hover .z-drop-box{
-        display: block;
-    }
-    .z-drop-box{
-        position: absolute;
-        left: 0;
-        top: 0;
-        display: none;
-        padding: 10px;
-        line-height: 1.3;
-        color:$color;
-        min-width: 100%;
-        box-shadow: 0 2px 4px rgba(0,0,0,.12);
-        border: 1px solid #d2d2d2;
-        background-color: #fff;
-        z-index: 100;
-        border-radius: 2px;
-        white-space: nowrap;
-    }
-}
-.test-box{
-    position: fixed;
-    top: 50%;
-    left: 50%;
-    z-index: 999999;
-}

+ 0 - 113
css/layout/_header.scss

@@ -1,113 +0,0 @@
-$bg-color :#20222a;
-$color-white :#fff;
-$color-active :#2168fe;
-.z-header{
-    height:60px;
-    width:100%;
-    background-color: $bg-color;
-    color: $color-white;
-    .logo-box{
-        padding: 0 15px;
-        width:265px;
-        line-height: 60px;
-        font-size: 1.3em;
-        .user-img,.user-name{
-            float: left;
-            height: 60px;
-            padding: 0 10px;
-            line-height: 60px;
-        }
-        .user-name{
-            overflow: hidden;
-            display: inline-block;
-            width: 150px;
-            overflow: hidden;
-            white-space: nowrap;
-            text-overflow:ellipsis;
-        }
-        img{
-            height: 30px;
-        }
-        .user-drop{
-            cursor: pointer;
-            color: #808186;
-        }
-        .z-drop-box{
-            top:16px;
-        }
-        .dividing{
-            float: right;
-            height: 20px;
-            width: 1px;
-            background-color: #808186;
-            margin-top: 20px;
-        }
-    }
-    .layui-nav{
-        z-index: 10;
-        .layui-this:after{
-            display: none;
-        }
-    }
-    .header-menu{
-        .layui-nav{
-            background-color: $bg-color;
-            height: 60px;
-            transition: all .5s;
-            &:hover{
-                height: auto;
-            }
-            &.layui-layout-left{
-                left: 280px; 
-                right: 340px;
-                overflow: hidden;
-            }
-            .layui-nav-bar{
-                display: none;
-            }
-            .layui-this:after{
-                display: none;
-            }
-            .layui-nav-item{
-                text-align: center;
-                line-height: 20px;
-                transition: 0.3s;
-                a{
-                    padding: 10px 15px;
-                    white-space: nowrap;
-                    &:hover{
-                        cursor: pointer;
-                    }
-                }
-                &.layui-this{
-                    background-color:#121318;
-                    color: $color-active;
-                    a{
-                        color: $color-active;
-                    }
-                }
-                &:hover{
-                    background-color:#121318;
-                    color: $color-active;
-                    a{
-                        color: $color-active;
-                    }
-                }
-                .fas{
-                    font-size: 1.2em;
-                    display: block;
-                    line-height: 1.2;
-                    &.lit{
-                        font-size: 1em;
-                    }
-                }
-            }
-        }
-    }
-    .layui-nav.header-operation{
-        background-color: $bg-color;
-        .layui-nav-bar{
-            background-color: $color-active;
-        }
-    }
-}

+ 0 - 85
css/layout/_side.scss

@@ -1,85 +0,0 @@
-$bg-color :#f7f7f7;
-$color:#494b4e ;
-$color-active :#2168fe;
-$bg-color-active:#f2f2f2;
-$color-icon :#898e95;
-.z-side{
-    top:60px;
-    background-color: $bg-color;
-    color: $color;
-    .layui-side-scroll{
-        height: calc(100% - 46px);
-    }
-    .layui-nav{
-        *{
-            background-color: $bg-color!important;
-            color: $color!important;
-        }
-        background-color: $bg-color;
-        color: $color;
-        .layui-nav-item{
-            &>a{
-                border-bottom: 1px solid #ebebeb;
-                height: 40px;
-                line-height: 40px;
-            }
-            & dd:hover{
-                &::before{
-                    content: '';
-                    border-left: 4px solid #2168fe;
-                    height: 30px;
-                    width: 0px;
-                    float: left;
-                    margin-top: 5px;
-                    margin-left: 3px;
-                }
-                a{
-                    color: $color-active!important;
-                }
-            }
-            a{
-                color: $color;
-                cursor: pointer;
-                font-weight: 600;
-                i{
-                    padding:0 5px;
-                    color:$color-icon!important;
-                }
-            }
-            .layui-nav-child{
-                a{
-                    margin-left: 20px;
-                }
-            }
-            .layui-nav-more{
-                border-top-color:  $color-icon;
-            }
-            &.layui-nav-itemed{
-                .layui-nav-more{
-                    border-bottom-color:  $color-icon;
-                    border-top-color: #fff;
-                }
-            }
-            .layui-this{
-                background-color: $bg-color-active!important;
-                &::before{
-                    content: '';
-                    border-left: 4px solid #2168fe;
-                    height: 30px;
-                    width: 0px;
-                    float: left;
-                    margin-top: 5px;
-                    margin-left: 3px;
-                }
-                a{
-                    color: $color-active!important;
-                }
-            }
-        }
-    }
-    .add-menu{
-        position: absolute;
-        bottom: 0;
-        text-align: center;
-    }
-}

+ 10 - 0
css/scss/_global.scss

@@ -0,0 +1,10 @@
+$font-size:14px;
+
+body{
+    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
+    line-height: 1;
+    -webkit-font-smoothing: antialiased;
+    font-size: $font-size;
+    color: #495060;
+    vertical-align: baseline;
+}

+ 184 - 0
css/scss/_header.scss

@@ -0,0 +1,184 @@
+$color:#fff;
+$bg-color:linear-gradient(to right, rgb(0, 105, 70), rgb(0, 125, 95));
+$name-size:17px;
+.top-header-Jf03{
+	vertical-align: baseline;
+    .main-Kg48{
+        height:60px;
+        background: $bg-color;
+        overflow: hidden;
+        padding: 0 24px 0 16px;
+        position: relative;
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        color: $color;
+        .left{
+			display: flex;
+			align-items: center;
+			height: 100%;
+			.logo{
+				font-size: 0;
+				.img{
+					height: 30px;
+					width: 30px;
+					cursor: pointer;
+					border-radius: 50%;
+					border: 1px solid rgba(255, 255, 255, 0.2);
+				}
+			}
+			.company-name{
+				display: flex;
+				align-items: center;
+				margin-left: 8px;
+				cursor: pointer;
+				height: 50px;
+				.name{
+					font-size: $name-size;
+					max-width: 174px;
+					margin-right: 4px;
+					overflow: hidden;
+					text-overflow: ellipsis;
+					white-space: nowrap;
+				}
+				.icon{
+					color: #fff;
+					font-size: 12px;
+					vertical-align: -0.15em;
+				}
+			}
+			.divider{
+				height: 20px;
+				width: 1px;
+				background: white;
+				opacity: 0.2;
+				margin-left: 17px;
+			}
+			#top-bar-menu{
+				padding-left: 19px;
+				height: 100%;
+				white-space: nowrap;
+				position: relative;
+				.layui-nav{
+					background-color: unset;
+					color:$color;
+					padding: 0;
+					.layui-nav-item{
+						&:nth-child(n+2){
+							margin-left: 32px
+						}
+						a{
+							color:$color;
+							padding: 0;
+							cursor: pointer;
+						}
+						&.layui-this{
+							&::after{
+								bottom: 9px!important;
+								width: 100%;
+								height: 3px;
+								border-radius: 2px;
+								background-color: $color;
+							}
+						}
+						&#layui-nav-item-more{
+							margin-left: 36px;
+							.icon{
+								vertical-align: -0.15em;
+							}
+						}
+					}
+					.layui-nav-bar{
+						display: none;
+					}
+				}
+			}
+        }
+        .right-Le52{
+			display: flex;
+			align-items: center;
+			height: 100%;
+			.quick-search{
+				background-color: rgba(0, 0, 0, 0.15);
+				border-radius: 16px;
+				border: 1px solid transparent;
+				color: #fff;
+				height: 32px;
+				position: relative;
+				.query-input{
+					position: relative;
+					font-size: 14px;
+					display: inline-block;
+					width: 100%;
+					width: 300px;
+					&.active{
+						background-color: white;
+						border-radius: 16px;
+						.input{
+							color: #495060;
+							font-size: 14px;
+							padding-right: 36px;
+							&:focus{
+								outline: none;
+   								border-color: #0bb27a;
+							}
+						}
+						.icon-search{
+							display: none;
+						}
+						.icon-search2{
+							display: block;
+						}
+					}
+					.input{
+						background: transparent;
+						box-shadow: none;
+						border: none;
+						height: 32px !important;
+						line-height: 32px !important;
+						color: white;
+						-webkit-appearance: none;
+						border-radius: 4px;
+						box-sizing: border-box;
+						display: inline-block;
+						font-size: inherit;
+						outline: none;
+						padding: 0 15px;
+						transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+						width: 100%;
+						&::placeholder{
+							color: rgba(255, 255, 255, 0.7);
+							font-size: 14px;
+ 						}
+					}
+				}
+				.icon-search,.icon-search2{
+					font-size: 16px;
+					position: absolute;
+					right: 12px;
+					top: -2px;
+					bottom: 0;
+					margin: auto;
+					width: 1em;
+					height: 1em;
+					overflow: hidden;
+				}
+				.icon-search2{
+					display: none;
+				}
+			}
+			.notice{
+				margin-left: 17px;
+			}
+			.feedback{
+				margin-left: 12px;
+			}
+			.avatar{
+				margin-left: 19px;
+			}
+			.icon{
+				vertical-align: -0.15em;
+			}
+        }
+    }
+}

+ 85 - 0
css/scss/_leftMenu.scss

@@ -0,0 +1,85 @@
+$bg-color:#f8f8f9;
+$color:#495060;
+$side-width:180px;
+$active-bg-color:#59c993;
+$active-border-color:#f2f2f2;
+$active-color:#0bb27a;
+.left-menu-Vg32{
+    position: fixed;
+    top: 60px;
+    left: 0;
+    height: calc(100% - 104px);
+    width: $side-width;
+    z-index: 199;
+    background: $bg-color;
+    padding-top: 16px;
+    overflow-x: hidden;
+    overflow-y: auto;
+    transition: all 0.5s;
+    .menu-list{
+        .item{
+            height: 40px;
+            margin-bottom: 8px;
+            color: #495060;
+            transition: all 0.2s;
+            display: flex;
+            align-items: center;
+            user-select: none;
+            white-space: nowrap;
+            cursor: pointer;
+            position: relative;
+            border-left: 3px solid transparent;
+            &:hover{
+                border-left-color:$active-bg-color;
+                background: $active-border-color;
+            }
+            .icon-svg{
+                font-size: 20px;
+                position: absolute;
+                right: 13px;
+                top: 0;
+                bottom: 0;
+                margin: auto;
+                transition: all 0.2s;
+                color: #bbbec4;
+                line-height: 40px;
+                width: 1em;
+                height: 1em;
+                vertical-align: -0.15em;
+                pointer-events: none;
+            }
+        }
+        &>.item.active{
+            +.item-list{
+                display: block;
+            }
+            .icon-svg{
+                transform: rotate(180deg);
+            }
+        }
+        .item-list{
+            display: none;
+            .item{
+                .name{
+                    font-size: 13px;
+                }
+                &.active{
+                    border-left-color:$active-bg-color;
+                    background: $active-border-color;
+                    color: $active-color;
+                }
+            }
+        }
+    }
+    .icon{
+        margin-left: 13px;
+        width: 20px;
+        height: 20px;
+    }
+    .name{
+        position: relative;
+        white-space: nowrap;
+        margin-left: 16px;
+        font-size: 14px;
+    }
+}

+ 36 - 0
css/scss/_rightMain.scss

@@ -0,0 +1,36 @@
+.right-main-Vk67{
+    margin-left: 180px;
+    .layui-tab{
+        margin: 0;
+        .layui-tab-title{
+            font-weight: 600;
+            .layui-index{
+                .layui-tab-close{
+                    display: none;
+                }
+            }
+            :after{
+                height: 40px;
+            }
+        }
+        .layui-tab-content{
+            height: calc(100vh - 100px);
+            overflow: auto;
+            padding:0;
+            .layui-tab-item{
+                position: relative;
+                height: 100%;
+                width: 100%;
+                .iframe-content{
+                    position: absolute;
+                    top:0;
+                    bottom: 0;
+                    left: 0;
+                    right: 0;
+                    height: 100%;
+                    width: 100%;                    
+                }
+            }
+        }
+    }
+}

+ 0 - 120
css/style.css

@@ -1,120 +0,0 @@
-html, body { font-size: 12px; }
-
-.z-drop-tigger { position: relative; }
-
-.z-drop-tigger:hover .z-drop-box { display: block; }
-
-.z-drop-tigger .z-drop-box { position: absolute; left: 0; top: 0; display: none; padding: 10px; line-height: 1.3; color: #000; min-width: 100%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12); border: 1px solid #d2d2d2; background-color: #fff; z-index: 100; border-radius: 2px; white-space: nowrap; }
-
-.test-box { position: fixed; top: 50%; left: 50%; z-index: 999999; }
-
-.z-header { height: 60px; width: 100%; background-color: #20222a; color: #fff; }
-
-.z-header .logo-box { padding: 0 15px; width: 265px; line-height: 60px; font-size: 1.3em; }
-
-.z-header .logo-box .user-img, .z-header .logo-box .user-name { float: left; height: 60px; padding: 0 10px; line-height: 60px; }
-
-.z-header .logo-box .user-name { overflow: hidden; display: inline-block; width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
-
-.z-header .logo-box img { height: 30px; }
-
-.z-header .logo-box .user-drop { cursor: pointer; color: #808186; }
-
-.z-header .logo-box .z-drop-box { top: 16px; }
-
-.z-header .logo-box .dividing { float: right; height: 20px; width: 1px; background-color: #808186; margin-top: 20px; }
-
-.z-header .layui-nav { z-index: 10; }
-
-.z-header .layui-nav .layui-this:after { display: none; }
-
-.z-header .header-menu .layui-nav { background-color: #20222a; height: 60px; transition: all .5s; }
-
-.z-header .header-menu .layui-nav:hover { height: auto; }
-
-.z-header .header-menu .layui-nav.layui-layout-left { left: 280px; right: 340px; overflow: hidden; }
-
-.z-header .header-menu .layui-nav .layui-nav-bar { display: none; }
-
-.z-header .header-menu .layui-nav .layui-this:after { display: none; }
-
-.z-header .header-menu .layui-nav .layui-nav-item { text-align: center; line-height: 20px; transition: 0.3s; }
-
-.z-header .header-menu .layui-nav .layui-nav-item a { padding: 10px 15px; white-space: nowrap; }
-
-.z-header .header-menu .layui-nav .layui-nav-item a:hover { cursor: pointer; }
-
-.z-header .header-menu .layui-nav .layui-nav-item.layui-this { background-color: #121318; color: #2168fe; }
-
-.z-header .header-menu .layui-nav .layui-nav-item.layui-this a { color: #2168fe; }
-
-.z-header .header-menu .layui-nav .layui-nav-item:hover { background-color: #121318; color: #2168fe; }
-
-.z-header .header-menu .layui-nav .layui-nav-item:hover a { color: #2168fe; }
-
-.z-header .header-menu .layui-nav .layui-nav-item .fas { font-size: 1.2em; display: block; line-height: 1.2; }
-
-.z-header .header-menu .layui-nav .layui-nav-item .fas.lit { font-size: 1em; }
-
-.z-header .layui-nav.header-operation { background-color: #20222a; }
-
-.z-header .layui-nav.header-operation .layui-nav-bar { background-color: #2168fe; }
-
-.z-side { top: 60px; background-color: #f7f7f7; color: #494b4e; }
-
-.z-side .layui-side-scroll { height: calc(100% - 46px); }
-
-.z-side .layui-nav { background-color: #f7f7f7; color: #494b4e; }
-
-.z-side .layui-nav * { background-color: #f7f7f7 !important; color: #494b4e !important; }
-
-.z-side .layui-nav .layui-nav-item > a { border-bottom: 1px solid #ebebeb; height: 40px; line-height: 40px; }
-
-.z-side .layui-nav .layui-nav-item dd:hover::before { content: ''; border-left: 4px solid #2168fe; height: 30px; width: 0px; float: left; margin-top: 5px; margin-left: 3px; }
-
-.z-side .layui-nav .layui-nav-item dd:hover a { color: #2168fe !important; }
-
-.z-side .layui-nav .layui-nav-item a { color: #494b4e; cursor: pointer; font-weight: 600; }
-
-.z-side .layui-nav .layui-nav-item a i { padding: 0 5px; color: #898e95 !important; }
-
-.z-side .layui-nav .layui-nav-item .layui-nav-child a { margin-left: 20px; }
-
-.z-side .layui-nav .layui-nav-item .layui-nav-more { border-top-color: #898e95; }
-
-.z-side .layui-nav .layui-nav-item.layui-nav-itemed .layui-nav-more { border-bottom-color: #898e95; border-top-color: #fff; }
-
-.z-side .layui-nav .layui-nav-item .layui-this { background-color: #f2f2f2 !important; }
-
-.z-side .layui-nav .layui-nav-item .layui-this::before { content: ''; border-left: 4px solid #2168fe; height: 30px; width: 0px; float: left; margin-top: 5px; margin-left: 3px; }
-
-.z-side .layui-nav .layui-nav-item .layui-this a { color: #2168fe !important; }
-
-.z-side .add-menu { position: absolute; bottom: 0; text-align: center; }
-
-.z-body { position: fixed; top: 60px; bottom: 0; left: 200px; right: 0; }
-
-.z-body .layui-tab { margin: 0; }
-
-.z-body .layui-tab .layui-tab-title { font-weight: 600; }
-
-.z-body .layui-tab .layui-tab-title .layui-index .layui-tab-close { display: none; }
-
-.z-body .layui-tab .layui-tab-title .layui-index:after { left: 30%; }
-
-.z-body .layui-tab .layui-tab-title .layui-this { color: #2168fe; }
-
-.z-body .layui-tab .layui-tab-title .layui-this:after { width: 40%; left: calc(30% - 10px); border-bottom: solid 3px #2168fe; }
-
-.z-body .layui-tab .layui-tab-title .layui-this.layui-index .layui-tab-close { display: none; }
-
-.z-body .layui-tab .layui-tab-title .layui-this.layui-index:after { left: 30%; }
-
-.z-body .layui-tab .layui-tab-content { height: calc(100vh - 105px); overflow: auto; padding: 0; }
-
-.z-body .layui-tab .layui-tab-content .layui-tab-item { position: relative; height: 100%; width: 100%; }
-
-.z-body .layui-tab .layui-tab-content .layui-tab-item .iframe-content { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; }
-
-.z-body .tabs-pages-more { border: 1px solid #e6e6e6; width: 30px; height: 40px; line-height: 40px; z-index: 10; text-align: center; cursor: pointer; border-bottom: 2px solid #e6e6e6; }
-/*# sourceMappingURL=style.css.map */

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 13
css/style.css.map


+ 0 - 5
css/style.scss

@@ -1,5 +0,0 @@
-
-@import './layout/global';  //global style ()
-@import './layout/header';  //layout header menu
-@import './layout/side';     //layout side menu
-@import './layout/body';     //layout tabs pages

+ 80 - 2
iframe/index.html

@@ -1,4 +1,3 @@
-
 <!DOCTYPE html>
 <html lang="en">
 <head>
@@ -7,6 +6,85 @@
     <title>Document</title>
 </head>
 <body>
-    首页,默认情况下不会关闭。
+    首页(无法关闭)
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
+    <br>
 </body>
 </html>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 27
iframe/test.html


+ 1 - 1
iframe/customer/index.html

@@ -6,6 +6,6 @@
     <title>Document</title>
 </head>
 <body>
-    测试其中一个页面
+    111111
 </body>
 </html>

+ 1 - 1
iframe/customer/page1.html

@@ -6,6 +6,6 @@
     <title>Document</title>
 </head>
 <body>
-    测试其中一个公司客户管理页面
+    22222
 </body>
 </html>

+ 1 - 3
iframe/404.html

@@ -6,8 +6,6 @@
     <title>Document</title>
 </head>
 <body>
-    <div style="text-align: center;font-size: 2em;font-weight: 700;">
-        页面开发中
-    </div>
+    333333
 </body>
 </html>

+ 11 - 0
iframe/test/test4.html

@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+</head>
+<body>
+    44444
+</body>
+</html>

BIN
img/header/2OItdFog.png


BIN
img/header/brand.png


+ 1 - 0
img/header/down.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1600063920345" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1142" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12"><defs><style type="text/css"></style></defs><path d="M 938.667 341.333 L 512 768 L 85.3333 341.333 Z" fill="#fff" fill-opacity="0.5" p-id="1143"></path></svg>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 0
img/header/fankui.svg


BIN
img/header/logo.png


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 0
img/header/search.svg


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 0
img/header/search2.svg


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 0
img/header/tixing.svg


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 1 - 0
img/left-menu/down.svg


BIN
img/left-menu/gl.png


BIN
img/left-menu/yggx.png


+ 112 - 172
index.html

@@ -3,188 +3,134 @@
 <head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>demo</title>
 <link rel="stylesheet" href="./css/reset.css">
 <link rel="stylesheet" href="./libs/fontawesome/css/all.min.css">
 <link rel="stylesheet" href="./libs/layui/css/layui.css">
-<link rel="stylesheet" href="./css/style.css">
-<script src="./libs/jquery-3.5.1.min.js" charset="utf-8"></script>
-<title>Document</title>
+<link rel="stylesheet" href="./css/layout.css">
+<script src="./libs/jquery-3.5.1.min.js"></script> 
 </head>
 <body>
-<div class="z-admin">
-    <div class="z-header">
-        <div class="logo-box">
-            <div class="user-img">
-                <img src="./img/header/logo.png" alt="">
+<div class="layout">
+    <div class="top-header-Jf03">
+        <div class="main-Kg48">
+            <div class="left">
+                <div class="logo">
+                    <img class="img" src="./img/header/brand.png" alt="">
+                </div>
+                <div class="company-name">
+                    <span class="name">张德晨</span>
+                    <embed src="./img/header/down.svg"  class="icon" type="image/svg+xml" />
+                </div>
+                <div class="divider"></div>
+                <div id="top-bar-menu">
+                    <ul class="layui-nav" lay-filter="nav-header">
+                        <li class="layui-nav-item layui-this">
+                            <a lay-id='home'>工作台</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='personnel'>人事</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='organization'>组织</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='recruit'>招聘</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='attendance'>考勤假期</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='salary'>薪酬</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='approval'>审批</a>
+                        </li>
+                        <li class="layui-nav-item">
+                            <a lay-id='setting'>企业设置</a>
+                        </li>
+                        <li class="layui-nav-item" id='layui-nav-item-more'  lay-unselect>
+                            <a class="more">
+                                更多
+                                <embed src="./img/header/down.svg" width="14px" height="14px"  class="icon" type="image/svg+xml" />
+                            </a>
+                        </li>
+                    </ul>
+                </div>
             </div>
-            <div class="user-name">深圳市海中信科技有限公司</div>
-            <i class="layui-icon z-drop-tigger user-drop">
-                &#xe625;
-                <div class="z-drop-box user-drop-box layui-anim-up">
-                    切换账号
+            <div class="right-Le52">
+                <div class="quick-search">
+                    <div class="query-input">
+                        <input type="text" autocomplete="off" placeholder="搜索员工、功能、部门、岗位、帮助文档" class="input">
+                        <embed src="./img/header/search.svg" class="icon-search" type="image/svg+xml" />
+                        <embed src="./img/header/search2.svg" class="icon-search2" type="image/svg+xml" />
+                    </div>
                 </div>
-            </i> 
-            <div class="dividing"></div> 
-        </div>
-        <div class="header-menu">
-            <ul class="layui-nav layui-layout-left" lay-filter="nav-header">
-                <li class="layui-nav-item layui-this" path="home">
-                    <a lay-id='home'><i class="fas fa-desktop lit"></i> 工作台 </a>
-                </li>
-                <li class="layui-nav-item" path="customer">
-                    <a lay-id='customer'><i class="fas fa-user-friends"></i>客户管理</a>
-                </li>
-                <li class="layui-nav-item" path="purchase">
-                    <a lay-id='purchase'><i class="fas fa-file-invoice"></i>采购管理</a>
-                </li>
-                <li class="layui-nav-item" path="warehouse">
-                    <a lay-id='warehouse'><i class="fas fa-warehouse lit" ></i>仓库管理</a>
-                </li>
-                <li class="layui-nav-item" path="property">
-                    <a lay-id='property'><i class="fas fa-yen-sign"></i>财物管理</a>
-                </li>
-                <li class="layui-nav-item" path="production">
-                    <a lay-id='production'><i class="fas fa-chart-line"></i>生产管理</a>
-                </li>
-                <li class="layui-nav-item" path="engineering">
-                    <a lay-id='engineering'><i class="fas fa-truck-moving"></i>工程管理</a>
-                </li>
-                <li class="layui-nav-item" path="outsourcing">
-                    <a lay-id='outsourcing'><i class="fas fa-truck"></i>委外管理</a>
-                </li>
-                <li class="layui-nav-item" path="quality">
-                    <a lay-id='quality'><i class="fas fa-thumbs-up"></i>品质管理</a>
-                </li>
-                <li class="layui-nav-item" path="personnel">
-                    <a lay-id='personnel'><i class="fas fa-users-cog"></i>人才管理</a>
-                </li>
-                <li class="layui-nav-item" path="automation">
-                    <a lay-id='automation'><i class="fas fa-code-branch"></i>办公自动化</a>
-                </li>
-                <li class="layui-nav-item" path="settings">
-                    <a lay-id='settings'><i class="fas fa-cog"></i>系统设置</a>
-                </li>
-            </ul>
+                <div class="notice">
+                    <embed src="./img/header/tixing.svg" width="32px" height="32px" class="icon" type="image/svg+xml" />
+                </div>
+                <div class="feedback">
+                    <embed src="./img/header/fankui.svg" width="30px" height="30px" class="icon" type="image/svg+xml" />
+                </div>
+                <div class="avatar">
+                    <img src="./img/header/2OItdFog.png" width="24px" height="24px" alt="">
+                </div>
+            </div>
         </div>
-        <ul class="layui-nav layui-layout-right header-operation lay-unselect">
-            <li class="layui-nav-item" lay-unselect>
-                <a>
-                    <i class="layui-icon layui-icon-notice"></i>  
-                    <span class="layui-badge-dot"></span>
+    </div>
+    <div class="left-menu-Vg32">
+        <div class="menu-list">
+            <div class="item">
+                <div class="icon">
+                    <img src="/img/left-menu/gl.png" alt="">
+                </div>
+                <div class="name">
+                    员工管理
+                </div>
+                <embed src="./img/left-menu/down.svg" class="icon-svg" type="image/svg+xml" />
+            </div>
+            <div class="item-list">
+                <a class="item" path='test/test1'>
+                    <div class="icon"></div>
+                    <div class="name">员工花名册</div>
                 </a>
-            </li>
-            <li class="layui-nav-item layui-hide-xs" lay-unselect>
-                <a>
-                    <i class="layui-icon layui-icon-theme"></i>
+                <a  class="item" path='test/test2'>
+                    <div class="icon"></div>
+                    <div class="name">员工档案库</div>
                 </a>
-            </li>
-            <li class="layui-nav-item layui-hide-xs" lay-unselect>
-                <a>
-                    <i class="layui-icon layui-icon-note"></i>
+                <a  class="item" path='test/test3'>
+                    <div class="icon"></div>
+                    <div class="name">统计分析</div>
                 </a>
-            </li>
-            <li class="layui-nav-item layui-hide-xs" lay-unselect>
-                <a>
-                    <i class="layui-icon layui-icon-screen-full"></i>
+                <a  class="item" path='test/test4'>
+                    <div class="icon"></div>
+                    <div class="name">人事报表</div>
                 </a>
-            </li>
-            <li class="layui-nav-item" lay-unselect>
-                <a href="javascript:;">
-                        <cite>管理员</cite>
-                    <span class="layui-nav-more"></span>
+                <a  class="item" path='test/test5'>
+                    <div class="icon"></div>
+                    <div class="name">万能人事表格</div>
                 </a>
-                <dl class="layui-nav-child">   
-                    <dd><a>基本资料</a></dd>
-                    <dd><a>修改密码</a></dd>
-                    <hr>
-                    <dd style="text-align: center;"><a>退出</a></dd>
-                </dl>
-            </li>
-        </ul>
-    </div>
-    <div class="layui-side z-side">
-        <div class="layui-side-scroll">
-            <ul class="layui-nav layui-nav-tree side-menu" lay-shrink="all" lay-filter="nav-side">
-                <li class="layui-nav-item">
-                    <a><i class="fas fa-user-friends"></i>客户管理</a>
-                    <dl class="layui-nav-child">
-                      <dd><a lay-id='customer/page1'>公司客户管理</a></dd>
-                      <dd><a lay-id='page2'>个人客户管理</a></dd>
-                      <dd><a lay-id='page3'>公司联系人管理</a></dd>
-                      <dd><a lay-id='page4'>个人客户(已成交)</a></dd>
-                      <dd><a lay-id='page5'>公司客户(已成交)</a></dd>
-                      <dd><a lay-id='page6'>公司联系人(已成交)</a></dd>
-                      <dd><a lay-id='page7'>客户查询(按手机)</a></dd>
-                      <dd><a lay-id='page8'>客户查询(按姓名)</a></dd>
-                      <dd><a lay-id='page9'>客户信用管理</a></dd>
-                      <dd><a lay-id='page10'>客户录音</a></dd>
-                      <dd><a lay-id='page11'>客户识别</a></dd>
-                    </dl>
-                </li>
-                <li class="layui-nav-item">
-                    <a><i class="fas fa-file-invoice"></i>客户管理</a>
-                    <dl class="layui-nav-child">
-                        <dd><a lay-id=''>公司客户管理</a></dd>
-                        <dd><a lay-id=''>个人客户管理</a></dd>
-                        <dd><a lay-id=''>公司联系人管理</a></dd>
-                        <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                        <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                        <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                        <dd><a lay-id=''>客户信用管理</a></dd>
-                        <dd><a lay-id=''>客户录音</a></dd>
-                        <dd><a lay-id=''>客户识别</a></dd>
-                    </dl>
-                </li>
-                <li class="layui-nav-item">
-                    <a><i class="fas fa-file-invoice"></i>仓库管理</a>
-                    <dl class="layui-nav-child">
-                        <dd><a lay-id=''>公司客户管理</a></dd>
-                        <dd><a lay-id=''>个人客户管理</a></dd>
-                        <dd><a lay-id=''>公司联系人管理</a></dd>
-                        <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                        <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                        <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                        <dd><a lay-id=''>客户信用管理</a></dd>
-                        <dd><a lay-id=''>客户录音</a></dd>
-                        <dd><a lay-id=''>客户识别</a></dd>
-                    </dl>
-                </li>
-                <li class="layui-nav-item">
-                    <a><i class="fas fa-file-invoice"></i>财物管理</a>
-                    <dl class="layui-nav-child">
-                        <dd><a lay-id=''>公司客户管理</a></dd>
-                        <dd><a lay-id=''>个人客户管理</a></dd>
-                        <dd><a lay-id=''>公司联系人管理</a></dd>
-                        <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                        <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                        <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                        <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                        <dd><a lay-id=''>客户信用管理</a></dd>
-                        <dd><a lay-id=''>客户录音</a></dd>
-                        <dd><a lay-id=''>客户识别</a></dd>
-                    </dl>
-                </li>
-            </ul>
+                <a  class="item" path='test/test6'>
+                    <div class="icon"></div>
+                    <div class="name">人事动态</div>
+                </a>
+            </div>
         </div>
-        <div class="add-menu">
-            <ul class="layui-nav layui-nav-tree">
-                <li class="layui-nav-item">
-                    <a>新增功能<i class="fas fa-folder-plus"></i></a>
-                </li>
-            </ul>
+        <div class="menu-list">
+            <div class="item">
+                <div class="icon">
+                    <img src="/img/left-menu/yggx.png" alt="">
+                </div>
+                <div class="name">
+                    员工关系
+                </div>
+                <embed src="./img/left-menu/down.svg" class="icon-svg" type="image/svg+xml" />
+            </div>
         </div>
     </div>
-    <div class="z-body">
-        <div class="layui-tab  layui-tab-brief" lay-filter="tab-pages" lay-allowClose="true">
-            <span class="fr tabs-pages-more">
-                <i lay-stope="tabmore" class="layui-icon">&#xe65f;</i>
-            </span>
-            <ul class="layui-tab-title z-tabs-pages">
+    <div class="right-main-Vk67">
+        <div class="layui-tab" lay-filter="tab-pages" lay-allowClose="true">
+            <ul class="layui-tab-title">
                 <li class="layui-this layui-index"> 首页 </li>
             </ul>
             <div class="layui-tab-content">
@@ -194,13 +140,7 @@
             </div>
         </div>
     </div>
-    <!-- <div class="test-box">
-        <button onclick='test()'>
-            test1
-        </button>
-    </div> -->
 </div>
-</body>
 <script src="./libs/layui/layui.all.js" charset="utf-8"></script>
 <script src="./js/layout.js" charset="utf-8"></script>
 </body>

+ 0 - 0
js/base.js


+ 0 - 1
js/config.js

@@ -1 +0,0 @@
-

+ 43 - 105
js/layout.js

@@ -5,7 +5,14 @@ $(()=>{
     ;!function(){
         let element = layui.element;
         let monitorHandle = () => {
-            // 1.顶部tabs菜单事件
+            //1. 搜索框的事件监听
+            $(document).on("focus",".quick-search .query-input .input",function(){
+                $(this).parent(".query-input").addClass("active");
+            })
+            $(document).on("blur",".quick-search .query-input .input",function(){
+                $(this).parent(".query-input").removeClass("active");
+            })
+            //2.头部菜单的事件
             element.on("nav(nav-header)",function(data){
                 let id = this.getAttribute('lay-id');
                 if(!id) return;
@@ -13,122 +20,53 @@ $(()=>{
                 headerActive = id;
                 sideMenuInit(id);
             })
-            // 2.左侧 side 菜单的切换和路由加载
-            element.on("nav(nav-side)",function(data){
-                let id = this.getAttribute('lay-id');
-                if(!id) return;
-                if(sideActive == id) return; //判断标记 - 左侧菜单是否可点击已选中的重新加载;
-                sideActive = id;
-                let title = data.html();
-                addTabPages(title,id);
+            // 3.左侧菜单的事件监听
+            $(document).on('click',".left-menu-Vg32>.menu-list>.item",function(){
+                if($(this).hasClass("active")){
+                    $(this).removeClass("active")
+                }else{
+                    $(this).addClass("active")
+                }
+            })
+            $(document).on('click',".left-menu-Vg32>.menu-list>.item-list>.item",function(){
+                let _this = $(this);
+                //切换路由页面
+                let path = _this.attr("path");
+                if(!path) return;
+                sideActive = path;
+                let title = _this.find(".name").html();
+                addTabPages(title,path);
+                // 修改样式
+                if(_this.hasClass('active')) return;
+                $(".left-menu-Vg32>.menu-list>.item-list>.item").removeClass("active");
+                _this.addClass("active");
+               
             })
-            // 3.tabsPages删除监听
+            // 4.tabsPages删除监听
             element.on("tabDelete(tab-pages)",function(data){
                 var arr = Array.from(tabsPages);
                 tabsPages.delete(arr[data.index-1]);
             })
         }
-        let sideMenuInit = (path = 'home') => {  //重新加载左侧菜单列表
-            sideActive = ''; tabsPages.clear();//清空标记
-            let sideMenu = `<li class="layui-nav-item">
-                <a><i class="fas fa-user-friends"></i>客户管理</a>
-                <dl class="layui-nav-child">
-                <dd><a lay-id='customer/page1'>公司客户管理</a></dd>
-                <dd><a lay-id='page2'>个人客户管理</a></dd>
-                <dd><a lay-id='page3'>公司联系人管理</a></dd>
-                <dd><a lay-id='page4'>个人客户(已成交)</a></dd>
-                <dd><a lay-id='page5'>公司客户(已成交)</a></dd>
-                <dd><a lay-id='page6'>公司联系人(已成交)</a></dd>
-                <dd><a lay-id='page7'>客户查询(按手机)</a></dd>
-                <dd><a lay-id='page8'>客户查询(按姓名)</a></dd>
-                <dd><a lay-id='page9'>客户信用管理</a></dd>
-                <dd><a lay-id='page10'>客户录音</a></dd>
-                <dd><a lay-id='page11'>客户识别</a></dd>
-                </dl>
-            </li>
-            <li class="layui-nav-item">
-                <a><i class="fas fa-file-invoice"></i>客户管理</a>
-                <dl class="layui-nav-child">
-                    <dd><a lay-id=''>公司客户管理</a></dd>
-                    <dd><a lay-id=''>个人客户管理</a></dd>
-                    <dd><a lay-id=''>公司联系人管理</a></dd>
-                    <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                    <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                    <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                    <dd><a lay-id=''>客户信用管理</a></dd>
-                    <dd><a lay-id=''>客户录音</a></dd>
-                    <dd><a lay-id=''>客户识别</a></dd>
-                </dl>
-            </li>
-            <li class="layui-nav-item">
-                <a><i class="fas fa-file-invoice"></i>仓库管理</a>
-                <dl class="layui-nav-child">
-                    <dd><a lay-id=''>公司客户管理</a></dd>
-                    <dd><a lay-id=''>个人客户管理</a></dd>
-                    <dd><a lay-id=''>公司联系人管理</a></dd>
-                    <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                    <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                    <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                    <dd><a lay-id=''>客户信用管理</a></dd>
-                    <dd><a lay-id=''>客户录音</a></dd>
-                    <dd><a lay-id=''>客户识别</a></dd>
-                </dl>
-            </li>
-            <li class="layui-nav-item">
-                <a><i class="fas fa-file-invoice"></i>财物管理</a>
-                <dl class="layui-nav-child">
-                    <dd><a lay-id=''>公司客户管理</a></dd>
-                    <dd><a lay-id=''>个人客户管理</a></dd>
-                    <dd><a lay-id=''>公司联系人管理</a></dd>
-                    <dd><a lay-id=''>个人客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司客户(已成交)</a></dd>
-                    <dd><a lay-id=''>公司联系人(已成交)</a></dd>
-                    <dd><a lay-id=''>客户查询(按手机)</a></dd>
-                    <dd><a lay-id=''>客户查询(按姓名)</a></dd>
-                    <dd><a lay-id=''>客户信用管理</a></dd>
-                    <dd><a lay-id=''>客户录音</a></dd>
-                    <dd><a lay-id=''>客户识别</a></dd>
-                </dl>
-            </li>`;
-            $(".z-side .side-menu").html(sideMenu);
-            let tabsPagesHtml = `<div class="layui-tab  layui-tab-brief"  lay-filter="tab-pages">
-                <ul class="layui-tab-title z-tabs-pages">
-                <li class="layui-this"> 首页 </li>
-                </ul>
-                <div class="layui-tab-content">
-                    <div class="layui-tab-item layui-show">
-                        <iframe src="./iframe/index.html" class="iframe-content"></iframe>
-                    </div>
-                </div>
-            </div>`;
-            $('.z-body').html(tabsPagesHtml);
+        let sideMenuInit = (id) =>{ //重新加载左侧列表
+            console.log(id)
             element.init();
-            $(".z-side .side-menu").slideToggle(100,()=>{
-                $(".z-side .side-menu").slideToggle();
-            })
         }
-        let addTabPages = (title,id) =>{   //添加或切换 历史路由页tabs
-            if(tabsPages.has(id))
-                element.tabChange('tab-pages', id);
+        let addTabPages = (title,path) =>{   //添加或切换 历史路由页tabs
+            if(tabsPages.has(path))
+                element.tabChange('tab-pages', path);
             else{
-                tabsPages.add(id);
-                element.tabAdd('tab-pages', {
-                    title,id,
-                    content: `<iframe src="./iframe/${id=='customer/page1'?id:'404'}.html" class="iframe-content"></iframe>`
+                tabsPages.add(path);
+                element.tabAdd('tab-pages',{
+                    title,id:path,
+                    content: `<iframe src="./iframe/${path}.html" class="iframe-content"></iframe>`
                 });  
-                element.tabChange('tab-pages', id);
-                console.log(tabsPages)
+                element.tabChange('tab-pages', path);
             }
         }
-        let init = ()=>{
-            monitorHandle();//页面监听
+        let init = () =>{
+            monitorHandle();
         }
         init();
     }();
-})
-var test = () =>{
-}
+})