From 6ceb249021417386c5e7ababf88229cb602ac853 Mon Sep 17 00:00:00 2001 From: taoshihan <630892807@qq.com> Date: Mon, 6 Jun 2022 00:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E5=90=8E=E5=8F=B0=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/common.css | 44 +++++++++++++++--- static/templates/chat_main.html | 2 +- static/templates/main.html | 30 ++++++------- static/templates/nav.html | 72 ++++++++++++++++++++---------- static/templates/setting_left.html | 3 -- 5 files changed, 103 insertions(+), 48 deletions(-) diff --git a/static/css/common.css b/static/css/common.css index f10a203..67095f1 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -228,15 +228,13 @@ margin-left: 5px; font-size: 12px; } -.el-submenu__title i{ - color: #fff; -} + .el-container{ height: 100%; } -.el-aside{ +.el-aside { height: 100%; - background: #222d32; + background: #fff; } .textDark {color: #343a40;} .bgInfo {background-color: #17a2b8} @@ -548,4 +546,40 @@ a{color: #07a9fe;text-decoration: none;} } .visitorSendBtn{ margin-right: 2px; +} +.mainLeftMenu { + width: 70px; + float: left; + height: 100%; + text-align: center; + background-color: #0a2f5a; + position: relative; +} +.menuLeftItem { + height: 55px; + text-align: center; + color: #fff; + cursor: pointer; + padding-top: 12px; + width: 100%; +} +.menuLeftItem i, .menuLeftItem .el-badge { + display: block; + margin-bottom: 2px; + font-size: 20px; +} +.menuLeftItem span { + font-size: 12px; +} +.mainRight { + width: calc(100% - 70px); + height: 100%; + float: left; +} +.mainIframe { + width: 100%; + height: 100%; +} +.menuLeftItem:active, .menuLeftItem.active { + background: #2b5a96; } \ No newline at end of file diff --git a/static/templates/chat_main.html b/static/templates/chat_main.html index 174a321..d0a61ee 100644 --- a/static/templates/chat_main.html +++ b/static/templates/chat_main.html @@ -2,7 +2,7 @@ - + GO语言开源客服系统-GOFLY diff --git a/static/templates/main.html b/static/templates/main.html index ec26a1c..0df0583 100644 --- a/static/templates/main.html +++ b/static/templates/main.html @@ -41,10 +41,6 @@ margin-left: 10px; margin-bottom: 60px; } - .mainIframe{ - width: 100%; - height: calc(100% - 60px); - } .el-card__body{ cursor: pointer; } @@ -56,7 +52,10 @@
@@ -66,10 +65,12 @@ delimiters:["<{","}>"], data: { window:window, - iframeUrl:"", mailTotal:0, adminAvator:"", adminRole:"", + onlineType:"success", + haveNewMessage:"", + iframeUrl:"/chat_main", }, methods: { focusWindow(){ @@ -130,22 +131,19 @@ created: function () { this.checkAuth(); this.focusWindow(); + $(function(){ + $("body").on("click",".menuLeftItem",function(){ + $(".menuLeftItem").removeClass("active"); + $(this).addClass("active"); + }); + }) } }) $(window).bind("focus",function(e){ //alert(1); }); - - +