Merge remote-tracking branch 'origin/feature/brandsTree' into release/5.4.1
Showing
5 changed files
with
192 additions
and
186 deletions
1 | <div class="brand-blk-page yoho-page"> | 1 | <div class="brand-blk-page yoho-page"> |
2 | + | ||
3 | + <!--//no-download 标签不出现头部下载按钮--> | ||
4 | + <div id="no-download"></div> | ||
5 | + | ||
2 | <div class="tab-box"> | 6 | <div class="tab-box"> |
3 | <ul class="brand-tab"> | 7 | <ul class="brand-tab"> |
4 | <li class="brand {{#unless categoryTab}}active{{/ unless}}">鍝佺墝</li> | 8 | <li class="brand {{#unless categoryTab}}active{{/ unless}}">鍝佺墝</li> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | 46 | ||
47 | <ul class="list-box"> | 47 | <ul class="list-box"> |
48 | {{# indexList}} | 48 | {{# indexList}} |
49 | - <li class="item in items"> | 49 | + <li> |
50 | <a class="no-intercept" href="#{{index}}">{{name}}</a> | 50 | <a class="no-intercept" href="#{{index}}">{{name}}</a> |
51 | </li> | 51 | </li> |
52 | {{/ indexList}} | 52 | {{/ indexList}} |
@@ -6,15 +6,17 @@ var categoryHeight = $('.tab-box').height(), | @@ -6,15 +6,17 @@ var categoryHeight = $('.tab-box').height(), | ||
6 | isBrand; | 6 | isBrand; |
7 | 7 | ||
8 | var $intercept = $('.no-intercept'), | 8 | var $intercept = $('.no-intercept'), |
9 | - $list = $('.brand-list-box'); | 9 | + $list = $('.brand-list-box'), |
10 | + $listBox = $('.list-box'); | ||
10 | 11 | ||
11 | function channels(key) { | 12 | function channels(key) { |
12 | - | ||
13 | - return { | 13 | + var channel = { |
14 | men: 1, | 14 | men: 1, |
15 | women: 2, | 15 | women: 2, |
16 | lifestyle: 4 | 16 | lifestyle: 4 |
17 | - }[key]; | 17 | + }; |
18 | + | ||
19 | + return channel[key]; | ||
18 | } | 20 | } |
19 | 21 | ||
20 | function initialize() { | 22 | function initialize() { |
@@ -97,6 +99,10 @@ $('.brand-tab').find('li').click(function() { | @@ -97,6 +99,10 @@ $('.brand-tab').find('li').click(function() { | ||
97 | initialize(); | 99 | initialize(); |
98 | }); | 100 | }); |
99 | 101 | ||
102 | +if ($listBox.find('li').length <= 0) { | ||
103 | + $listBox.hide(); | ||
104 | +} | ||
105 | + | ||
100 | $(function() { | 106 | $(function() { |
101 | $('.banner-swiper').each(function() { | 107 | $('.banner-swiper').each(function() { |
102 | if (!$(this).parents('.content').hasClass('hide') && $(this).hasClass('swiper-container-horizontal') === false && $(this).find('li').length > 1) { | 108 | if (!$(this).parents('.content').hasClass('hide') && $(this).hasClass('swiper-container-horizontal') === false && $(this).find('li').length > 1) { |
@@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
9 | .brand-tab { | 9 | .brand-tab { |
10 | max-width: inherit; | 10 | max-width: inherit; |
11 | height: 80px; | 11 | height: 80px; |
12 | - font-size: 0.65rem; | 12 | + font-size: 26px; |
13 | text-align: center; | 13 | text-align: center; |
14 | z-index: 10; | 14 | z-index: 10; |
15 | background-color: #fff; | 15 | background-color: #fff; |
@@ -38,8 +38,8 @@ | @@ -38,8 +38,8 @@ | ||
38 | .channel-tab { | 38 | .channel-tab { |
39 | width: 100%; | 39 | width: 100%; |
40 | max-width: inherit; | 40 | max-width: inherit; |
41 | - height: 2rem; | ||
42 | - font-size: 0.65rem; | 41 | + height: 80px; |
42 | + font-size: 26px; | ||
43 | text-align: center; | 43 | text-align: center; |
44 | position: relative; | 44 | position: relative; |
45 | z-index: 10; | 45 | z-index: 10; |
@@ -49,12 +49,12 @@ | @@ -49,12 +49,12 @@ | ||
49 | li { | 49 | li { |
50 | width: 50%; | 50 | width: 50%; |
51 | color: #b0b0b0; | 51 | color: #b0b0b0; |
52 | - line-height: 2rem; | 52 | + line-height: 80px; |
53 | float: left; | 53 | float: left; |
54 | } | 54 | } |
55 | 55 | ||
56 | li:first-child { | 56 | li:first-child { |
57 | - margin-left: -0.25rem; | 57 | + margin-left: -10px; |
58 | } | 58 | } |
59 | 59 | ||
60 | .focus { | 60 | .focus { |
@@ -121,27 +121,6 @@ | @@ -121,27 +121,6 @@ | ||
121 | background: #f6f6f6; | 121 | background: #f6f6f6; |
122 | border-top: 1px solid #eee; | 122 | border-top: 1px solid #eee; |
123 | 123 | ||
124 | - .per-brand-box { | ||
125 | - background: #fff; | ||
126 | - padding: 0 30px; | ||
127 | - border-top: 1px solid #eee; | ||
128 | - border-bottom: 1px solid #eee; | ||
129 | - overflow: hidden; | ||
130 | - | ||
131 | - &:not(:first-of-type) { | ||
132 | - margin-top: 20px; | ||
133 | - } | ||
134 | - | ||
135 | - .index { | ||
136 | - height: 60px; | ||
137 | - line-height: 60px; | ||
138 | - | ||
139 | - a { | ||
140 | - font-size: 32px; | ||
141 | - } | ||
142 | - } | ||
143 | - } | ||
144 | - | ||
145 | .brand-big-box { | 124 | .brand-big-box { |
146 | width: 100%; | 125 | width: 100%; |
147 | } | 126 | } |
@@ -154,17 +133,6 @@ | @@ -154,17 +133,6 @@ | ||
154 | text-align: center; | 133 | text-align: center; |
155 | margin-bottom: 20px; | 134 | margin-bottom: 20px; |
156 | 135 | ||
157 | - .brand-logo { | ||
158 | - margin: 0 auto; | ||
159 | - width: 136px; | ||
160 | - height: 136px; | ||
161 | - overflow: hidden; | ||
162 | - | ||
163 | - img { | ||
164 | - width: 100%; | ||
165 | - } | ||
166 | - } | ||
167 | - | ||
168 | .brand-name { | 136 | .brand-name { |
169 | width: 136px; | 137 | width: 136px; |
170 | font-size: 18px; | 138 | font-size: 18px; |
@@ -175,6 +143,38 @@ | @@ -175,6 +143,38 @@ | ||
175 | display: inline-block; | 143 | display: inline-block; |
176 | } | 144 | } |
177 | } | 145 | } |
146 | + | ||
147 | + .brand-logo { | ||
148 | + margin: 0 auto; | ||
149 | + width: 136px; | ||
150 | + height: 136px; | ||
151 | + overflow: hidden; | ||
152 | + | ||
153 | + img { | ||
154 | + width: 100%; | ||
155 | + } | ||
156 | + } | ||
157 | + } | ||
158 | + | ||
159 | + .per-brand-box { | ||
160 | + background: #fff; | ||
161 | + padding: 0 30px; | ||
162 | + border-top: 1px solid #eee; | ||
163 | + border-bottom: 1px solid #eee; | ||
164 | + overflow: hidden; | ||
165 | + | ||
166 | + &:not(:first-of-type) { | ||
167 | + margin-top: 20px; | ||
168 | + } | ||
169 | + | ||
170 | + .index { | ||
171 | + height: 60px; | ||
172 | + line-height: 60px; | ||
173 | + | ||
174 | + a { | ||
175 | + font-size: 32px; | ||
176 | + } | ||
177 | + } | ||
178 | } | 178 | } |
179 | 179 | ||
180 | .index-list { | 180 | .index-list { |
@@ -209,7 +209,7 @@ | @@ -209,7 +209,7 @@ | ||
209 | 209 | ||
210 | .pagination-inner { | 210 | .pagination-inner { |
211 | left: auto; | 211 | left: auto; |
212 | - right: 0.75rem; | 212 | + right: 30px; |
213 | -webkit-transform: none; | 213 | -webkit-transform: none; |
214 | transform: none; | 214 | transform: none; |
215 | position: absolute; | 215 | position: absolute; |
1 | -.blk-cate-all { | ||
2 | - font-size: 15PX; | ||
3 | - /* margin-bottom: 100px;*/ | ||
4 | - | ||
5 | - .category-nav { | ||
6 | - height: 70px; | ||
7 | - border-bottom: 1px solid #e6e6e6; | ||
8 | - | ||
9 | - li { | ||
10 | - display: block; | ||
11 | - box-sizing: border-box; | ||
12 | - float: left; | ||
13 | - height: 100%; | ||
14 | - padding: 20px 0; | ||
15 | - width: 50%; | ||
16 | - text-align: center; | ||
17 | - color: #999; | ||
18 | - | ||
19 | - &:last-child { | ||
20 | - border-right: none; | ||
21 | - } | ||
22 | - | ||
23 | - &.focus { | ||
24 | - color: #000; | ||
25 | - } | ||
26 | - | ||
27 | - &.bytouch { | ||
28 | - background: #eee; | ||
29 | - } | ||
30 | - } | ||
31 | - | ||
32 | - span { | ||
33 | - display: block; | ||
34 | - width: 100%; | ||
35 | - height: 30px; | ||
36 | - line-height: 30px; | ||
37 | - font-size: 15PX; | ||
38 | - border-right: 1px solid #e6e6e6; | ||
39 | - } | ||
40 | - | ||
41 | - li:last-child span { | ||
42 | - border-right: 0; | ||
43 | - } | ||
44 | - } | ||
45 | - | ||
46 | - .content { | ||
47 | - /*background: #f8f8f8;*/ | ||
48 | - overflow: hidden; | ||
49 | - position: relative; | ||
50 | - | ||
51 | - &.hide { | ||
52 | - display: none; | ||
53 | - } | ||
54 | - } | ||
55 | - | ||
56 | - .primary-level { | ||
57 | - float: left; | ||
58 | - box-sizing: border-box; | ||
59 | - width: 45%; | ||
60 | - | ||
61 | - > li { | ||
62 | - height: 89px; | ||
63 | - line-height: 89px; | ||
64 | - padding: 0 32px; | ||
65 | - white-space: nowrap; | ||
66 | - overflow: hidden; | ||
67 | - text-overflow: ellipsis; | ||
68 | - border-bottom: 1px solid #e6e6e6; | ||
69 | - | ||
70 | - &.focus { | ||
71 | - background-color: #fff; | ||
72 | - } | ||
73 | - | ||
74 | - &.highlight { | ||
75 | - background-color: #eee; | ||
76 | - } | ||
77 | - } | ||
78 | - } | ||
79 | - | ||
80 | - .trilanglefont { | ||
81 | - font-family: "iconfont" !important; | ||
82 | - font-size: 0.75rem; | ||
83 | - font-style: normal; | ||
84 | - text-decoration: none; | ||
85 | - -webkit-font-smoothing: antialiased; | ||
86 | - -webkit-text-stroke-width: 0.2px; | ||
87 | - -moz-osx-font-smoothing: grayscale; | ||
88 | - color: #f4f4f4; | ||
89 | - } | ||
90 | - | ||
91 | - .primary-level-trilangle { | ||
92 | - float: right; | ||
93 | - background-image: url(sprite.index.product.png); | ||
94 | - background-position: -3.4rem 0px; | ||
95 | - background-size: 3.9rem 2.7rem; | ||
96 | - margin-top: 0.55rem; | ||
97 | - width: 0.5rem; | ||
98 | - height: 1.15rem; | ||
99 | - position: relative; | ||
100 | - right: -32px; | ||
101 | - } | ||
102 | - | ||
103 | - .sub-level-container { | ||
104 | - float: left; | ||
105 | - overflow-x: auto; | ||
106 | - box-sizing: border-box; | ||
107 | - background: #fff; | ||
108 | - width: 55%; | ||
109 | - height: 100%; | ||
110 | - background: #f4f4f4; | ||
111 | - } | ||
112 | - | ||
113 | - .sub-level { | ||
114 | - width: 100%; | ||
115 | - height: 100%; | ||
116 | - | ||
117 | - &.hide { | ||
118 | - display: none; | ||
119 | - } | ||
120 | - | ||
121 | - > li { | ||
122 | - box-sizing: border-box; | ||
123 | - height: 79px; | ||
124 | - line-height: 79px; | ||
125 | - border-bottom: 1px solid #e6e6e6; | ||
126 | - padding-left: 20px; | ||
127 | - | ||
128 | - &.highlight { | ||
129 | - background: #eee; | ||
130 | - } | ||
131 | - | ||
132 | - &:last-child { | ||
133 | - border-bottom: none; | ||
134 | - } | ||
135 | - } | ||
136 | - | ||
137 | - a { | ||
138 | - display: block; | ||
139 | - height: 100%; | ||
140 | - width: 100%; | ||
141 | - color: #afafaf; | ||
142 | - } | ||
143 | - } | 1 | +.blk-cate-all { |
2 | + font-size: 15PX; | ||
3 | + | ||
4 | + .category-nav { | ||
5 | + height: 70px; | ||
6 | + border-bottom: 1px solid #e6e6e6; | ||
7 | + | ||
8 | + li { | ||
9 | + display: block; | ||
10 | + box-sizing: border-box; | ||
11 | + float: left; | ||
12 | + height: 100%; | ||
13 | + padding: 20px 0; | ||
14 | + width: 50%; | ||
15 | + text-align: center; | ||
16 | + color: #999; | ||
17 | + | ||
18 | + &:last-child { | ||
19 | + border-right: none; | ||
20 | + } | ||
21 | + | ||
22 | + &.focus { | ||
23 | + color: #000; | ||
24 | + } | ||
25 | + | ||
26 | + &.bytouch { | ||
27 | + background: #eee; | ||
28 | + } | ||
29 | + } | ||
30 | + | ||
31 | + span { | ||
32 | + display: block; | ||
33 | + width: 100%; | ||
34 | + height: 30px; | ||
35 | + line-height: 30px; | ||
36 | + font-size: 15PX; | ||
37 | + border-right: 1px solid #e6e6e6; | ||
38 | + } | ||
39 | + | ||
40 | + li:last-child span { | ||
41 | + border-right: 0; | ||
42 | + } | ||
43 | + } | ||
44 | + | ||
45 | + .content { | ||
46 | + overflow: hidden; | ||
47 | + position: relative; | ||
48 | + | ||
49 | + &.hide { | ||
50 | + display: none; | ||
51 | + } | ||
52 | + } | ||
53 | + | ||
54 | + .primary-level { | ||
55 | + float: left; | ||
56 | + box-sizing: border-box; | ||
57 | + width: 45%; | ||
58 | + | ||
59 | + > li { | ||
60 | + height: 89px; | ||
61 | + line-height: 89px; | ||
62 | + padding: 0 32px; | ||
63 | + white-space: nowrap; | ||
64 | + overflow: hidden; | ||
65 | + text-overflow: ellipsis; | ||
66 | + border-bottom: 1px solid #e6e6e6; | ||
67 | + | ||
68 | + &.focus { | ||
69 | + background-color: #fff; | ||
70 | + } | ||
71 | + | ||
72 | + &.highlight { | ||
73 | + background-color: #eee; | ||
74 | + } | ||
75 | + } | ||
76 | + } | ||
77 | + | ||
78 | + .trilanglefont { | ||
79 | + font-family: "iconfont" !important; | ||
80 | + font-size: 30px; | ||
81 | + font-style: normal; | ||
82 | + text-decoration: none; | ||
83 | + -webkit-font-smoothing: antialiased; | ||
84 | + -webkit-text-stroke-width: 0.2px; | ||
85 | + -moz-osx-font-smoothing: grayscale; | ||
86 | + color: #f4f4f4; | ||
87 | + } | ||
88 | + | ||
89 | + .primary-level-trilangle { | ||
90 | + float: right; | ||
91 | + background-image: url(/product/arrow.png) no-repeat; | ||
92 | + margin-top: 22px; | ||
93 | + width: 20px; | ||
94 | + height: 46px; | ||
95 | + position: relative; | ||
96 | + right: -32px; | ||
97 | + } | ||
98 | + | ||
99 | + .sub-level-container { | ||
100 | + float: left; | ||
101 | + overflow-x: auto; | ||
102 | + box-sizing: border-box; | ||
103 | + background: #fff; | ||
104 | + width: 55%; | ||
105 | + height: 100%; | ||
106 | + background: #f4f4f4; | ||
107 | + } | ||
108 | + | ||
109 | + .sub-level { | ||
110 | + width: 100%; | ||
111 | + height: 100%; | ||
112 | + | ||
113 | + &.hide { | ||
114 | + display: none; | ||
115 | + } | ||
116 | + | ||
117 | + > li { | ||
118 | + box-sizing: border-box; | ||
119 | + height: 79px; | ||
120 | + line-height: 79px; | ||
121 | + border-bottom: 1px solid #e6e6e6; | ||
122 | + padding-left: 20px; | ||
123 | + | ||
124 | + &.highlight { | ||
125 | + background: #eee; | ||
126 | + } | ||
127 | + | ||
128 | + &:last-child { | ||
129 | + border-bottom: none; | ||
130 | + } | ||
131 | + } | ||
132 | + | ||
133 | + a { | ||
134 | + display: block; | ||
135 | + height: 100%; | ||
136 | + width: 100%; | ||
137 | + color: #afafaf; | ||
138 | + } | ||
139 | + } | ||
144 | } | 140 | } |
-
Please register or login to post a comment