fix: task 6 review round 1

This commit is contained in:
2026-08-07 17:05:23 +08:00
parent 6dd9e15ea5
commit 97b9568823
3 changed files with 31 additions and 62 deletions
+14 -15
View File
@@ -108,7 +108,7 @@ export default function ShopDetailPage() {
if (!product) {
return (
<View className="shop-detail-page">
<View className="shop-detail-page theme-dark">
<ThemedPageMeta darkTop />
<Text style={{ color: '#fff', padding: '40rpx' }}></Text>
</View>
@@ -116,7 +116,7 @@ export default function ShopDetailPage() {
}
return (
<View className="shop-detail-page">
<View className="shop-detail-page theme-dark">
<ThemedPageMeta darkTop />
{/* Fixed Hero */}
<View className="shop-hero-fixed">
@@ -268,24 +268,23 @@ export default function ShopDetailPage() {
<Text className="shop-back-arrow"></Text>
</View>
{/* Bottom CTA — fixed, glass, links to existing product page */}
<View
className="shop-cta-bar"
style={{ backgroundColor: `rgba(${tone[0]}, ${tone[1]}, ${tone[2]}, 0.92)` }}
>
<View className="shop-cta-price-col">
<Text className="shop-cta-price">¥{product.price}</Text>
{/* Bottom CTA — 全局毛玻璃 action-bar,沿用 product/checkout 模式 */}
<View className="action-bar">
<View className="price-summary">
<Text className="summary-label"></Text>
<Text className="summary-price">¥{product.price}</Text>
{product.originalPrice && product.originalPrice > product.price && (
<Text className="shop-cta-original">¥{product.originalPrice}</Text>
<Text className="summary-original">¥{product.originalPrice}</Text>
)}
</View>
<View
className="shop-cta-btn"
onTap={() => Taro.navigateTo({ url: `/pages/product/index?id=${product.id}` })}
>
<Text className="shop-cta-btn-text"></Text>
<View className="btn-secondary" onTap={() => Taro.navigateBack()}>
<Text></Text>
</View>
<View className="btn-primary" onTap={() => Taro.navigateTo({ url: `/pages/product/index?id=${product.id}` })}>
<Text></Text>
</View>
</View>
<View className="safe-bottom-placeholder" />
</View>
)
}