diff --git a/public/index.html b/public/index.html index 31a68a8..8e77cab 100644 --- a/public/index.html +++ b/public/index.html @@ -85,7 +85,11 @@ .product-img img { width: 100%; height: 100%; object-fit: cover; } .product-info { flex: 1; min-width: 0; } .product-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } - .product-shop { font-size: 11px; color: var(--text-light); margin-bottom: 6px; } + .product-shop { font-size: 11px; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; } + .platform-badge { display: inline-block; padding: 1px 4px; border-radius: 3px; font-size: 10px; font-weight: 600; color: white; } + .platform-badge.taobao { background: #ff5000; } + .platform-badge.jd { background: #c00; } + .platform-badge.pinduoduo { background: #c00; } .product-bottom { display: flex; align-items: center; justify-content: space-between; } .product-price { color: #ef4444; font-weight: 700; font-size: 15px; } .product-coupon { background: var(--primary); color: white; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 600; } @@ -263,7 +267,7 @@ dealsGrid.innerHTML = deals.map(deal => `
${deal.title}
-
${deal.title}
+
${PLATFORM_NAME[deal.platform] || deal.platform}${deal.title}
¥${deal.price}¥${deal.originalPrice}${deal.discount}
🎁 预估返 ¥${deal.commission || 0}
@@ -328,7 +332,7 @@
${p.title}
${p.title}
-
🏪 ${p.shop}
+
${PLATFORM_NAME[p.platform] || p.platform} ${p.shop}
¥${p.price} -¥${p.coupon}券