detail.hbs
4.39 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<div class="guang-detail-c">
{{# guang}}
{{# author}}
<div class="editor-info" data-id={{id}}>
<mip-link href="{{url}}">
<mip-img class="pic" width="45" height="45" src={{image2 avatar mode=2 q=60}}>
</mip-img>
<div class="name">{{name}}</div>
<div class="intro">{{intro}}</div>
</mip-link>
</div>
{{/ author}}
{{# detail}}
<div class="article-info">
<p class="name">{{title}}</p>
<div class="view-c">
<span>日期:{{publishTime}}</span>
</div>
</div>
<div class="guang-content clearfix">
{{# content}}
{{#if text}}
{{{text}}}
{{/if}}
{{#if bigImage}}
<div class="big-pic">
{{#if isGif}}
<mip-anim class="pic" width="{{width}}" height="{{height}}" src="{{image2 bigImage q=60}}"></mip-anim>
{{else}}
<mip-img class="pic" width="{{width}}" height="{{height}}" src="{{image2 bigImage q=60}}"></mip-img>
{{/if}}
{{#if tagList}}
<div class="tag-list-box">
{{#each tagList}}
{{#unless isApp}}
<div class="label-box" data-skn="{{product_skn}}">
<div class="lable-focus">
<div class="focus-big">
<div class="focus-small"></div>
</div>
</div>
<div class="lable-info-box{{#if isApp}} lable-infobox-borderadius{{/if}}"><mip-link href="{{href}}">{{tagName}}</mip-link></div>
<div class="lable-btn add-to-cart" data-skn="{{product_skn}}">
</div>
</div>
{{/unless}}
{{/each}}
</div>
{{/if}}
</div>
{{/if}}
{{#if smallImage}}
<div class="small-pic">
{{# smallImage}}
{{#if isGif}}
<mip-anim class="pic" width="160" height="160" src="{{image2 src q=60}}"></mip-anim>
{{else}}
<mip-img class="pic" width="160" height="160" src="{{image2 src q=60}}"></mip-img>
{{/if}}
{{/ smallImage}}
</div>
{{/if}}
{{#if relatedReco}}
<div class="related-goods clearfix">
{{#each relatedReco.goods}}
{{#if url}}
<div class="good-item">
<mip-link href="{{url}}">
{{#if default_images}}
<div class="pic">
<mip-img class="pic-mip" width="76" height="102" src="{{image2 default_images w=152 h=204}}">
</mip-img>
</div>
{{/if}}
<div class="info">
<p class="name">{{product_name}}</p>
{{#if sales_price}}
<p class="price">¥{{sales_price}}</p>
{{/if}}
</div>
</mip-link>
</div>
{{/if}}
{{/each}}
</div>
{{/if}}
{{/ content}}
</div>
{{/ detail}}
{{#detail.content}}
{{#if moreLink}}
<mip-link class="more-goods" href="{{moreLink}}">更多商品</mip-link>
{{/if}}
{{#if recommendProducts}}
<div class="recommend-goods">
<div class="good-scroll">
{{#each recommendProducts}}
<div class="good-item">
<mip-link href="{{href}}">
<mip-img class="pic" width="100" height="134" src="{{image2 pic_url w=152 h=204}}">
</mip-img>
</mip-link>
<p class="price">¥{{price}}</p>
</div>
{{/each}}
</div>
</div>
{{/if}}
{{/detail.content}}
{{#if relatedBrand}}
<div class="related-brand clearfix">
<div class="title">相关品牌</div>
<div class="brand-c">
{{# relatedBrand}}
<div class="brand-item">
<mip-link href="{{url}}">
<div class="pic">
<mip-img class="pic-mip" width="75" height="75" src="{{thumb}}">
</mip-img>
</div>
<p>{{name}}</p>
</mip-link>
</div>
{{/ relatedBrand}}
</div>
</div>
{{/if}}
{{#if relatedInfo}}
<div class="related-info">
{{# relatedInfo}}
<div class="info-item">
<mip-link href="{{url}}">
<div class="pic">
<mip-img class="pic-mip" width="117" height="73" src="{{thumb}}">
</mip-img>
</div>
<div class="info">
<p class="title">{{title}}</p>
<p class="time">{{publishTime}}</p>
</div>
</mip-link>
</div>
{{/ relatedInfo}}
</div>
{{/if}}
{{#if relatedTag}}
<div class="brand-tag">
{{# relatedTag}}
<mip-link href="//guang.m.yohobuy.com/tags/index?query={{name}}" class="tag">{{name}}</mip-link>
{{/ relatedTag}}
</div>
{{/if}}
{{/ guang}}
</div>