From 686f0699e3c869843cce2cfe22bd7051c9b326b1 Mon Sep 17 00:00:00 2001 From: Default User Date: Sat, 17 Jan 2026 09:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A7=84=E6=A0=BC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=A0=B7=E5=BC=8F=EF=BC=9A=E5=88=86=E7=A6=BB=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=92=8C=E4=BB=B7=E6=A0=BC=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E4=BD=93=E4=B8=BA=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E5=B7=B4=E5=B7=B4=E6=99=AE=E6=83=A0=E4=BD=93=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=A2=9C=E8=89=B2=E5=92=8C=E7=B2=97=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-detail/goods-detail.js | 1 + pages/goods-detail/goods-detail.wxml | 6 +++++- pages/goods-detail/goods-detail.wxss | 30 ++++++++++++++++++++++++++-- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js index 1e84ed8..c1da01f 100644 --- a/pages/goods-detail/goods-detail.js +++ b/pages/goods-detail/goods-detail.js @@ -436,6 +436,7 @@ function processWeightAndQuantityData(weightSpecString, quantityString, specStri result.push({ weightSpec: weightSpecDisplay, quantity: quantity, + price: price, display: display }); } diff --git a/pages/goods-detail/goods-detail.wxml b/pages/goods-detail/goods-detail.wxml index 72d8e59..07e08d0 100644 --- a/pages/goods-detail/goods-detail.wxml +++ b/pages/goods-detail/goods-detail.wxml @@ -117,7 +117,11 @@ - {{item.display}} + + + {{item.weightSpec}}【{{item.quantity}}件】 + ¥{{item.price}}元 + diff --git a/pages/goods-detail/goods-detail.wxss b/pages/goods-detail/goods-detail.wxss index d3338db..9a21122 100644 --- a/pages/goods-detail/goods-detail.wxss +++ b/pages/goods-detail/goods-detail.wxss @@ -1,5 +1,14 @@ /* pages/goods-detail/goods-detail.wxss */ +/* 引入阿里巴巴普惠体 */ +@font-face { + font-family: 'AlibabaPuHuiTi'; + src: url('https://at.alicdn.com/t/c/font_4596467_7k3j4t9v1i.woff2') format('woff2'), + url('https://at.alicdn.com/t/c/font_4596467_7k3j4t9v1i.woff') format('woff'); + font-weight: normal; + font-style: normal; +} + /* 页面容器 */ .goods-detail-page { min-height: 100vh; @@ -7,6 +16,11 @@ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; } +/* 规格信息字体设置 */ +.goods-detail-content .weight-quantity-info .wq-list .wq-item { + font-family: 'AlibabaPuHuiTi', sans-serif; +} + /* 弹窗显示时固定页面滚动 */ .no-scroll { overflow: hidden !important; @@ -752,10 +766,22 @@ video.slider-media .wx-video-volume-icon { } .wq-text { - font-size: 20px; - color: #595959; line-height: 1.5; font-weight: 600; + color: #595959; +} + +.wq-spec { + font-size: 20px; + color: #333333; + font-weight: 500; +} + +.wq-price { + font-size: 18px; + color: #666666; + font-weight: 400; + margin-left: 10rpx; } /* 对比价格弹窗样式 */