From ecbc81c918a288dc752b1634b3f545f795d992aa Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 20 三月 2024 16:15:41 +0800 Subject: [PATCH] 图书分类,图书列表样式修改,答题器优化 --- pages/bookServices/assort/index.wxss | 60 +++++++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 45 insertions(+), 15 deletions(-) diff --git a/pages/bookServices/assort/index.wxss b/pages/bookServices/assort/index.wxss index 184d7ef..f065f59 100644 --- a/pages/bookServices/assort/index.wxss +++ b/pages/bookServices/assort/index.wxss @@ -13,14 +13,12 @@ left: 0; width: 100%; z-index: 99; - font-size: 28rpx; + --td-search-font-size: 28rpx; } -.placeholder { - font-size: 28rpx; -} -.page-header .t-search__input-container { +.page-header .search .t-search__input-container { + font-size: 28rpx !important; border-radius: 15rpx !important; margin: 0 24rpx; height: 64rpx !important; @@ -29,15 +27,17 @@ .page-container { padding: 120rpx 0 20rpx 0; width: 100%; + height: 90%; } .side-bar-wrapper { + height: 100%; background-color: #f2f3f8; display: flex; } .side-bar-content { - width: 70%; + width: 100%; padding: 0 20rpx; } @@ -88,19 +88,20 @@ .class-list { /* overflow-y: auto; */ - height: 72.5vh; - width: 262px; + height: calc(100vh - 326rpx); + width: calc(100vw - 210rpx); } .class-box { background-color: #fff; - margin-bottom: 10rpx; + margin-bottom: 20rpx; padding: 10rpx 12rpx; border-radius: 12rpx; - /* height: 60rpx; */ } + .class-name { + padding: 20rpx 0 0 20rpx; font-size: 32rpx; font-weight: 700; } @@ -113,8 +114,11 @@ } .book-box { - width: 48%; - margin: 0 10rpx 20rpx 0 + display: flex; + flex-direction: column; + align-items: center; + width: 50%; + margin-bottom: 26rpx; } .book-box:nth-child(2n) { @@ -123,13 +127,39 @@ .book-box image { height: 142rpx; - object-fit: contain; + object-fit: contain !important; } .classify { max-width: 90%; - white-space: nowrap; + word-break: break-all; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; overflow: hidden; - text-overflow: ellipsis; font-size: 14px; +} + +.assort-img { + width: 116rpx; + height: 142rpx; + box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.16); + margin-bottom: 20rpx; +} + +.page-right { + width: 100%; +} + +.loading-box { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + --td-loading-color: #ff6c00; +} + +.bottom-box { + height: 40rpx; } \ No newline at end of file -- Gitblit v1.9.1