From eefe793b8fe8ec544474b5f713aad4d3a332d732 Mon Sep 17 00:00:00 2001
From: tangxinyue <524779910@qq.com>
Date: Wed, 11 Mar 2026 18:31:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=9F=AD=E4=BF=A1=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/main.css | 1 +
components/message/chat/chat-layout.vue | 275 +++++++
components/message/list.vue | 145 ----
components/message/list/list.vue | 717 ++++++++++++++++++
.../message/{ => list}/message-nav-bar.vue | 150 ++--
main.js | 2 +-
pages.json | 18 +-
pages/message/chat-page/chat-page.vue | 36 +
pages/message/list-index.vue | 109 ++-
.../fliggy-train-tickets.vue | 4 +-
.../qunar-train-tickets.vue | 2 +-
static/image/phone-message/bianji.png | Bin 0 -> 930 bytes
static/image/phone-message/huawei/default.png | Bin 0 -> 1895 bytes
static/image/phone-message/huawei/delete.png | Bin 0 -> 1994 bytes
static/image/phone-message/huhuan.png | Bin 0 -> 1605 bytes
.../image/phone-message/iphone/chat-left.png | Bin 0 -> 1125 bytes
.../phone-message/iphone/left-msg-box.png | Bin 0 -> 818 bytes
.../phone-message/iphone/right-msg-box.png | Bin 0 -> 832 bytes
static/image/phone-message/iphone/right.png | Bin 0 -> 821 bytes
static/image/phone-message/mi/back.png | Bin 0 -> 983 bytes
static/image/phone-message/mi/chat-left.png | Bin 0 -> 1222 bytes
static/image/phone-message/mi/default.png | Bin 0 -> 1709 bytes
static/image/phone-message/mi/mic.png | Bin 0 -> 2200 bytes
static/image/phone-message/oppo/chat-left.png | Bin 0 -> 1316 bytes
static/image/phone-message/oppo/default.png | Bin 0 -> 1611 bytes
static/image/phone-message/shanchu.png | Bin 0 -> 1065 bytes
static/image/phone-message/vivo/default.png | Bin 0 -> 1911 bytes
utils/common.js | 58 ++
28 files changed, 1298 insertions(+), 219 deletions(-)
create mode 100644 components/message/chat/chat-layout.vue
delete mode 100644 components/message/list.vue
create mode 100644 components/message/list/list.vue
rename components/message/{ => list}/message-nav-bar.vue (72%)
create mode 100644 pages/message/chat-page/chat-page.vue
create mode 100644 static/image/phone-message/bianji.png
create mode 100644 static/image/phone-message/huawei/default.png
create mode 100644 static/image/phone-message/huawei/delete.png
create mode 100644 static/image/phone-message/huhuan.png
create mode 100644 static/image/phone-message/iphone/chat-left.png
create mode 100644 static/image/phone-message/iphone/left-msg-box.png
create mode 100644 static/image/phone-message/iphone/right-msg-box.png
create mode 100644 static/image/phone-message/iphone/right.png
create mode 100644 static/image/phone-message/mi/back.png
create mode 100644 static/image/phone-message/mi/chat-left.png
create mode 100644 static/image/phone-message/mi/default.png
create mode 100644 static/image/phone-message/mi/mic.png
create mode 100644 static/image/phone-message/oppo/chat-left.png
create mode 100644 static/image/phone-message/oppo/default.png
create mode 100644 static/image/phone-message/shanchu.png
create mode 100644 static/image/phone-message/vivo/default.png
diff --git a/common/main.css b/common/main.css
index a4d30ce..6e7522f 100644
--- a/common/main.css
+++ b/common/main.css
@@ -261,6 +261,7 @@
}
.flex-column {
+ display: flex;
flex-direction: column;
}
diff --git a/components/message/chat/chat-layout.vue b/components/message/chat/chat-layout.vue
new file mode 100644
index 0000000..13e456d
--- /dev/null
+++ b/components/message/chat/chat-layout.vue
@@ -0,0 +1,275 @@
+
+
+
+
+
+
+
+
+
+
+ 256
+
+
+
+
+
+
+
+
+ {{ chatInfo.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/message/list.vue b/components/message/list.vue
deleted file mode 100644
index c3ed4c8..0000000
--- a/components/message/list.vue
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- title
- 昨天
-
- 市燃管办温馨提示:依法安全文明燃放烟花爆竹,共护平安幸福家园呵呵哈哈哈还好...
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/message/list/list.vue b/components/message/list/list.vue
new file mode 100644
index 0000000..2ff0886
--- /dev/null
+++ b/components/message/list/list.vue
@@ -0,0 +1,717 @@
+
+
+
+
+
+
+
+
+
+ {{ item.unReadNumber
+ > 99
+ ? '99+' : (item.unReadNumber || 1) }}
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ formatDate(item.time) }}
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/message/message-nav-bar.vue b/components/message/list/message-nav-bar.vue
similarity index 72%
rename from components/message/message-nav-bar.vue
rename to components/message/list/message-nav-bar.vue
index de19cf2..977d2ec 100644
--- a/components/message/message-nav-bar.vue
+++ b/components/message/list/message-nav-bar.vue
@@ -1,57 +1,65 @@
-
-
-
-
-
- 过滤条件
-
-
- 信息
-
-
-
-
-
- 信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 过滤条件
+
+
+ 信息
+
+
+
+
+
+ 信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,6 +76,7 @@
+
@@ -110,6 +119,14 @@ const props = defineProps({
}
})
+
+const data = reactive({
+ navBar: {
+ title: '信息',
+ bgColor: '#FFFFFF',
+ }
+})
+
// 展示文字信息
const showInfo = computed(() => {
let text, placeholder, secondText, bottomLtext, bottomRtext
@@ -117,6 +134,7 @@ const showInfo = computed(() => {
case "iphone":
text = "信息"
placeholder = '搜索'
+ data.navBar.bgColor = '#F8F8F8'
break;
case "mi":
text = "主要"
@@ -144,12 +162,6 @@ const showInfo = computed(() => {
return { text, placeholder, secondText, bottomLtext, bottomRtext }
})
-const data = reactive({
- navBar: {
- title: '信息',
- bgColor: '#FFFFFF',
- }
-})
diff --git a/pages/message/list-index.vue b/pages/message/list-index.vue
index 34745c5..2f60a02 100644
--- a/pages/message/list-index.vue
+++ b/pages/message/list-index.vue
@@ -1,17 +1,14 @@
-
-
-
-
+