From 0977d6020e3392de34b7be439b1d4172af3b5653 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Tue, 8 Apr 2025 10:28:33 +0800
Subject: [PATCH] =?UTF-8?q?feat(common):=20=E6=96=B0=E5=A2=9E=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=B9=B6=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E7=B3=BB=E7=BB=9F=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增文章详情页面(article_info.vue)- 重构系统消息列表(sys_msg_list.vue),添加滚动加载功能- 修改我的消息(my_message.vue)和IM聊天信息(im_chat_info.vue)的跳转逻辑
---
pages.json | 9 ++
pages/common/article_info.vue | 193 ++++++++++++++++++++++++++++++++++
pages/common/im_chat_info.vue | 2 +-
pages/common/my_message.vue | 13 +--
pages/common/sys_msg_list.vue | 189 ++++++++++++++++++---------------
5 files changed, 314 insertions(+), 92 deletions(-)
create mode 100644 pages/common/article_info.vue
diff --git a/pages.json b/pages.json
index ced5360..7ad7c82 100644
--- a/pages.json
+++ b/pages.json
@@ -135,6 +135,15 @@
"navigationBarTextStyle": "black"
}
},
+ {
+ "path" : "pages/common/article_info",
+ "style": {
+ "navigationBarTitleText": "文章详情",
+ "navigationStyle": "default",
+ "navigationBarBackgroundColor": "#292929",
+ "navigationBarTextStyle": "white"
+ }
+ },
{
"path" : "pages/common/feedback",
"style": {
diff --git a/pages/common/article_info.vue b/pages/common/article_info.vue
new file mode 100644
index 0000000..7765b5f
--- /dev/null
+++ b/pages/common/article_info.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+ {{dataInfo.title}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/common/im_chat_info.vue b/pages/common/im_chat_info.vue
index 412573b..239f6c0 100644
--- a/pages/common/im_chat_info.vue
+++ b/pages/common/im_chat_info.vue
@@ -112,7 +112,7 @@ export default {
this.filteredData.total = 10//数据总条数
},
- //获取作业列表
+ //获取列表
async getList(){
this.loading = true
diff --git a/pages/common/my_message.vue b/pages/common/my_message.vue
index 761727c..6e9b765 100644
--- a/pages/common/my_message.vue
+++ b/pages/common/my_message.vue
@@ -139,21 +139,22 @@ export default {
},
//跳转页面-系统消息列表
- openViewSysMsgList(){
+ openViewSysMsgList(e){
+ let hair_staff_id = e.hair_staff_id//发信人id
uni.navigateTo({
- url: `/pages/common/sys_msg_list`
+ url: `/pages/common/sys_msg_list?hair_staff_id=${hair_staff_id}`
})
},
//跳转页面-聊天页面
- openViewImChatInfo(v){
+ openViewImChatInfo(e){
- if(v.type == 1){
+ if(e.type == 1){
//系统消息
- this.openViewSysMsgList
+ this.openViewSysMsgList(e)
}else{
//站内信
- let hair_staff_id = v.hair_staff_id//发信人id
+ let hair_staff_id = e.hair_staff_id//发信人id
uni.navigateTo({
url: `/pages/common/im_chat_info?hair_staff_id=${hair_staff_id}`
})
diff --git a/pages/common/sys_msg_list.vue b/pages/common/sys_msg_list.vue
index 48f8097..10e61ad 100644
--- a/pages/common/sys_msg_list.vue
+++ b/pages/common/sys_msg_list.vue
@@ -3,122 +3,140 @@
-
-
- 吾悦校区停电通知
-
-
-
- 李老师将张包子的跟进人设置为您,需要您
- 继续跟进,点击此消息查看张包子的信息,完
- 成后续跟进
-
-
- 2024-03-07 10:30:00
+
+
+ {{v.title}}
+
+
+
+
+
+
+
+
+ {{v.show_time}}
-
- 吾悦校区停电通知
-
-
-
- 2024-03-07 10:30:00
-
-
-
- 吾悦校区停电通知
-
-
-
- 李老师将张包子的跟进人设置为您,需要您
- 继续跟进,点击此消息查看张包子的信息,完
- 成后续跟进
-
-
- 2024-03-07 10:30:00
-
-
+