From c3174d280941461896229b4b157b331a6ad4228d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com>
Date: Mon, 22 Sep 2025 10:20:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=B0=E5=AE=B6=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E7=9A=84=E9=A1=B6=E9=83=A8=E5=88=86=E7=B1=BB=E9=80=BB?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/homeServer/index/index.css | 74 +++++++++++
packages/homeServer/index/index.vue | 188 +++++++++++-----------------
packages/localLife/index/index.vue | 5 +-
3 files changed, 151 insertions(+), 116 deletions(-)
diff --git a/packages/homeServer/index/index.css b/packages/homeServer/index/index.css
index 16fc9b38..1548c5a3 100644
--- a/packages/homeServer/index/index.css
+++ b/packages/homeServer/index/index.css
@@ -393,4 +393,78 @@
.toUp image {
width: 100%;
height: 100%;
+}
+
+/* swiperBox 样式 - 与 localLife 页面保持一致 */
+/* swiperBox 样式 - 每行展示5个,平均分配空间 */
+.swiperBox {
+ height: 350rpx;
+ width: 100%;
+ position: relative;
+}
+
+.swiper {
+ height: 350rpx;
+ width: 100%;
+}
+
+.navList {
+ display: flex;
+ flex-wrap: wrap;
+ box-sizing: border-box;
+ height: 350rpx;
+ width: 100%;
+ padding: 30rpx 20rpx;
+ background-color: #fff;
+ margin-top: 20rpx;
+}
+
+.navItem {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ width: 20%; /* 每行5个,平均分配宽度 */
+ height: 105rpx;
+ margin-bottom: 43rpx;
+ box-sizing: border-box;
+}
+
+.navItemImg {
+ width: 70rpx;
+ height: 70rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.navItem image {
+ width: 70rpx;
+ height: 70rpx;
+}
+
+.dot {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-top: 20rpx;
+ position: absolute;
+ left: 50%;
+ bottom: 25rpx;
+ transform: translateX(-50%);
+}
+
+.dotItem {
+ width: 8rpx;
+ height: 8rpx;
+ border-radius: 50%;
+ background-color: #E6E6E6;
+ margin-right: 5rpx;
+}
+
+.actives {
+ width: 20rpx;
+ height: 8rpx;
+ background: #FF370B;
+ border-radius: 10rpx 10rpx 10rpx 10rpx;
}
\ No newline at end of file
diff --git a/packages/homeServer/index/index.vue b/packages/homeServer/index/index.vue
index 5f5462d3..b801aab2 100644
--- a/packages/homeServer/index/index.vue
+++ b/packages/homeServer/index/index.vue
@@ -13,25 +13,30 @@
-
+
请输入您要找的服务
-
-
-
-
- {{ item.name }}
+
+
+
+
+
+
+
+
+
+ {{ item.cate_name }}
+
+
+
+
+
+
+
@@ -40,41 +45,29 @@
到家
公告
-
+
|
- 公告内容公告内容公告内容公告内容...
-
+ 公告内容公告内容公告内容公告内容...
+
-
+
-
+
@@ -82,49 +75,35 @@
-
+
立即联系
未找到您需要的服务?
-
+
-
-
+
+
{{ service.name }}
-
+
{{ service.tag }}
@@ -132,10 +111,7 @@