Authored by xuqi

guang detail data structure

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