From 1e6df97d940e985ecf6e1484a75827907b2f7791 Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Tue, 5 Nov 2024 23:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E5=BC=82=E5=B8=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-uniapp/.env.js | 4 ++-- im-uniapp/components/chat-item/chat-item.vue | 17 ++++++++++------- im-uniapp/components/pop-menu/pop-menu.vue | 18 +++++------------- 3 files changed, 17 insertions(+), 22 deletions(-) diff --git a/im-uniapp/.env.js b/im-uniapp/.env.js index 9c7c778..b6b9ff4 100644 --- a/im-uniapp/.env.js +++ b/im-uniapp/.env.js @@ -2,8 +2,8 @@ const ENV = "DEV"; const UNI_APP = {} if(ENV=="DEV"){ - UNI_APP.BASE_URL = "http://192.168.43.199:8888"; - UNI_APP.WS_URL = "ws://192.168.43.199:8878/im"; + UNI_APP.BASE_URL = "http://127.0.0.1:8888"; + UNI_APP.WS_URL = "ws://127.0.0.1:8878/im"; // H5 走本地代理解决跨域问题 // #ifdef H5 UNI_APP.BASE_URL = "/api"; diff --git a/im-uniapp/components/chat-item/chat-item.vue b/im-uniapp/components/chat-item/chat-item.vue index 904fa40..7dcf1c1 100644 --- a/im-uniapp/components/chat-item/chat-item.vue +++ b/im-uniapp/components/chat-item/chat-item.vue @@ -7,10 +7,10 @@ - - {{chat.showName}} - - + + {{chat.showName}} + + {{$date.toTimeText(chat.lastSendTime,true)}} @@ -42,7 +42,7 @@ } }, methods: { - + showChatBox() { uni.navigateTo({ url: "/pages/chat/chat-box?chatIdx=" + this.index @@ -133,14 +133,17 @@ overflow: hidden; display: flex; align-items: center; - + .uni-tag { + text-align: center; margin-left: 5rpx; - background-color: #5a60d2; border: 0; height: 30rpx; line-height: 30rpx; font-size: 20rpx; + padding: 1px 5px; + background-color: #de1c1c; + opacity: 0.8; } } diff --git a/im-uniapp/components/pop-menu/pop-menu.vue b/im-uniapp/components/pop-menu/pop-menu.vue index e488cb0..b24a4ce 100644 --- a/im-uniapp/components/pop-menu/pop-menu.vue +++ b/im-uniapp/components/pop-menu/pop-menu.vue @@ -1,10 +1,9 @@