Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
18 changed files
with
19 additions
and
18 deletions
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | Swiper = require('yoho.iswiper'), | 9 | Swiper = require('yoho.iswiper'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'); | 8 | + Hammer = require('yoho.hammer'); |
9 | 9 | ||
10 | var $nav = $('.category-nav'), | 10 | var $nav = $('.category-nav'), |
11 | $categoryContainer = $('.category-container'), | 11 | $categoryContainer = $('.category-container'), |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | Swiper = require('yoho.iswiper'); | 9 | Swiper = require('yoho.iswiper'); |
10 | 10 | ||
11 | var info = require('./info'), | 11 | var info = require('./info'), |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | ellipsis = require('mlellipsis'), | 9 | ellipsis = require('mlellipsis'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | ellipsis = require('mlellipsis'), | 9 | ellipsis = require('mlellipsis'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | lazyLoad = require('yoho.lazyload'), | 9 | lazyLoad = require('yoho.lazyload'), |
10 | Swiper = require('yoho.iswiper'); | 10 | Swiper = require('yoho.iswiper'); |
11 | 11 |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | * @date: 2015/10/12 | 4 | * @date: 2015/10/12 |
5 | */ | 5 | */ |
6 | var $ = require('jquery'), | 6 | var $ = require('jquery'), |
7 | - Hammer = require('hammer'), | 7 | + Hammer = require('yoho.hammer'), |
8 | Swiper = require('yoho.iswiper'), | 8 | Swiper = require('yoho.iswiper'), |
9 | lazyLoad = require('yoho.lazyload'), | 9 | lazyLoad = require('yoho.lazyload'), |
10 | $mobileWrap = $('.mobile-wrap'), | 10 | $mobileWrap = $('.mobile-wrap'), |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | tip = require('../plugin/tip'), | 9 | tip = require('../plugin/tip'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | */ | 5 | */ |
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | - Hammer = require('hammer'), | 8 | + Hammer = require('yoho.hammer'), |
9 | lazyLoad = require('yoho.lazyload'); | 9 | lazyLoad = require('yoho.lazyload'); |
10 | 10 | ||
11 | //品牌页参数 | 11 | //品牌页参数 |
@@ -398,6 +398,8 @@ if ($brandHeader.length > 0) { | @@ -398,6 +398,8 @@ if ($brandHeader.length > 0) { | ||
398 | success: function(data) { | 398 | success: function(data) { |
399 | if (data.code === 200) { | 399 | if (data.code === 200) { |
400 | $this.toggleClass('coled'); | 400 | $this.toggleClass('coled'); |
401 | + } else if (data.code === 400 || data.code === 412) { | ||
402 | + tip.show('未登录'); | ||
401 | } else { | 403 | } else { |
402 | tip.show(data.message); | 404 | tip.show(data.message); |
403 | } | 405 | } |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | Swiper = require('yoho.iswiper'), | 8 | Swiper = require('yoho.iswiper'), |
9 | - Hammer = require('hammer'), | 9 | + Hammer = require('yoho.hammer'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 | ||
12 | var swiper; | 12 | var swiper; |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | var $ = require('jquery'), | 7 | var $ = require('jquery'), |
8 | Swiper = require('yoho.iswiper'), | 8 | Swiper = require('yoho.iswiper'), |
9 | - Hammer = require('hammer'), | 9 | + Hammer = require('yoho.hammer'), |
10 | lazyLoad = require('yoho.lazyload'); | 10 | lazyLoad = require('yoho.lazyload'); |
11 | 11 | ||
12 | var swiper, | 12 | var swiper, |
@@ -23,7 +23,7 @@ | @@ -23,7 +23,7 @@ | ||
23 | "import-style": "1.0.0", | 23 | "import-style": "1.0.0", |
24 | "yoho.lazyload": "1.1.0", | 24 | "yoho.lazyload": "1.1.0", |
25 | "yoho.handlebars": "3.0.3", | 25 | "yoho.handlebars": "3.0.3", |
26 | - "hammer": "2.0.4" | 26 | + "yoho.hammer": "2.0.4" |
27 | }, | 27 | }, |
28 | "devDependencies": { | 28 | "devDependencies": { |
29 | "expect.js": "0.3.1" | 29 | "expect.js": "0.3.1" |
@@ -17,9 +17,6 @@ | @@ -17,9 +17,6 @@ | ||
17 | height: 192rem / $pxConvertRem; | 17 | height: 192rem / $pxConvertRem; |
18 | border-bottom: 1px solid #e0e0e0; | 18 | border-bottom: 1px solid #e0e0e0; |
19 | border-right: 1px solid #e0e0e0; | 19 | border-right: 1px solid #e0e0e0; |
20 | - &:nth-child(-n+3) { | ||
21 | - border-bottom: none; | ||
22 | - } | ||
23 | } | 20 | } |
24 | 21 | ||
25 | .classify-logo { | 22 | .classify-logo { |
@@ -82,6 +82,7 @@ | @@ -82,6 +82,7 @@ | ||
82 | <input id="page" type="hidden" value={{page}}> | 82 | <input id="page" type="hidden" value={{page}}> |
83 | {{/if}} | 83 | {{/if}} |
84 | 84 | ||
85 | + {{> product/suspend-cart}} | ||
85 | </div> | 86 | </div> |
86 | {{> layout/footer}} | 87 | {{> layout/footer}} |
87 | {{> layout/download_app}} | 88 | {{> layout/download_app}} |
@@ -93,6 +93,7 @@ | @@ -93,6 +93,7 @@ | ||
93 | <input id="discount" type="hidden" value={{discount}}> | 93 | <input id="discount" type="hidden" value={{discount}}> |
94 | {{/if}} | 94 | {{/if}} |
95 | 95 | ||
96 | + {{> product/suspend-cart}} | ||
96 | </div> | 97 | </div> |
97 | {{> layout/footer}} | 98 | {{> layout/footer}} |
98 | {{> layout/download_app}} | 99 | {{> layout/download_app}} |
-
Please register or login to post a comment