cart html structure repaire
Showing
2 changed files
with
26 additions
and
37 deletions
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | - {{# shoppingCart}} | ||
3 | - {{#if isEmptyCart}} | ||
4 | - <div class="shopping-cart-zero yoho-page"> | ||
5 | - <div class="cart-zero"> | ||
6 | - <i class="iconfont"></i> | ||
7 | - <p>您的购物车暂无商品</p> | ||
8 | - <a href="/product/new">随便逛逛</a> | ||
9 | - </div> | ||
10 | - {{> product/recommend-for-you}} | ||
11 | - </div> | ||
12 | - {{^}} | ||
13 | - <div id="mainCart" class="shopping-cart-page yoho-page"> | ||
14 | - | ||
15 | - | ||
16 | - | ||
17 | - {{#if showLoginInfo}} | 2 | +<div id="mainCart" class="shopping-cart-page yoho-page"> |
3 | + {{# shoppingCart}} | ||
4 | + {{#if showLoginInfo}} | ||
18 | <p class="login-info"> | 5 | <p class="login-info"> |
19 | <span class="iconfont"></span> | 6 | <span class="iconfont"></span> |
20 | 请您先 | 7 | 请您先 |
21 | <a class="btn btn-login" href="{{signurl}}">登录</a> | 8 | <a class="btn btn-login" href="{{signurl}}">登录</a> |
22 | 可以同步电脑和手机中的商品 | 9 | 可以同步电脑和手机中的商品 |
23 | </p> | 10 | </p> |
24 | - {{^}} | ||
25 | - {{#if cartNav}} | 11 | + {{/if}} |
12 | + {{#if isEmptyCart}} | ||
13 | + <div class="cart-zero"> | ||
14 | + <i class="iconfont"></i> | ||
15 | + <p>您的购物车暂无商品</p> | ||
16 | + <a href="/product/new">随便逛逛</a> | ||
17 | + </div> | ||
18 | + {{> product/recommend-for-you}} | ||
19 | + {{^}} | ||
20 | + {{#if cartNav}} | ||
26 | <ul class="cart-nav clearfix"> | 21 | <ul class="cart-nav clearfix"> |
27 | <li class="active"> | 22 | <li class="active"> |
28 | <span> | 23 | <span> |
@@ -35,31 +30,27 @@ | @@ -35,31 +30,27 @@ | ||
35 | </span> | 30 | </span> |
36 | </li> | 31 | </li> |
37 | </ul> | 32 | </ul> |
38 | - {{/if}} | ||
39 | {{/if}} | 33 | {{/if}} |
40 | 34 | ||
41 | {{# commonCart}} | 35 | {{# commonCart}} |
42 | - <div class="cart-content common"> | ||
43 | - {{> cart/cart-content}} | ||
44 | - </div> | 36 | + <div class="cart-content common"> |
37 | + {{> cart/cart-content}} | ||
38 | + </div> | ||
45 | {{/ commonCart}} | 39 | {{/ commonCart}} |
46 | 40 | ||
47 | {{# preSellCart}} | 41 | {{# preSellCart}} |
48 | - <div class="cart-content presell hide"> | ||
49 | - <p class="presell-info"> | ||
50 | - <span class="iconfont"></span> | ||
51 | - <span class="txt">预售商品全场包邮,到货后立即发货</span> | ||
52 | - <span class="txt">预售商品不参加活动,不可使用优惠券</span> | ||
53 | - </p> | ||
54 | - {{> cart/cart-content}} | ||
55 | - </div> | 42 | + <div class="cart-content presell hide"> |
43 | + <p class="presell-info"> | ||
44 | + <span class="iconfont"></span> | ||
45 | + <span class="txt">预售商品全场包邮,到货后立即发货</span> | ||
46 | + <span class="txt">预售商品不参加活动,不可使用优惠券</span> | ||
47 | + </p> | ||
48 | + {{> cart/cart-content}} | ||
49 | + </div> | ||
56 | {{/ preSellCart}} | 50 | {{/ preSellCart}} |
57 | - | ||
58 | - </div> | ||
59 | {{/if}} | 51 | {{/if}} |
60 | 52 | ||
61 | <input id="cartType" type="hidden" value="{{cartType}}"> | 53 | <input id="cartType" type="hidden" value="{{cartType}}"> |
62 | - {{/ shoppingCart}} | ||
63 | - | ||
64 | - {{> cart/chose-panel}} | 54 | + {{/ shoppingCart}} |
55 | +</div> | ||
65 | {{> layout/footer}} | 56 | {{> layout/footer}} |
-
Please register or login to post a comment