feat: 保存并展示 PDD 店铺与价格采样信息 (#31)
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
autocomplete="off" class="wide"></dd>
|
||||
|
||||
<dt>标题</dt><dd>{{.Title}}<small>(只读,采集后自动回填)</small></dd>
|
||||
<dt>店铺</dt><dd>{{.ShopName}}<small>(只读,采集后自动回填)</small></dd>
|
||||
<dt>采集状态</dt><dd>{{.StatusText}}</dd>
|
||||
<dt>失败原因</dt><dd>{{.CollectMsg}}</dd>
|
||||
<dt>采集时间</dt><dd>{{.CollectedAt}}</dd>
|
||||
@@ -55,6 +56,12 @@
|
||||
建议重新采集一次。
|
||||
</p>
|
||||
{{else}}
|
||||
{{if .ShowPriceSource}}
|
||||
<p class="hint">
|
||||
价格按颜色采样,同一颜色下各尺码显示同一价格。<br>
|
||||
标 ✓ 的是实测价,其余为推断值。
|
||||
</p>
|
||||
{{end}}
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
@@ -62,6 +69,7 @@
|
||||
{{/* 列顺序按采集结果里的 dimensions 定,不是 Go map 的随机顺序 */}}
|
||||
{{range .DimensionNames}}<th>{{.}}</th>{{end}}
|
||||
<th>价格</th>
|
||||
{{if $.D.ShowPriceSource}}<th>价格来源</th>{{end}}
|
||||
<th>有货</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -72,6 +80,7 @@
|
||||
{{/* 价格底层存的是整数分。采不到价格显示「未采到」,
|
||||
绝不显示 ¥0.00——那会让人以为是白菜价 */}}
|
||||
<td>{{.PriceText}}</td>
|
||||
{{if $.D.ShowPriceSource}}<td>{{.PriceSource}}</td>{{end}}
|
||||
<td>{{.Available}}</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user