From 45ee9b7285e5822879731e8a584daf14e09c30ba Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Thu, 16 Oct 2025 16:55:32 +0800 Subject: [PATCH] commit --- .../app/sys/controller/SysHomeController.java | 4 + .../proposal/transact/suggestion/index.html | 231 ++++++++++++++++++ .../views/platform/zhghh5/sys/home/apps.js | 4 +- .../views/platform/zhghh5/sys/home/home.js | 22 +- .../views/platform/zhghh5/sys/home/index.html | 6 +- .../views/platform/zhghh5/sys/home/mine.js | 6 +- .../views/platform/zhghh5/sys/home/msg.js | 3 +- .../views/platform/zhghh5/sys/home/todo.js | 2 +- 8 files changed, 264 insertions(+), 14 deletions(-) create mode 100644 src/main/resources/views/platform/zhgh/democratic/proposal/transact/suggestion/index.html diff --git a/src/main/java/com/budwk/app/sys/controller/SysHomeController.java b/src/main/java/com/budwk/app/sys/controller/SysHomeController.java index 1c586cb1..7e7bba02 100644 --- a/src/main/java/com/budwk/app/sys/controller/SysHomeController.java +++ b/src/main/java/com/budwk/app/sys/controller/SysHomeController.java @@ -208,6 +208,10 @@ public class SysHomeController { // if (!DateUtil.isIn(today, startDate, endDate)) { // continue; // } + // 只过滤结束的 + if (DateUtil.compare(today, endDate) > 0) { + continue; + } Integer allowUserGroupId = activity.getAllowUserGroupId(); String allowUserSql = activity.getAllowUserSql(); activity.setAllowUserSql(null); diff --git a/src/main/resources/views/platform/zhgh/democratic/proposal/transact/suggestion/index.html b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/suggestion/index.html new file mode 100644 index 00000000..135847f8 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/democratic/proposal/transact/suggestion/index.html @@ -0,0 +1,231 @@ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 已审核 + 未审核 + + + + + + + + + + + + + + + + + + +
+ + + + diff --git a/src/main/resources/views/platform/zhghh5/sys/home/apps.js b/src/main/resources/views/platform/zhghh5/sys/home/apps.js index da64c140..6e477ad7 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/apps.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/apps.js @@ -177,9 +177,9 @@ const apps = { // 如果是"推荐应用"分类 if (this.currentCategoryId === "recommended") { - this.$axios.post("/platform/v4/apps/recommended").then((result) => { + this.$axios.post("/platform/home/listRecommendApp", { platform: "H5" }).then((result) => { if (result.code === 0) { - this.applications = result.data.list || [] + this.applications = result.data || [] } else { console.error("获取推荐应用失败:", result.msg) } diff --git a/src/main/resources/views/platform/zhghh5/sys/home/home.js b/src/main/resources/views/platform/zhghh5/sys/home/home.js index 19992bcc..cb8c2683 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/home.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/home.js @@ -16,7 +16,7 @@ const home = {
-
快速入口
+
推荐服务
- + 进行中 + + + 即将开始 +
@@ -68,7 +73,7 @@ const home = { }, methods: { listRecommendApp() { - this.$axios.post("/platform/home/listRecommendApp", { platform: "H5" }).then((res) => { + this.$axios.post("/platform/home/listRecommendService", { platform: "H5" }).then((res) => { if (res.code === 0) { this.quickEntries = res.data } @@ -178,8 +183,17 @@ const home = { } .section-title{ - padding: 10px 0 5px 10px; + padding: 0 0 5px 5px; + font-size: 15px; } + /deep/ .home__swipe img { + width: 100%; + height: 100%; + } + + /deep/ .act-item-cover img { + border-radius: 8px; + } ` } diff --git a/src/main/resources/views/platform/zhghh5/sys/home/index.html b/src/main/resources/views/platform/zhghh5/sys/home/index.html index c98ce742..71be0721 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/index.html +++ b/src/main/resources/views/platform/zhghh5/sys/home/index.html @@ -23,10 +23,10 @@ layout("/layouts/platform_h5.html"){
首页 - 应用 + 应用 - 待办 - 消息 + 待办 + 消息 我的
diff --git a/src/main/resources/views/platform/zhghh5/sys/home/mine.js b/src/main/resources/views/platform/zhghh5/sys/home/mine.js index 4f5ec303..e7ffef9a 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/mine.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/mine.js @@ -116,7 +116,7 @@ const mine = { } .profile-card { - margin: 16px; + margin: 10px; padding: 20px; background: white; border-radius: 12px; @@ -224,7 +224,7 @@ const mine = { border-top: 1px solid #f5f5f5; display: flex; flex-direction: column; - gap: 16px; + gap: 0; } .info-item { @@ -259,7 +259,7 @@ const mine = { } .action-cards { - margin: 16px; + margin: 10px; animation: slideUp 0.3s ease-out; } diff --git a/src/main/resources/views/platform/zhghh5/sys/home/msg.js b/src/main/resources/views/platform/zhghh5/sys/home/msg.js index a60a439d..1e5d2f31 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/msg.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/msg.js @@ -56,6 +56,7 @@ const msg= {