Authored by xuqi

guang detail data structure

... ... @@ -351,7 +351,7 @@
{
//onlyOne
relatedReco: {
onlyOne: true, //若只有一个商品,传此字段为true
id: 1, //必须字段
thumb: '',
name: '',
salePrice: 123,
... ...
... ... @@ -66,7 +66,7 @@
{{#if relatedReco}}
<div class="post-block related-reco-block clearfix">
<h2>相关推荐</h2>
{{#if relatedReco.onlyOne}}
{{#if relatedReco.id}}
{{#with relatedReco}}
<div class="one-good">
<img class="thumb lazy" data-original={{thumb}}>
... ...