From 7b85a378c1c524aa754094424a91c77a5f51ba66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Wed, 22 Feb 2023 09:02:25 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/site/site.scss | 8 +++++++-
pages/site/site.vue | 17 ++++++++++++++++-
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/pages/site/site.scss b/pages/site/site.scss
index 629d197..38b1cbe 100644
--- a/pages/site/site.scss
+++ b/pages/site/site.scss
@@ -3,6 +3,13 @@
padding: 0;
background-color: #fff;
}
+ ::v-deep .u-swiper-item{
+ width: 94% !important;
+ left:3%;
+ }
+ ::v-deep .u-swiper-image {
+ height: 90% !important;
+ }
::v-deep .u-tabs{
background-color: #F4F5F7 !important;
padding-bottom: 20rpx;
@@ -10,7 +17,6 @@
.Classificationlist{
margin: 30rpx 0 0;
width: 100%;
- height: 380rpx;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
diff --git a/pages/site/site.vue b/pages/site/site.vue
index 7981ed3..6d0ac8a 100644
--- a/pages/site/site.vue
+++ b/pages/site/site.vue
@@ -12,12 +12,18 @@
{{item.classifyName}}
-
+
更多
+
+
+
+ 收起
+
+
@@ -79,6 +85,7 @@
conNewcurrent: 0,
nurseItemClassifyInfoList: [], //护理项目分类
nurseItemClassifyInfolength: 0,
+ nurseItemClassifyInfolistlength: [],
lbinfo: [], //轮播list
nursestationlist: [],
mask: false,
@@ -95,6 +102,13 @@
}
},
methods: {
+ lengthlist(item) {
+ if (item) {
+ this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength
+ } else {
+ this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7)
+ }
+ },
//点击护理项目分类
tapitemclass(item) {
if (this.itemClassId == item.id) {
@@ -122,6 +136,7 @@
e.image = baseurl + e.posterPictureUrl
})
this.nurseItemClassifyInfolength = res.data.nurseItemClassifyInfoList.length
+ this.nurseItemClassifyInfolistlength = res.data.nurseItemClassifyInfoList
this.lbinfo = res.data.poserInfoList
this.nurseItemClassifyInfoList = res.data.nurseItemClassifyInfoList.slice(0, 7)
})