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 @@