diff --git a/pages/compare_price/index.wxml b/pages/compare_price/index.wxml index 42bd054..f4f5a72 100644 --- a/pages/compare_price/index.wxml +++ b/pages/compare_price/index.wxml @@ -48,14 +48,15 @@ {{currentGoods.category || '品种'}} {{currentGoods.productName || currentGoods.name || '商品'}} - {{currentGoods.status === 'published' ? '在售' : currentGoods.status === 'sold_out' ? '售罄' : '未知'}} + {{currentGoods.status === 'published' ? '在售' : currentGoods.status === 'sold_out' ? '售罄' : '未知'}} - ¥ - {{currentGoods.price}} - 件价: ¥{{currentGoods.unitPrice}} + {{currentGoods.price}}元{{currentGoods.price > 10 ? '' : '/'}} + + {{currentGoods.unitPrice}}元(件价) + - {{currentGoods.specification || selectedSpec || '净重43-44g'}} | {{currentGoods.category || '绿壳'}} | 库存:{{currentGoods.totalStock || '450'}} + {{currentGoods.specification || selectedSpec || '净重43-44g'}} | {{currentGoods.category || '绿壳'}} | {{currentGoods.yolk || '蛋黄颜色'}} | 库存:{{currentGoods.totalStock || '450'}} 🏪 @@ -90,11 +91,12 @@ {{item.category || '品种'}} {{item.productName || item.name}} - {{item.status === 'published' ? '在售' : item.status === 'sold_out' ? '售罄' : '未知'}} + {{item.status === 'published' ? '在售' : item.status === 'sold_out' ? '售罄' : '未知'}} - ¥ - {{item.price}} - 件价: ¥{{item.unitPrice}} + {{item.price}}元{{item.price > 10 ? '' : '/'}} + + {{item.unitPrice}}元(件价) + {{item.currentSpec || item.specification || (item.processedSpecs && item.processedSpecs.length > 0 ? item.processedSpecs.join(' | ') : '净重:45-50g')}} | {{item.category || '品种'}} | {{item.yolk || '无'}} | 库存:{{item.totalStock || '450'}} diff --git a/pages/compare_price/index.wxss b/pages/compare_price/index.wxss index ca727c7..9c47cd2 100644 --- a/pages/compare_price/index.wxss +++ b/pages/compare_price/index.wxss @@ -345,10 +345,20 @@ } .price-container { - display: flex; - align-items: baseline; - gap: 4px; + display: block; flex-shrink: 0; + position: relative; +} + +.price-amount { + display: block; + margin-bottom: -5px; +} + +.unit-price { + display: block; + margin-left: 10px; + margin-top: -5px; } .currency-symbol { @@ -361,9 +371,8 @@ } .unit-price { - font-size: 12px; + font-size: 16px; color: #666666; - margin-left: 8px; white-space: nowrap; } @@ -437,7 +446,7 @@ } .compare-item-name { - font-size: 15px; + font-size: 16px; color: #1A1A1A; font-weight: 500; flex: 1; @@ -448,20 +457,30 @@ } .compare-item-price { - display: flex; - align-items: baseline; - gap: 4px; + display: block; flex-shrink: 0; + position: relative; } .compare-price-amount { - font-size: 18px; + display: block; + margin-bottom: -5px; +} + +.compare-item-price .unit-price { + display: block; + margin-left: 10px; + margin-top: -5px; +} + +.compare-price-amount { + font-size: 24px; font-weight: bold; } .compare-item-spec { - font-size: 12px; - color: #999999; + font-size: 14px; + color: #666666; white-space: normal; word-break: break-word; margin-top: 4px; @@ -481,13 +500,13 @@ } .compare-item-merchant { - font-size: 12px; - color: #999999; + font-size: 14px; + color: #666666; } .compare-item-region { - font-size: 12px; - color: #999999; + font-size: 14px; + color: #666666; } .price-comparison { diff --git a/pages/index/index.wxml b/pages/index/index.wxml index fdd8538..d17d5fd 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -214,14 +214,14 @@ 📣 招商 - - 📄 - 我们 - 🚚 运费估算 + + 📄 + 我们 + diff --git a/pages/index/index.wxss b/pages/index/index.wxss index c695dc7..d2e18a3 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -96,16 +96,15 @@ page { /* 功能按钮样式 */ .function-buttons { - display: flex; - justify-content: space-around; - align-items: center; + display: grid; + grid-template-columns: repeat(5, 1fr); + gap: 10rpx; padding: 10rpx 20rpx; width: 100%; max-width: 850rpx; box-sizing: border-box; background: #ffffff; margin: 0 auto 16rpx; - gap: 5rpx; border-radius: 12rpx; box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1); position: relative; @@ -113,7 +112,6 @@ page { } .function-btn { - flex: 1; display: flex; flex-direction: column; align-items: center;