From ab8e8e37d79c3ee439217d055cd71d6cd71d5037 Mon Sep 17 00:00:00 2001 From: taoshihan <630892807@qq.com> Date: Fri, 11 Nov 2022 00:20:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E7=AB=AF=E5=8F=91=E9=80=81?= =?UTF-8?q?=E8=A1=A8=E6=83=85=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/common.css | 94 +++++---------------------------- static/js/chat-page.js | 10 +--- static/templates/chat_page.html | 20 +++++-- 3 files changed, 29 insertions(+), 95 deletions(-) diff --git a/static/css/common.css b/static/css/common.css index 98b1c9a..34d8787 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -31,7 +31,7 @@ .visitorFaceBox{ position: absolute; - bottom: 105px; + bottom: 85px; } .visitorIconBtns{ margin-right: 8px; @@ -46,88 +46,11 @@ bottom: 0px; z-index: 999; } -.imageBtn { - width: 32px; - height: 23px; - overflow: hidden; - display: inline-block; - vertical-align: middle; - position: relative; - font-style: normal; - color: #9da0a0; - text-align: left; - text-indent: -9999px; - direction: ltr; - border: 1px solid; -} -.imageBtn:before { - content: ''; - position: absolute; - width: 17px; - height: 16px; - left: -2px; - top: 10px; - -webkit-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -ms-transform: rotate(45deg); - -o-transform: rotate(45deg); - transform: rotate(45deg); - box-shadow: inset 0 0 0 32px, 10px -6px 0 0; -} -.imageBtn:after { - content: ''; - -webkit-border-radius: 50%; - -moz-border-radius: 50%; - -o-border-radius: 50%; - border-radius: 50%; - position: absolute; - width: 3px; - height: 3px; - box-shadow: inset 0 0 0 32px; - top: 5px; - right: 5px -} -.visitorFolderBtn{ - float: left; - margin-left: 20px; -} -.folderBtn { - display: inline-block; - background-color: transparent; - overflow: hidden; - font-size: 1px; -} -.folderBtn:before { - content: ''; - float: left; - background-color: #9da0a0; - width: 15px; - height: 3px; - margin-left: 2px; - border-top-left-radius: 2px; - border-top-right-radius: 2px; - box-shadow: 2px 2px 0 0 #9da0a0; -} -.folderBtn:after { - content: ''; - float: left; - clear: left; - background-color: #d4d6d6; - width: 33px; - height: 22px; - border-radius: 1px; -} -.visitorImageBtn{ - float: left; - margin-left: 20px; - margin-top: 2px; -} .faceBox{ width: 100%; background: #fff; z-index: 99999999; padding: 2px; - display: none; } .faceBoxList{ list-style: none; @@ -262,7 +185,7 @@ /*margin-bottom: 80px;*/ } .chatVisitorPage{ - height: calc(100% - 71px); + height: calc(100% - 86px); overflow-y: auto; } .chatVisitorPage .chatBox{ @@ -318,7 +241,7 @@ a{color: #07a9fe;text-decoration: none;} padding-top: 5px; background: #fff; width: 100%; - height: 65px; + height: 80px; z-index: 99; border-top: 1px solid #e4e4e4; } @@ -439,6 +362,15 @@ a{color: #07a9fe;text-decoration: none;} .chatArticle{ display: none; } +.visitorIconBox{ + display: flex; + align-items: center; + color: rgb(126, 126, 126); +} +.visitorIconBox .iconBtn{ + margin-right: 10px; + cursor: pointer; +} @media screen and (min-width: 900px) { .chatCenter { max-height: 800px; @@ -446,7 +378,7 @@ a{color: #07a9fe;text-decoration: none;} border-radius: 4px; } .chatVisitorPage { - height: calc(100% - 140px); + height: calc(100% - 156px); } .chatEntTitle{display: flex;} .chatEntTitleLogo { diff --git a/static/js/chat-page.js b/static/js/chat-page.js index 133a59a..85c7711 100644 --- a/static/js/chat-page.js +++ b/static/js/chat-page.js @@ -362,15 +362,7 @@ new Vue({ $.each(faceTitles, function (index, item) { _this.face.push({"name":item,"path":faces[item]}); }); - $(".visitorFaceBtn").click(function(e){ - var status=$('.faceBox').css("display"); - if(status=="block"){ - $('.faceBox').hide(); - }else{ - $('.faceBox').show(); - } - return false; - }); + var windheight = $(window).height(); $(window).resize(function(){ diff --git a/static/templates/chat_page.html b/static/templates/chat_page.html index fccf1cf..0d22a78 100644 --- a/static/templates/chat_page.html +++ b/static/templates/chat_page.html @@ -51,13 +51,23 @@
-
- -
-
+
+ +
+
+ + +
+
+ +
+
+ + +
-
+