Showing
3 changed files
with
4 additions
and
5 deletions
1 | -{{#if src}} | ||
2 | <div class="item"> | 1 | <div class="item"> |
3 | <img class="item-pic" src="{{src}}" alt=""> | 2 | <img class="item-pic" src="{{src}}" alt=""> |
4 | <div class="item-info"> | 3 | <div class="item-info"> |
@@ -9,4 +8,3 @@ | @@ -9,4 +8,3 @@ | ||
9 | </div> | 8 | </div> |
10 | </div> | 9 | </div> |
11 | </div> | 10 | </div> |
12 | -{{/if}} |
@@ -52,7 +52,6 @@ | @@ -52,7 +52,6 @@ | ||
52 | {{> reds-shop/margin-bottom}} | 52 | {{> reds-shop/margin-bottom}} |
53 | {{/isEqual}} | 53 | {{/isEqual}} |
54 | {{#isEqual module_type 'TripleImage'}} | 54 | {{#isEqual module_type 'TripleImage'}} |
55 | - {{log ../displayType}} | ||
56 | <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}}"> | 55 | <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}}"> |
57 | {{#each ../pics}} | 56 | {{#each ../pics}} |
58 | {{> reds-shop/item}} | 57 | {{> reds-shop/item}} |
@@ -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-03-28 10:28:49 | 5 | + * @Last Modified time: 2017-03-28 14:03:00 |
6 | */ | 6 | */ |
7 | /* 红人店铺数据处理 */ | 7 | /* 红人店铺数据处理 */ |
8 | 8 | ||
@@ -75,7 +75,9 @@ const _tools = { | @@ -75,7 +75,9 @@ const _tools = { | ||
75 | singleImage(moduleData) { | 75 | singleImage(moduleData) { |
76 | return { | 76 | return { |
77 | module_type: 'SingleImage', | 77 | module_type: 'SingleImage', |
78 | - pic: _.get(moduleData, 'data[0].pic', ''), | 78 | + pics: { |
79 | + src: _.get(moduleData, 'data[0].pic', '') | ||
80 | + }, | ||
79 | text: _.get(moduleData, 'data[0].text', ''), | 81 | text: _.get(moduleData, 'data[0].text', ''), |
80 | width: _.get(moduleData, 'properties.width', ''), | 82 | width: _.get(moduleData, 'properties.width', ''), |
81 | height: _.get(moduleData, 'data[0].text', ''), | 83 | height: _.get(moduleData, 'data[0].text', ''), |
-
Please register or login to post a comment