Authored by 郭成尧

single

1 <div class="item"> 1 <div class="item">
2 <a {{#if link}}href="{{link}}"{{/if}}> 2 <a {{#if link}}href="{{link}}"{{/if}}>
3 {{#if isGood}} 3 {{#if isGood}}
4 - {{#ifor triple double}} 4 + {{#ifor triple double single}}
5 {{#within index 3}} 5 {{#within index 3}}
6 <img class="item-pic" src="{{image2 src w=235 h=314}}"> 6 <img class="item-pic" src="{{image2 src w=235 h=314}}">
7 {{^}} 7 {{^}}
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 {{#isEqual module_type 'SingleImage'}} 51 {{#isEqual module_type 'SingleImage'}}
52 <div class="items-s1 clearfix"> 52 <div class="items-s1 clearfix">
53 {{#each ../pics}} 53 {{#each ../pics}}
54 - {{> reds-shop/item index=@../index}} 54 + {{> reds-shop/item index=@../index single=true}}
55 {{/each}} 55 {{/each}}
56 </div> 56 </div>
57 {{#if ../isModuleMargin}} 57 {{#if ../isModuleMargin}}
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-03-23 11:02:31 3 * @Date: 2017-03-23 11:02:31
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-04-25 09:53:29 5 + * @Last Modified time: 2017-04-26 16:33:07
6 */ 6 */
7 /* 红人店铺数据处理 */ 7 /* 红人店铺数据处理 */
8 8
@@ -339,7 +339,10 @@ const pushGoodsInfo = (decorators, goodsList) => { @@ -339,7 +339,10 @@ const pushGoodsInfo = (decorators, goodsList) => {
339 decorators[key].pics[subKey].marketPrice = marketPrice ? '¥' + marketPrice : ''; 339 decorators[key].pics[subKey].marketPrice = marketPrice ? '¥' + marketPrice : '';
340 decorators[key].pics[subKey].isGood = true; 340 decorators[key].pics[subKey].isGood = true;
341 341
342 - if (value.module_type === 'TripleImage' || value.module_type === 'DoubleImage') { 342 + if (value.module_type === 'TripleImage' ||
  343 + value.module_type === 'DoubleImage' ||
  344 + value.module_type === 'SingleImage') {
  345 +
343 // decorators[key].pics[subKey].src = imageSrc; // 为了和 APP 统一,图暂时不取商品图 346 // decorators[key].pics[subKey].src = imageSrc; // 为了和 APP 统一,图暂时不取商品图
344 } else if (value.module_type === 'FourImage') { 347 } else if (value.module_type === 'FourImage') {
345 decorators[key].pics[subKey].isGood = false; 348 decorators[key].pics[subKey].isGood = false;