From 3d73fb33c46aada16a6060adcd4ea14bb33b6b2a Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 09 四月 2024 10:39:11 +0800 Subject: [PATCH] 详情页tabs样式优化,答题添加页面退出拦截,合并代码 --- pages/cart/index.wxss | 68 ++++++++++++++++++++++----------- 1 files changed, 45 insertions(+), 23 deletions(-) diff --git a/pages/cart/index.wxss b/pages/cart/index.wxss index 88ecf3a..8e0fe3b 100644 --- a/pages/cart/index.wxss +++ b/pages/cart/index.wxss @@ -25,30 +25,26 @@ } .outsideContentBox { - padding: 30rpx; + /* padding: 30rpx; */ background: #F2F3F8; border-radius: 18rpx 18rpx 18rpx 18rpx; padding-bottom: 325rpx; - /* height: 260rpx; */ + height: calc(100vh - 250rpx); + /* width: calc(100vw - 60rpx); */ + } .bottomBox { - /* position: fixed; - left: 0; - right: 0; - bottom: calc(env(safe-area-inset-bottom) + 88rpx); */ - height: 120rpx; + + /* height: 135rpx; */ + height: 100rpx; background: #FFFFFF; - box-shadow: 0rpx -2rpx 0rpx 2rpx rgba(0, 0, 0, 0.08); display: flex; align-items: center; position: fixed; - bottom: 0; + bottom: calc(env(safe-area-inset-bottom) + 100rpx); left: 0; right: 0; - height: 44px; - padding-bottom: 80px; - padding-top: 10rpx; } .checkGroupBox { @@ -125,6 +121,7 @@ margin: 30rpx 0; border-radius: 18rpx 18rpx 18rpx 18rpx; height: 260rpx; + } .totalPriceText { @@ -150,7 +147,8 @@ .contentCheckbox { - width: 100rpx; + /* width: 100rpx; */ + margin-right: 30rpx; } .left-icon { @@ -162,8 +160,9 @@ .left-image { width: 152rpx; height: 212rpx; - background: #FFFFFF; + /* background: #FFFFFF; */ border-radius: 0rpx 0rpx 0rpx 0rpx; + box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.16); } .imageStyle { @@ -216,12 +215,18 @@ } .eBook { - width: 90%; - height: 100%; + width: 85rpx; + height: 38rpx; background: #FF6C00; text-align: center; line-height: 38rpx; border-radius: 9rpx; + color: #fff; + padding: 5rpx; + font-size: 22rpx; + font-weight: 400; + + } .cloudLearning { @@ -231,21 +236,33 @@ text-align: center; line-height: 38rpx; border-radius: 9rpx; + color: #fff; + padding: 5rpx; + font-size: 22rpx; + font-weight: 400; } .boosName { - width: 100%; + font-family: PingFang SC, PingFang SC; + font-weight: bold; + font-size: 29rpx; + margin: 0 10rpx; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + + +} + +/* overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - font-family: PingFang SC, PingFang SC; - font-weight: bold; - font-size: 29rpx; - color: #333333; -} + -webkit-line-clamp: 2; */ +/* display: inline; */ .textBox { font-family: PingFang SC, PingFang SC; font-weight: 400; @@ -255,6 +272,7 @@ margin-bottom: 20rpx; } + .bottom-box { display: flex; justify-content: center; @@ -262,4 +280,8 @@ height: 80rpx; font-size: 28rpx; --td-loading-color: #ff6c00 +} + +.t-checkbox__content { + height: 0rpx !important; } \ No newline at end of file -- Gitblit v1.9.1