From 672575a32ecd7f8e0bcd76152040657e9e57328a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 12 四月 2024 16:36:41 +0800 Subject: [PATCH] 骨架屏样式优化 --- pages/home/home.wxss | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/pages/home/home.wxss b/pages/home/home.wxss index eff074d..b7a1c52 100644 --- a/pages/home/home.wxss +++ b/pages/home/home.wxss @@ -1,3 +1,5 @@ +@import "./home.skeleton.wxss"; + .background { width: 100%; position: fixed; @@ -58,7 +60,40 @@ .home-page-header .swiper-wrap { margin-top: 30rpx; margin-bottom: 10rpx; + height: 380rpx; + width: 100%; + border-radius: 18rpx; + overflow: hidden; + display: flex; + align-items: center; + justify-content: center; + background: #f6f6f6; } + +.swiper { + height: 380rpx; + width: 100%; +} + +.swiperItem { + position: relative; + height: 380rpx; + width: 100%; +} + +.swiper .img { + max-width: 100% !important; + /* max-height: 100% !important; */ + width: auto !important; + /* height: auto !important; */ + position: absolute !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + bottom: 0 !important; + margin: auto !important; +} + .home-page-menu .t-grid--card { margin: 0; @@ -149,7 +184,7 @@ justify-content: space-between; } -.listBox .listItemBox { +.listBox .listItemBox { width: 49%; margin-bottom: 30rpx; } @@ -230,7 +265,7 @@ background-repeat: no-repeat; background-size: 40% 64%; background-position: right; - background-image: url(http://jsysf.bnuic.com/website/image/click-icon.png); + background-image: url(https://jsek.bnuic.com/website/image/click-icon.png); } .t-tabs .t-tabs__track { -- Gitblit v1.9.1