style: 优化蝦皮列表关键信息展示 (#214)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user