Merge branch 'feature/sale' into release/4.8
Showing
5 changed files
with
32 additions
and
20 deletions
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | <ul id="list-nav" class="list-nav clearfix"> | 9 | <ul id="list-nav" class="list-nav clearfix"> |
10 | 10 | ||
11 | {{# sortData}} | 11 | {{# sortData}} |
12 | - <li {{#if @first}} class="active" {{/if}} data-id="{{sortId}}" data-allSub="{{allSub}}"> | 12 | + <li data-id="{{sortId}}" data-allSub="{{allSub}}"> |
13 | <a href="javascript:void(0);"> | 13 | <a href="javascript:void(0);"> |
14 | <span class="span-test">{{sortName}}</span> | 14 | <span class="span-test">{{sortName}}</span> |
15 | </a> | 15 | </a> |
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | </div> | 35 | </div> |
36 | </div> | 36 | </div> |
37 | {{/ sub}} | 37 | {{/ sub}} |
38 | - </div> | 38 | + </div> |
39 | {{/ nav}} | 39 | {{/ nav}} |
40 | 40 | ||
41 | <div id="goods-container" class="goods-container"> | 41 | <div id="goods-container" class="goods-container"> |
@@ -16,7 +16,7 @@ module.exports = { | @@ -16,7 +16,7 @@ module.exports = { | ||
16 | siteUrl: '//m.yohobuy.com', | 16 | siteUrl: '//m.yohobuy.com', |
17 | domains: { | 17 | domains: { |
18 | api: 'http://devapi.yoho.cn:58078/', | 18 | api: 'http://devapi.yoho.cn:58078/', |
19 | - service: 'http://devservice.yoho.cn:28077/' | 19 | + service: 'http://devservice.yoho.cn:58077/' |
20 | }, | 20 | }, |
21 | useOneapm: false, | 21 | useOneapm: false, |
22 | useCache: false, | 22 | useCache: false, |
@@ -30,6 +30,7 @@ | @@ -30,6 +30,7 @@ | ||
30 | </header> | 30 | </header> |
31 | {{#if saleNav.list}} | 31 | {{#if saleNav.list}} |
32 | <div class="sale-nav-select"> | 32 | <div class="sale-nav-select"> |
33 | + <span class="arrow"></span> | ||
33 | {{#each saleNav.list}} | 34 | {{#each saleNav.list}} |
34 | <a href="{{url}}">{{title}}</a> | 35 | <a href="{{url}}">{{title}}</a> |
35 | {{/each}} | 36 | {{/each}} |
@@ -515,13 +515,25 @@ $(window).scroll(function() { | @@ -515,13 +515,25 @@ $(window).scroll(function() { | ||
515 | }); | 515 | }); |
516 | 516 | ||
517 | // 初始请求最新第一页数据 | 517 | // 初始请求最新第一页数据 |
518 | -search([{ | ||
519 | - type: 'breakSort', | ||
520 | - id: $('.coat').data('id') | ||
521 | -}, { | ||
522 | - type: 'breakSize', | ||
523 | - id: $('.coat').data('allsub') | ||
524 | -}]); | 518 | +$(function() { |
519 | + var type = window.queryString.type; | ||
520 | + var selector; | ||
521 | + | ||
522 | + // type 1: 上装, 3:下装, 6: 鞋装 | ||
523 | + if (type && type !== '1') { | ||
524 | + selector = type === '3' ? '.trouser' : '.shoes'; | ||
525 | + } else { | ||
526 | + selector = '.coat'; | ||
527 | + } | ||
528 | + $('#list-nav').find(selector).addClass('active').siblings().removeClass('active'); | ||
529 | + search([{ | ||
530 | + type: 'breakSort', | ||
531 | + id: $(selector).data('id') | ||
532 | + }, { | ||
533 | + type: 'breakSize', | ||
534 | + id: $(selector).data('allsub') | ||
535 | + }]); | ||
536 | +}); | ||
525 | 537 | ||
526 | $listNav.on('touchstart', 'li', function() { | 538 | $listNav.on('touchstart', 'li', function() { |
527 | $(this).addClass('bytouch'); | 539 | $(this).addClass('bytouch'); |
@@ -20,11 +20,9 @@ | @@ -20,11 +20,9 @@ | ||
20 | text-align: center; | 20 | text-align: center; |
21 | font-size: 28px; | 21 | font-size: 28px; |
22 | line-height: 80px; | 22 | line-height: 80px; |
23 | - transform: scale(1, 0); | ||
24 | - transform-origin: top; | ||
25 | - transition: all 300ms; | 23 | + display: none; |
26 | 24 | ||
27 | - &:before { | 25 | + .arrow { |
28 | position: absolute; | 26 | position: absolute; |
29 | top: -10px; | 27 | top: -10px; |
30 | right: 30px; | 28 | right: 30px; |
@@ -36,7 +34,7 @@ | @@ -36,7 +34,7 @@ | ||
36 | } | 34 | } |
37 | 35 | ||
38 | &.show { | 36 | &.show { |
39 | - transform: scale(1, 1); | 37 | + display: block; |
40 | } | 38 | } |
41 | 39 | ||
42 | a { | 40 | a { |
@@ -56,8 +54,12 @@ | @@ -56,8 +54,12 @@ | ||
56 | background-color: #f0f0f0; | 54 | background-color: #f0f0f0; |
57 | 55 | ||
58 | .thumb-row { | 56 | .thumb-row { |
59 | - padding-top: 10px; | 57 | + padding-top: 25px; |
60 | padding-bottom: 0; | 58 | padding-bottom: 0; |
59 | + | ||
60 | + .thumb-row-box { | ||
61 | + margin-top: 10px; | ||
62 | + } | ||
61 | } | 63 | } |
62 | 64 | ||
63 | .list-nav, | 65 | .list-nav, |
@@ -71,14 +73,11 @@ | @@ -71,14 +73,11 @@ | ||
71 | 73 | ||
72 | .vip-floor { | 74 | .vip-floor { |
73 | padding-bottom: 30px; | 75 | padding-bottom: 30px; |
76 | + border-bottom: 1px solid #e0e0e0; | ||
74 | 77 | ||
75 | .good-info { | 78 | .good-info { |
76 | margin-bottom: 20px; | 79 | margin-bottom: 20px; |
77 | } | 80 | } |
78 | - | ||
79 | - .tag-container { | ||
80 | - display: none; | ||
81 | - } | ||
82 | } | 81 | } |
83 | 82 | ||
84 | .list-nav { | 83 | .list-nav { |
-
Please register or login to post a comment