diff --git a/static/css/common.css b/static/css/common.css index dc082ed..eeee254 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -236,6 +236,8 @@ } .onlineUsers:hover,.onlineUsers.cur{background-color: #f0f9eb;color: #67C23A;} .imgGray {-webkit-filter: grayscale(100%);-ms-filter: grayscale(100%);filter: grayscale(100%);filter: gray;color:#888;} +.hasLastMsg{line-height: normal;} +.lastNewMsg{font-size: 12px;color: #7f7f7f;margin-top: 4px;} /*客服页*/ .chatKfPageApp{ max-width: 800px; diff --git a/static/html/chat_main.html b/static/html/chat_main.html index c1dc2be..c8f54be 100644 --- a/static/html/chat_main.html +++ b/static/html/chat_main.html @@ -70,12 +70,13 @@ -
+
- <{item.username}> +
<{item.username}>
+
<{item.last_message}>
diff --git a/static/js/chat-main.js b/static/js/chat-main.js index 884e2cc..b5cb629 100644 --- a/static/js/chat-main.js +++ b/static/js/chat-main.js @@ -142,7 +142,11 @@ var app=new Vue({ notification.close(); _this.talkTo(msg.id,msg.name); }); - + for(let i=0;i