{{include "header.html"}} {{include "nav.html"}} {{/* 面包屑:与首页/其他内页保持同一套 .vm-crumb 版式 */}} {{if index .ThemesExt "show_breadcrumb"}} {{if .Nav}} {{end}} {{end}}

{{if .Single}}{{.Single.Name}}{{else}}产品中心{{end}}

{{if .Single}} {{if .Single.Description}}

{{.Single.Description}}

{{end}} {{else}} {{/* ⚠️ 支付方式文案必须判 `.ShopCODEnabled`(2026-10-07)。 COD 是**独立于商城总开关**的配置:商城开着也可能单独把它关掉, 写死「支持货到付款」就是无条件宣传 —— 用户到结算页才发现付不了。 文案取自后台配置(.ShopCODTitle/.ShopCODDesc),B2B 站可改成「月结/账期」。 */}} {{if .ShopCODEnabled}}

支持在线下单与{{.ShopCODTitle}}{{if .ShopCODDesc}},{{.ShopCODDesc}}{{end}}

{{else}}

在线下单,配送与付款方式以下单页为准

{{end}} {{end}}
{{/* ------------------------------------------------ 子分类快捷筛选 */}} {{/* 对标:列表页刚需「筛选与排序」。排序依赖后端 sort/order 参数,当前后端不支持, 做出来会变成点了没反应的假控件 —— 只做真实可用的部分:子分类筛选(走栏目导航)。 ⚠️ 实测坑:列表页的 .Single.Children 是空的(不填充子栏目),照抄首页写法会 整块不渲染且**不报错**。子分类只在 .Columns 导航树里填充,所以要先按 .Single.Slug 在 .Columns 里定位当前栏目,再取它的 Children。 */}} {{$slug := ""}} {{with .Single}}{{$slug = .Slug}}{{end}} {{if .Columns}} {{range .Columns}} {{if and (ne $slug "") (eq .Slug $slug)}} {{if .Children}}
全部 {{range .Children}} {{.Name}} {{end}}
{{end}} {{end}} {{end}} {{end}} {{if .List}}
{{range .List}}
{{if .Img}} {{.Title}} {{else}}
暂无图片
{{end}} {{if .Ext}} {{$badge := index .Ext "badge"}} {{if $badge}}{{$badge}}{{end}} {{end}}

{{.Title}}

{{/* 列表卡同样要有评分:对标里商品卡片必备的评分 / 评价数信任信号 */}} {{if .Ext}} {{$rating := index .Ext "rating"}} {{$reviews := index .Ext "reviews"}} {{if $rating}}
{{$rating}} {{if $reviews}}({{$reviews}} 条评价){{end}}
{{end}} {{end}} {{if .Description}}

{{StrSub .Description 80}}

{{end}}
{{if .Price}}
¥{{printf "%.2f" .Price}}
{{end}} {{/* 稀缺信号:仅在真实库存 1-5 且非「不限库存」(StockLimit=2) 时渲染,不造假 */}} {{if and (ne .StockLimit 2) (gt .Stock 0) (le .Stock 5)}}
仅剩 {{.Stock}} 件
{{end}} {{if gt .Sales 0}}
已售 {{.Sales}} 件
{{end}}
{{if $.ShopEnabled}} {{if and (ne .StockLimit 2) (le .Stock 0)}} 已售罄 {{else}} {{end}} {{else}} 查看详情 {{end}}
{{end}}
{{if .Pager.Enabled}}
{{end}} {{else}}

这个分类下还没有上架商品

可以先去看看其他分类,或回到首页逛逛

{{end}}
{{include "footer.html"}} {{include "js.html"}} {{/* vv-list-deepened */}}