diff --git a/src/pages/index/index.less b/src/pages/index/index.less index 0d72ffd..bcfa23c 100644 --- a/src/pages/index/index.less +++ b/src/pages/index/index.less @@ -187,7 +187,6 @@ justify-content: center; font-size: 34px; border-radius: 16px; - background: rgba(255, 255, 255, 0.25); margin-bottom: 14px; overflow: hidden; @@ -286,38 +285,6 @@ } } - // 活动专区 section-card 图标底色(循环使用) - .card-ic-0 .card-icon { - background: #fff0ed; - } - .card-ic-1 .card-icon { - background: #fff7e6; - } - .card-ic-2 .card-icon { - background: #e6f7ff; - } - .card-ic-3 .card-icon { - background: #f0edff; - } - - .bottom-section { - padding: 0 32px; - - // 每张卡片图标不同底色 - .card-hot .card-icon { - background: #fff0ed; - } - .card-discount .card-icon { - background: #fff7e6; - } - .card-new .card-icon { - background: #e6f7ff; - } - .card-order .card-icon { - background: #f0edff; - } - } - // 底部留白 .bottom-spacer { height: 60px; diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index ff28260..677567b 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -160,7 +160,7 @@ export default function Index() { - {activity.length > 0 ? ( + {activity.length > 0 && ( <> {/* 前两个:activity-card 渐变卡片 */} @@ -187,7 +187,7 @@ export default function Index() { {activity.slice(2).map((item, index) => ( handleNavigate(item)} > @@ -201,83 +201,9 @@ export default function Index() { ))} - ) : ( - /* 兜底静态内容 */ - - {/* 满减优惠 */} - { - // TODO: 活动页面上线后配置跳转链接 - }} - > - - - - 🎫 - 满减优惠 - 满30减5 · 可与券叠加 - - - - {/* 新品首发 */} - { - // TODO: 活动页面上线后配置跳转链接 - }} - > - - - - - 新品首发 - 每周三上新 · 限时尝鲜价 - - - )} - {/* 5. 底部推荐卡片 */} - - - 🔥 - - 热门推荐 - 查看同学们都在点什么 - - - - - - 💰 - - 限时优惠 - 超值套餐低至9.9元 - - - - - - - - 新品上架 - 尝尝校园新味道 - - - - - - 📋 - - 我的订单 - 查看订单状态与历史 - - - - - {/* 底部留白 */}