detail.hbs
4.62 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
{{> mip-download}}
{{> mip-head}}
<div class="detail-page yoho-page">
{{# baseInfo}}
<div class="banner-pic">
<div class="pic-container">
<div class="tag-container">
{{# tags}}
{{# is_new}}
<p class="good-tag new-tag">NEW</p>
{{/ is_new}}
{{# is_advance}}
<p class="good-tag renew-tag">再到着</p>
{{/ is_advance}}
{{# is_discount}}
<p class="good-tag sale-tag">SALE</p>
{{/ is_discount}}
{{# is_yohood}}
<p class="good-tag new-festival-tag">新品节</p>
{{/ is_yohood}}
{{# is_limited}}
<p class="good-tag limit-tag">限量</p>
{{/ is_limited}}
{{# is_soon_sold_out}}
<p class="good-tag soon-sold-out-tag">即将售罄</p>
{{/ is_soon_sold_out}}
{{# is_presell}}
<p class="good-tag is-presell">预售</p>
{{/ is_presell}}
{{/ tags}}
</div>
<mip-carousel class="pic-list" layout="responsive" width="450" height="600" indicatorId="mip-carousel-example">
{{# images_list}}
<mip-img src="{{image2 image_url w=450 h=600 q=60}}"></mip-img>
{{/ images_list}}
</mip-carousel>
</div>
<div class="mip-carousel-indicator-wrapper">
<div class="mip-carousel-indicatorDot" id="mip-carousel-example">
{{# images_list}}
{{#if @index}}
<div class="mip-carousel-indecator-item"></div>
{{else}}
<div class="mip-carousel-activeitem mip-carousel-indecator-item"></div>
{{/if}}
{{/ images_list}}
</div>
</div>
</div>
<div class="goods-name">
<h1 class="name">{{product_name}}</h1>
</div>
<div class="price-date">
<div class="goods-price">
<h2 class="current-price">¥{{sales_price}}</h2>
{{#if market_price}}
<h2 class="previous-price">¥{{market_price}}</h2>
{{/if}}
</div>
</div>
{{#if student_price}}
<div class="price-date">
<div class="student-price">
<i class="student-name">学生价</i><span class="student-value">¥{{student_price}}</span>
</div>
</div>
{{else if vip}}
<ul class="vip-level clearfix">
{{#each vip}}
<li class="icons-item {{#if currentLevel}} current-level {{/if}}">
<span class="vip-img">
</span>
<span class="vip-price">{{price}}</span>
</li>
{{/each}}
</ul>
{{/if}}
{{/ baseInfo}}
{{#if promotion}}
<div class="goods-discount" id="goodsDiscount">
{{# promotion}}
<h2 class="short-text"><span class="promotion-icon">促</span>{{promotionTitle}}</h2>
{{/ promotion}}
</div>
{{/if}}
{{# enterStore}}
<div id="enter-store" class="enter-store page-block tap-hightlight">
<a class="store-logo" href="{{url}}?union_type=100000000013130">
<mip-img src="{{image2 img w=100 h=100 q=90}}" alt="{{storeName}}"></mip-img>
</a>
<a class="store-name" href="{{url}}?union_type=100000000013130">{{storeName}}</a>
<a class="store-link" href="{{url}}?union_type=100000000013130">进入店铺 <span>></span></a>
</div>
{{/ enterStore}}
<div class="product-desc">
{{{intro}}}
</div>
<div id="shop-goods-container" class="goods-container">{{{preference}}}</div>
<div class="cart-bar-fixed">
<div class="cart-bar iphonex-bottom-tab">
<a href="//m.yohobuy.com/cart/index/index?union_type=100000000013130" class="new-foot-ico" rel="nofollow">
<div class="cart-icon"></div>
<div class="tip">购物车</div>
</a>
<a {{# enterStore}}href="{{url}}?union_type=100000000013130"{{/ enterStore}} class="new-foot-ico store{{#unless enterStore}} opa{{/unless}}">
<div class="shop-icon"></div>
<div class="tip">品牌店铺</div>
</a>
{{# baseInfo}}
<a href="//m.yohobuy.com/product/{{product_skn}}.html?union_type=100000000013130" class="addto-cart add-to-cart-url">立即购买</a>
{{/ baseInfo}}
</div>
</div>
{{> mip-footer}}
</div>