style: 优化蝦皮列表关键信息展示 (#214)

This commit is contained in:
chengma
2026-08-13 12:07:27 +08:00
parent 121b12ac41
commit 5b7d92289e
6 changed files with 22 additions and 17 deletions
+5 -3
View File
@@ -37,8 +37,10 @@ type ShopeeProductView struct {
PendingCount int
SourceText string
// PddURL 为空且 PddMissing 为 true 时,模板显示"未填写"并标红——
// 这是最需要操作员注意的状态,见 §4.2。
// 列表正文只显示稳定、短小的 PDD 商品 ID,完整 URL 留在 title 中。
// PddMissing 为 true 时模板显示"未填写"并标红——这是最需要操作员
// 注意的状态,见 §4.2。
PddGoodsID string
PddURL string
PddMissing bool
@@ -123,9 +125,9 @@ func ListShopeeProducts(db *sql.DB, filter repository.ShopeeFilter, page int) (*
if r.PddGoodsID == "" {
v.PddMissing = true
v.PddURL = "未填写"
v.StatusText = "未填链接"
} else {
v.PddGoodsID = r.PddGoodsID
v.PddURL = r.PddGoodsURL
if r.CollectStatus.Valid {
v.StatusText = collectStatusText(model.CollectStatus(r.CollectStatus.String))