Merge branch 'feature/cart' into 'develop'
Feature/cart 购物车商结算修改 See merge request !33
Showing
5 changed files
with
23 additions
and
35 deletions
@@ -199,9 +199,9 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | @@ -199,9 +199,9 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | ||
199 | $(this).removeClass('highlight'); | 199 | $(this).removeClass('highlight'); |
200 | }); | 200 | }); |
201 | 201 | ||
202 | -$('.nav-home').on('touchstart', function() { | ||
203 | - $('.homebuttom').toggleClass('none'); | ||
204 | -}); | 202 | +// $('.nav-home').on('touchstart', function() { |
203 | +// $('.homebuttom').toggleClass('none'); | ||
204 | +// }); | ||
205 | 205 | ||
206 | (function() { | 206 | (function() { |
207 | var lastTime = 0, | 207 | var lastTime = 0, |
@@ -41,23 +41,8 @@ | @@ -41,23 +41,8 @@ | ||
41 | {{> shopping-cart/cart-content}} | 41 | {{> shopping-cart/cart-content}} |
42 | </div> | 42 | </div> |
43 | {{/ preSellCart}} | 43 | {{/ preSellCart}} |
44 | - | ||
45 | {{/ shoppingCart}} | 44 | {{/ shoppingCart}} |
46 | </div> | 45 | </div> |
47 | -<div id="advanceBuy" class="shopping-cart-page yoho-page hide"> | ||
48 | -{{# shoppingCart}} | ||
49 | - {{# commonCart}} | ||
50 | - {{# advanceBuy}} | ||
51 | - <span> | ||
52 | - {{promotionTitle}} | ||
53 | - </span> | ||
54 | - {{# goods}} | ||
55 | - {{> shopping-cart/gift-advance-good}} | ||
56 | - {{/ goods}} | ||
57 | - {{/ advanceBuy}} | ||
58 | - {{/ commonCart}} | ||
59 | -{{/ shoppingCart}} | ||
60 | -</div> | ||
61 | 46 | ||
62 | <div class="shopping-cart-zero yoho-page hide"> | 47 | <div class="shopping-cart-zero yoho-page hide"> |
63 | <div class="cart-zero"> | 48 | <div class="cart-zero"> |
@@ -67,6 +52,5 @@ | @@ -67,6 +52,5 @@ | ||
67 | </div> | 52 | </div> |
68 | {{> product/recommend-for-you}} | 53 | {{> product/recommend-for-you}} |
69 | </div> | 54 | </div> |
70 | - | ||
71 | - {{> shopping-cart/chose-panel}} | ||
72 | -{{> layout/footer}} | ||
55 | +{{> shopping-cart/chose-panel}} | ||
56 | +{{> layout/footer}} |
@@ -4,14 +4,14 @@ | @@ -4,14 +4,14 @@ | ||
4 | <a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back"></a> | 4 | <a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back"></a> |
5 | {{/navBack}} | 5 | {{/navBack}} |
6 | {{#navHome}} | 6 | {{#navHome}} |
7 | - <a class="iconfont nav-home"></a> | 7 | + <a href="{{.}}" class="iconfont nav-home"></a> |
8 | {{/navHome}} | 8 | {{/navHome}} |
9 | {{#navTitle}} | 9 | {{#navTitle}} |
10 | <p class="nav-title">{{.}}</p> | 10 | <p class="nav-title">{{.}}</p> |
11 | {{/navTitle}} | 11 | {{/navTitle}} |
12 | {{# navBtn}} | 12 | {{# navBtn}} |
13 | <!-- <span class="nav-btn">{{.}}</span> --> | 13 | <!-- <span class="nav-btn">{{.}}</span> --> |
14 | - <i class="iconfont nav-home"></i> | 14 | + <!-- <i class="iconfont nav-home"></i> --> |
15 | {{/ navBtn}} | 15 | {{/ navBtn}} |
16 | </header> | 16 | </header> |
17 | <div class="homebuttom none"> | 17 | <div class="homebuttom none"> |
1 | <div class="shopping-cart-good clearfix" data-id={{id}}> | 1 | <div class="shopping-cart-good clearfix" data-id={{id}}> |
2 | - {{#if isSoldOut}} | ||
3 | - <p class="">失效</p> | 2 | + <span class="checkbox icon-cb-checked iconfont"></span> |
3 | + <!-- {{#if isSoldOut}} | ||
4 | +<p class="">失效</p> | ||
4 | {{^}} | 5 | {{^}} |
5 | - {{#if isGift}} | ||
6 | - {{^}} | ||
7 | - <span class="checkbox icon-cb-checked iconfont"></span> | ||
8 | - {{/if}} | ||
9 | - | 6 | + {{#if isGift}} |
7 | + {{^}} | ||
8 | +<span class="checkbox icon-cb-checked iconfont"></span> | ||
10 | {{/if}} | 9 | {{/if}} |
11 | 10 | ||
12 | - <div class=""> | ||
13 | - <a class="" href="{{url}}"> | 11 | + {{/if}}--> |
12 | + <div class="info"> | ||
13 | + <img class="thumb lazy" data-original={{thumb}}> | ||
14 | + <!-- | ||
15 | + <a class="" href="{{url}}"> | ||
14 | <img class="thumb lazy" data-original="{{thumb}}"> | 16 | <img class="thumb lazy" data-original="{{thumb}}"> |
15 | </a> | 17 | </a> |
16 | {{#if isAdvanceBuy}} | 18 | {{#if isAdvanceBuy}} |
@@ -23,7 +25,8 @@ | @@ -23,7 +25,8 @@ | ||
23 | {{#if isSoldOut}} | 25 | {{#if isSoldOut}} |
24 | <p class="few-tag">失效</p> | 26 | <p class="few-tag">失效</p> |
25 | {{/if}} | 27 | {{/if}} |
26 | - </div> | 28 | + |
29 | + --> | ||
27 | 30 | ||
28 | <div class="deps show"> | 31 | <div class="deps show"> |
29 | <p class="name row">{{name}}</p> | 32 | <p class="name row">{{name}}</p> |
@@ -55,7 +58,7 @@ | @@ -55,7 +58,7 @@ | ||
55 | {{/if}} | 58 | {{/if}} |
56 | 59 | ||
57 | 60 | ||
58 | - <span class="iconfont icon-edit"></span> | 61 | + |
59 | <span class="iconfont icon-del"></span> | 62 | <span class="iconfont icon-del"></span> |
60 | </p> | 63 | </p> |
61 | <p class="row"> | 64 | <p class="row"> |
@@ -41,11 +41,12 @@ class HomeController extends AbstractAction | @@ -41,11 +41,12 @@ class HomeController extends AbstractAction | ||
41 | { | 41 | { |
42 | // 设置网站标题 | 42 | // 设置网站标题 |
43 | $this->setTitle('个人中心'); | 43 | $this->setTitle('个人中心'); |
44 | - $this->setNavHeader('个人中心', SITE_MAIN . '/?go=1', '', true); | 44 | + $this->setNavHeader('个人中心', SITE_MAIN . '/?go=1'); |
45 | 45 | ||
46 | $data = array( | 46 | $data = array( |
47 | 'myIndexPage' => true, | 47 | 'myIndexPage' => true, |
48 | 'showDownloadApp' => true, | 48 | 'showDownloadApp' => true, |
49 | + 'navHome' => true, | ||
49 | 'pageFooter' => true, | 50 | 'pageFooter' => true, |
50 | 'cartUrl' => Helpers::url('/cart/index/index', null), | 51 | 'cartUrl' => Helpers::url('/cart/index/index', null), |
51 | 'signinUrl' => Helpers::url('/signin.html', array('refer' => Helpers::url('/home'))), | 52 | 'signinUrl' => Helpers::url('/signin.html', array('refer' => Helpers::url('/home'))), |
-
Please register or login to post a comment