From e29618e5d44e9e03fa481076eface607c04c74d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Sat, 18 Mar 2023 23:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF=EF=BC=9A?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5=E7=BE=8E=E5=8C=96?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin-miniprogram/pages/shop/goodDetail.wxml | 30 +++++++- weixin-miniprogram/pages/shop/goodDetail.wxss | 77 ++++++++++++++++++- weixin-miniprogram/pages/shop/shop.wxss | 1 + 3 files changed, 101 insertions(+), 7 deletions(-) diff --git a/weixin-miniprogram/pages/shop/goodDetail.wxml b/weixin-miniprogram/pages/shop/goodDetail.wxml index 216a329..600c8b2 100644 --- a/weixin-miniprogram/pages/shop/goodDetail.wxml +++ b/weixin-miniprogram/pages/shop/goodDetail.wxml @@ -1,5 +1,5 @@ - + @@ -13,8 +13,32 @@ ¥ {{ goodinfo.retailPrice }} - - {{ goodinfo.goodsName }} + + + + {{ goodinfo.brief || goodinfo.goodsName }} + + + + + 商品名称:{{ goodinfo.goodsName }} + + + 商品描述:{{ goodinfo.brief || "暂无" }} + + + 商品介绍:{{ goodinfo.detail || "暂无" }} + + + 没有更多啦 + + + + + + + 加入购物车 + 立即下单 \ No newline at end of file diff --git a/weixin-miniprogram/pages/shop/goodDetail.wxss b/weixin-miniprogram/pages/shop/goodDetail.wxss index 8488725..8e10f87 100644 --- a/weixin-miniprogram/pages/shop/goodDetail.wxss +++ b/weixin-miniprogram/pages/shop/goodDetail.wxss @@ -1,11 +1,18 @@ /* pages/shop/goodDetail.wxss */ +.good-wapper { + height: 100%; + max-height: calc(100vh - 63px); + /* 6px + 44px + 12px */ + overflow-y: scroll; +} + .good-image { width: 100%; height: 100vw; } .good-detail { - padding: 5px 18px; + padding: 5px 20px 24px 20px; } /* 商品价格 */ @@ -56,13 +63,75 @@ /* 商品标题 */ .good-title { - width: 600rpx; - font-weight: 500; + margin: 8px 3px; + width: 100%; + font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; - font-size: 32rpx; + font-size: 36rpx; word-break: break-all; color: #333333; } + +/* 商品描述 */ +.good-breif { + margin: 8px 3px; + font-weight: 500; + font-size: 32rpx; + line-height: 2em; +} + +/* 没有更多 */ +.no-more { + text-align: center; + color: grey; + margin: 20px; + font-size: small; +} + + + + +/* 屏幕底部 下单按钮 */ +.bottom-controlbox { + background-color: white; + position: fixed; + z-index: 999; + bottom: 0; + left: 0; + right: 0; + width: 100%; + padding-top: 6px; + padding-bottom: 12px; + border-top: 1px solid grey; + text-align: center; +} + +.bottom-buttons { + height: 100%; + /* background-color: bisque; */ + display: inline-block; +} + +.btn { + width: 254rpx; + height: 80rpx; + display: inline-grid; + align-items: center; + justify-content: center; + color: white; +} + +#btn-buy { + background-color: #fa4126; + color: #fff; + border-radius: 0rpx 40rpx 40rpx 0rpx; +} + +#btn-addcart { + background: #ffece9; + color: #fa4126; + border-radius: 40rpx 0 0 40rpx; +} diff --git a/weixin-miniprogram/pages/shop/shop.wxss b/weixin-miniprogram/pages/shop/shop.wxss index f22c665..80a8b73 100644 --- a/weixin-miniprogram/pages/shop/shop.wxss +++ b/weixin-miniprogram/pages/shop/shop.wxss @@ -80,6 +80,7 @@ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .2); } +/* 没有更多 */ .no-more { text-align: center; color: grey;