Authored by 郭成尧

one-pic

... ... @@ -39,7 +39,9 @@
{{/isEqual}}
{{#isEqual module_type 'SingleImage'}}
<div class="items-s1">
{{> reds-shop/item}}
{{#each ../pics}}
{{> reds-shop/item}}
{{/each}}
</div>
{{> reds-shop/margin-bottom}}
{{/isEqual}}
... ...
... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-03-23 11:02:31
* @Last Modified by: Targaryen
* @Last Modified time: 2017-03-28 14:03:00
* @Last Modified time: 2017-03-28 14:50:20
*/
/* 红人店铺数据处理 */
... ... @@ -75,9 +75,9 @@ const _tools = {
singleImage(moduleData) {
return {
module_type: 'SingleImage',
pics: {
pics: [{
src: _.get(moduleData, 'data[0].pic', '')
},
}],
text: _.get(moduleData, 'data[0].text', ''),
width: _.get(moduleData, 'properties.width', ''),
height: _.get(moduleData, 'data[0].text', ''),
... ...