From 3e130a242031617aa9d9e8518250b80fe0a6d077 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Tue, 5 Nov 2024 00:10:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/components/chat-item/chat-item.vue | 27 +++++++++-------- .../components/head-image/head-image.vue | 29 +++++++++---------- im-uniapp/pages/chat/chat-box.vue | 3 +- im-uniapp/pages/group/group-info.vue | 19 +++++++----- im-uniapp/pages/group/group-member.vue | 25 ++++++++++++++-- im-web/src/components/chat/ChatBox.vue | 20 ++++++------- im-web/src/components/chat/ChatInput.vue | 1 - im-web/src/components/chat/ChatItem.vue | 29 ++++++++++++------- im-web/src/components/common/HeadImage.vue | 14 ++++----- im-web/src/components/common/UserInfo.vue | 8 +++-- im-web/src/view/Friend.vue | 2 +- im-web/src/view/Group.vue | 2 +- im-web/src/view/Home.vue | 2 +- 13 files changed, 106 insertions(+), 75 deletions(-) diff --git a/im-uniapp/components/chat-item/chat-item.vue b/im-uniapp/components/chat-item/chat-item.vue index eafdf26..904fa40 100644 --- a/im-uniapp/components/chat-item/chat-item.vue +++ b/im-uniapp/components/chat-item/chat-item.vue @@ -7,12 +7,10 @@ - - - - - {{chat.showName}} - + + {{chat.showName}} + + {{$date.toTimeText(chat.lastSendTime,true)}} @@ -127,18 +125,23 @@ line-height: 44rpx; height: 44rpx; - .chat-tag { - display: flex; - align-items: center; - margin-right: 5rpx; - } - .chat-name-text { flex: 1; font-size: 30rpx; font-weight: 600; white-space: nowrap; overflow: hidden; + display: flex; + align-items: center; + + .uni-tag { + margin-left: 5rpx; + background-color: #5a60d2; + border: 0; + height: 30rpx; + line-height: 30rpx; + font-size: 20rpx; + } } .chat-time { diff --git a/im-uniapp/components/head-image/head-image.vue b/im-uniapp/components/head-image/head-image.vue index ff9c41a..f8298c2 100644 --- a/im-uniapp/components/head-image/head-image.vue +++ b/im-uniapp/components/head-image/head-image.vue @@ -15,9 +15,8 @@ name: "head-image", data() { return { - colors: ["#7dd24b", "#c7515a", "#db68ef", "#15d29b", "#85029b", - "#c9b455", "#fb2609", "#bda818", "#af0831", "#326eb6" - ] + colors: ["#5daa31", "#c7515a", "#e03697", "#85029b", + "#c9b455", "#326eb6"] } }, props: { @@ -50,15 +49,17 @@ } }, computed: { - avatarImageStyle() { - return `width:${this.size}rpx; height:${this.size}rpx;` - }, - avatarTextStyle() { - return `width: ${this.size}rpx;height:${this.size}rpx; - color:${this.textColor};font-size:${this.size*0.5}rpx; - border: 2px solid ${this.textColor}; - box-shadow: 0px 0px 5rpx ${this.textColor}` - }, + avatarImageStyle() { + return `width:${this.size}rpx; + height:${this.size}rpx;` + }, + avatarTextStyle() { + return `width: ${this.size}rpx; + height:${this.size}rpx; + background-color:${this.textColor}; + font-size:${this.size*0.5}rpx; + ` + }, textColor() { let hash = 0; for (var i = 0; i < this.name.length; i++) { @@ -79,13 +80,11 @@ position: relative; overflow: hidden; border-radius: 50%; - border: 2px solid #6664eb; vertical-align: bottom; - box-shadow: 0px 0px 10rpx #6664eb; } .avatar-text { - background-color: #f2f2f2; + color: white; border-radius: 50%; display: flex; align-items: center; diff --git a/im-uniapp/pages/chat/chat-box.vue b/im-uniapp/pages/chat/chat-box.vue index d63cd25..9e9bf90 100644 --- a/im-uniapp/pages/chat/chat-box.vue +++ b/im-uniapp/pages/chat/chat-box.vue @@ -780,8 +780,7 @@ padding: 5px; background-color: #f8f8f8; line-height: 50px; - font-size: 40rpx; - font-weight: 600; + font-size: 36rpx; border: #dddddd solid 1px; diff --git a/im-uniapp/pages/group/group-info.vue b/im-uniapp/pages/group/group-info.vue index ddc9938..d764fd3 100644 --- a/im-uniapp/pages/group/group-info.vue +++ b/im-uniapp/pages/group/group-info.vue @@ -15,7 +15,7 @@ - 查看更多群成员 > + {{`查看全部群成员${groupMembers.length}人`}}> @@ -39,7 +39,7 @@ {{group.showNickName}} - + 修改群聊资料 > @@ -198,7 +198,7 @@ .group-members { padding: 30rpx; background: white; - + .member-items { display: flex; flex-wrap: wrap; @@ -237,9 +237,10 @@ } .member-more { - padding: 20rpx; + padding-top: 30rpx; text-align: center; - font-size: 16px; + font-size: 32rpx; + color: #333; } } @@ -248,15 +249,17 @@ margin-top: 30rpx; padding: 30rpx; background: white; - + .detail-text{ font-size: 28rpx; font-weight: 600; } + .group-edit { - padding: 20rpx; + padding-top: 30rpx; text-align: center; - font-size: 30rpx; + font-size: 32rpx; + color: #333; } } diff --git a/im-uniapp/pages/group/group-member.vue b/im-uniapp/pages/group/group-member.vue index fdf7c2d..1b42ee9 100644 --- a/im-uniapp/pages/group/group-member.vue +++ b/im-uniapp/pages/group/group-member.vue @@ -1,7 +1,7 @@