modules.hbs
3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{{#each decorators}}
{{#isEqual module_type 'Title'}}
<header class="section-header">
<div class="section-title">{{../text}}</div>
{{#if ../link}}
<a class="section-more" href="{{../link}}"><i class="iconfont"></i></a>
{{/if}}
</header>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'CarouselImage'}}
<div class="shop-swiper shop-swiper-{{../num}}">
<ul class="swiper-wrapper">
{{#each ../pics}}
<li class="swiper-slide">
<a{{#if link}} href="{{link}}"{{/if}}>
{{#within @../index 3}}
<img src="{{image2 src}}" alt="">
{{^}}
<img class="lazy" data-original="{{image2 src}}" alt="">
{{/within}}
</a>
</li>
{{/each}}
</ul>
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'Video'}}
<div class="shop-video shop-section clearfix">
<div class="video-player" style="background-image: url({{../pic}})">
<div class="video-poster">
<div class="video-meta-customers">
<i class="iconfont"></i> <span>13145</span>
</div>
</div>
</div>
<div class="video-intro">
<h6 class="video-title">{{../title}}</h6>
<p class="text-line-2">{{../content}}</p>
</div>
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'SingleImage'}}
<div class="items-s1 clearfix">
{{#each ../pics}}
{{> reds-shop/item index=@../index single=true}}
{{/each}}
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'DoubleImage'}}
<div class="items-s2 clearfix">
{{#each ../pics}}
{{> reds-shop/item index=@../index double=true}}
{{/each}}
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'TripleImage'}}
<div class="{{#isEqual ../displayType 1}}items-3-3{{/isEqual}}{{#isEqual ../displayType 2}}items-3-3 items-small{{/isEqual}}{{#isEqual ../displayType 3}}items-3-2 items-3-2-right{{/isEqual}}{{#isEqual ../displayType 4}}items-3-2 items-3-2-left{{/isEqual}} clearfix">
{{#each ../pics}}
{{> reds-shop/item index=@../index triple=true}}
{{/each}}
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'FourImage'}}
<div class="items-s4 clearfix">
{{#each ../pics}}
{{> reds-shop/item index=@../index four=true}}
{{/each}}
</div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{#isEqual module_type 'AppRecommendProduct'}}
<div class="index-goods-container" data-type="{{../type}}" data-skns="{{../skns}}" data-order="{{../order}}"></div>
{{#if ../isModuleMargin}}
<div class="margin-bottom"></div>
{{/if}}
{{/isEqual}}
{{/each}}