diff --git a/index.html b/index.html index 30ff4fa..b3a57dc 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + 在线学习平台 diff --git a/src/components/InstantMessage.vue b/src/components/InstantMessage.vue index bd2ab98..bc55718 100644 --- a/src/components/InstantMessage.vue +++ b/src/components/InstantMessage.vue @@ -3,11 +3,7 @@
-

对话

- +

全部消息

@@ -19,7 +15,7 @@ >
-
{{ conversation.unreadCount }}
+
{{ conversation.name }}
@@ -43,29 +39,12 @@
- -
- - - -
+
{{ selectedConversation.name }}
-
@@ -83,7 +62,7 @@
{{ message.time }}
-
+
我
@@ -91,29 +70,34 @@
-
- - - -
- - +
+
+ + + +
+
+ {{ messageInput.length }}/500 + +
+
@@ -288,9 +272,10 @@ onMounted(() => { diff --git a/src/views/Home.vue b/src/views/Home.vue index 419d682..8b65447 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -701,12 +701,12 @@ const handleScroll = () => { documentHeight, scrollableHeight, scrollPercentage: scrollPercentage.toFixed(2) + '%', - shouldShow: scrollPercentage >= 80, + shouldShow: scrollPercentage >= 50, currentShow: showFixedButtons.value }) - // 当滚动超过80%时显示固定按钮组 - const shouldShow = scrollPercentage >= 80 + // 当滚动超过50%时显示固定按钮组 + const shouldShow = scrollPercentage >= 50 if (shouldShow !== showFixedButtons.value) { showFixedButtons.value = shouldShow console.log(shouldShow ? '🟢 显示固定按钮组' : '🔴 隐藏固定按钮组')