Authored by 郭成尧

style-one-pic

{{#if src}}
<div class="item">
<img class="item-pic" src="{{src}}" alt="">
<div class="item-info">
... ... @@ -9,4 +8,3 @@
</div>
</div>
</div>
{{/if}}
... ...
... ... @@ -52,7 +52,6 @@
{{> reds-shop/margin-bottom}}
{{/isEqual}}
{{#isEqual module_type 'TripleImage'}}
{{log ../displayType}}
<div class="{{#isEqual ../displayType 1}}items-3-2 items-3-2-left{{/isEqual}}{{#isEqual ../displayType 2}}items-3-2 items-3-2-right{{/isEqual}}{{#isEqual ../displayType 3}}items-3-3{{/isEqual}}{{#isEqual ../displayType 4}}items-3-3 items-small{{/isEqual}}">
{{#each ../pics}}
{{> reds-shop/item}}
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-03-23 11:02:31
* @Last Modified by: Targaryen
* @Last Modified time: 2017-03-28 10:28:49
* @Last Modified time: 2017-03-28 14:03:00
*/
/* 红人店铺数据处理 */
... ... @@ -75,7 +75,9 @@ const _tools = {
singleImage(moduleData) {
return {
module_type: 'SingleImage',
pic: _.get(moduleData, 'data[0].pic', ''),
pics: {
src: _.get(moduleData, 'data[0].pic', '')
},
text: _.get(moduleData, 'data[0].text', ''),
width: _.get(moduleData, 'properties.width', ''),
height: _.get(moduleData, 'data[0].text', ''),
... ...