Showing
4 changed files
with
10 additions
and
8 deletions
@@ -253,8 +253,6 @@ const indexData = (gender, brandCode, channel, appType) => { | @@ -253,8 +253,6 @@ const indexData = (gender, brandCode, channel, appType) => { | ||
253 | brandList.bannerTop = data; | 253 | brandList.bannerTop = data; |
254 | } else if (data.focus_type && data.focus_type === '2') { | 254 | } else if (data.focus_type && data.focus_type === '2') { |
255 | brandList.focusData = data.data; | 255 | brandList.focusData = data.data; |
256 | - } else if (data.template_name === 'single_image') { | ||
257 | - brandList.bannerTop = data; | ||
258 | } | 256 | } |
259 | }); | 257 | }); |
260 | } | 258 | } |
@@ -271,7 +269,7 @@ const indexData = (gender, brandCode, channel, appType) => { | @@ -271,7 +269,7 @@ const indexData = (gender, brandCode, channel, appType) => { | ||
271 | } | 269 | } |
272 | 270 | ||
273 | list.brandList = brandList; | 271 | list.brandList = brandList; |
274 | - | 272 | + |
275 | return list; | 273 | return list; |
276 | }); | 274 | }); |
277 | }; | 275 | }; |
@@ -65,8 +65,8 @@ $('.brand-cha').find('li').click(function() { | @@ -65,8 +65,8 @@ $('.brand-cha').find('li').click(function() { | ||
65 | 65 | ||
66 | // 点击字母,页面滚动到相关区域 | 66 | // 点击字母,页面滚动到相关区域 |
67 | $intercept.click(function() { | 67 | $intercept.click(function() { |
68 | - var name = $(this).attr('href').split('#')[1], | ||
69 | - targetTop = $list.find('[name=' + name + ']').offset().top - categoryHeight; | 68 | + var name = $(this).attr('href').split('#')[1] === '0_9' ? '0~9' : $(this).attr('href').split('#')[1], |
69 | + targetTop = $list.find('[name="' + name + '"]').offset().top - categoryHeight; | ||
70 | 70 | ||
71 | $('html,body').animate({ | 71 | $('html,body').animate({ |
72 | scrollTop: targetTop | 72 | scrollTop: targetTop |
@@ -100,14 +100,13 @@ | @@ -100,14 +100,13 @@ | ||
100 | width: 20px; | 100 | width: 20px; |
101 | height: 46px; | 101 | height: 46px; |
102 | position: relative; | 102 | position: relative; |
103 | - right: -32px; | 103 | + right: -33px; |
104 | } | 104 | } |
105 | 105 | ||
106 | .sub-level-container { | 106 | .sub-level-container { |
107 | float: left; | 107 | float: left; |
108 | overflow-x: auto; | 108 | overflow-x: auto; |
109 | box-sizing: border-box; | 109 | box-sizing: border-box; |
110 | - background: #fff; | ||
111 | width: 55%; | 110 | width: 55%; |
112 | height: 100%; | 111 | height: 100%; |
113 | background: #f4f4f4; | 112 | background: #f4f4f4; |
@@ -6,13 +6,17 @@ | @@ -6,13 +6,17 @@ | ||
6 | 6 | ||
7 | > form { | 7 | > form { |
8 | position: relative; | 8 | position: relative; |
9 | + line-height: 60px; | ||
9 | } | 10 | } |
10 | 11 | ||
11 | .search-icon { | 12 | .search-icon { |
12 | position: absolute; | 13 | position: absolute; |
13 | font-size: 24px; | 14 | font-size: 24px; |
14 | - top: 18px; | ||
15 | left: 20px; | 15 | left: 20px; |
16 | + height: 60px; | ||
17 | + line-height: 60px; | ||
18 | + display: inline-block; | ||
19 | + top: 1px; | ||
16 | } | 20 | } |
17 | 21 | ||
18 | input { | 22 | input { |
@@ -24,6 +28,7 @@ | @@ -24,6 +28,7 @@ | ||
24 | border-radius: 30px; | 28 | border-radius: 30px; |
25 | background: #fff; | 29 | background: #fff; |
26 | border: none; | 30 | border: none; |
31 | + line-height: 60px; | ||
27 | } | 32 | } |
28 | 33 | ||
29 | .clear-input { | 34 | .clear-input { |
-
Please register or login to post a comment