Authored by 郭成尧

single

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