From 347917e40a9b7e33537609c7ef1503b31c72030d Mon Sep 17 00:00:00 2001
From: zhouyanli <593579392@qq.com>
Date: Thu, 23 Apr 2026 11:30:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=85=AC=E5=91=8A=E4=BB=A5?=
=?UTF-8?q?=E5=8F=8A=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pageSubPack/api/api.js | 4 +-
.../pageSubPack/api/request.js | 1 +
.../pageSubPack/notice-list/noticeList.vue | 581 ++++++------------
.../notice-list/noticeListDetails.vue | 44 +-
.../pageSubPack/notice-list/selectHome.vue | 5 +-
property-uniapp-project/pages/index/index.vue | 1 +
6 files changed, 235 insertions(+), 401 deletions(-)
diff --git a/property-uniapp-project/pageSubPack/api/api.js b/property-uniapp-project/pageSubPack/api/api.js
index 896602a..71fd9ed 100644
--- a/property-uniapp-project/pageSubPack/api/api.js
+++ b/property-uniapp-project/pageSubPack/api/api.js
@@ -45,4 +45,6 @@ export const getNoticeList = (data) =>{
return get('/api/resident/notice/list',data)
}
// 获取公告详情
-// export const getNoticeDetails =
\ No newline at end of file
+export const getNoticeDetails = (noticeId) =>{
+ return get(`/api/resident/notice/${noticeId}`)
+}
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/api/request.js b/property-uniapp-project/pageSubPack/api/request.js
index 7dfb08f..37d6624 100644
--- a/property-uniapp-project/pageSubPack/api/request.js
+++ b/property-uniapp-project/pageSubPack/api/request.js
@@ -68,6 +68,7 @@ export default function request(url, data = {}, method = "GET") {
},
fail: (err) => {
uni.hideLoading(); // 关闭加载提示
+ const errMsg = err.msg || '网络请求失败';
uni.showToast({ title: errMsg, icon: "none", duration: 2000 });
reject(err);
}
diff --git a/property-uniapp-project/pageSubPack/notice-list/noticeList.vue b/property-uniapp-project/pageSubPack/notice-list/noticeList.vue
index 83824db..f06d9f4 100644
--- a/property-uniapp-project/pageSubPack/notice-list/noticeList.vue
+++ b/property-uniapp-project/pageSubPack/notice-list/noticeList.vue
@@ -1,429 +1,230 @@
-
-
-
-
-
-
-
-
-
-
- 刷新中...
-
+
+
+
+
-
-
-
-
+
+
+
+
+
+ 刷新中...
+
-
-
-
-
-
-
- {{notice.author}}
- ·
- {{notice.publishTime}}
-
-
-
-
-
- {{ notice.noticeContent }}
-
-
-
-
-
- 详情
-
-
-
-
-
-
-
-
-
-
-
- 加载中...
-
-
-
-
- 没有更多通知了
-
-
-
-
-
- 暂无通知
-
-
-
+
+
+
+ {{ notice.noticeTitle }}
+
+
+ {{ notice.author }} · {{ notice.publishTime }}
+ {{ notice.noticeContent }}
+
+ 详情
+
+
+
+
+ 加载中...
+ 没有更多通知了
+
+ 暂无通知
+
+
+
+
+
+.refresh-btn {
+ background: #007AFF;
+ color: #fff;
+ border-radius: 50rpx;
+ padding: 10rpx 30rpx;
+ margin-top: 20rpx;
+}
+.spin {
+ animation: rotate 1s linear infinite;
+}
+@keyframes rotate {
+ 0% { transform: rotate(0deg); }
+ 100% { transform: rotate(360deg); }
+}
+
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue b/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue
index 7d51c22..41ff285 100644
--- a/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue
+++ b/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue
@@ -5,25 +5,22 @@
- 以实干担当不断开创中国特色大国外交新局面
+ {{noticeDetail.noticeTitle}}
- 张三
+ {{noticeDetail.author}}
·
- 2026.3.6
+ {{noticeDetail.publishTime}}
- 学习贯彻习近平新时代中国特色社会主义思想主题教育开展以来,外交外事战线认真学习贯彻习近平总书记重要讲话精神和党中央部署要求,
- 全面准确把握目标要求,紧密联系实际,精心组织、周密部署,紧密结合外交中心工作开展主题教育,
- 坚持学思用贯通、知信行统一,把习近平新时代中国特色社会主义思想转化为坚定理想、锤炼党性和指导实践、
- 推动工作的强大力量,以实干担当不断开创中国特色大国外交新局面。
+ {{noticeDetail.noticeContent}}
@@ -76,13 +73,44 @@