Merge branch 'feature/brandsTree' into 'release/5.4.1'
搜索错位 品牌资源位名称 See merge request !294
Showing
4 changed files
with
9 additions
and
7 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 | } |
@@ -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; |
@@ -15,13 +15,17 @@ | @@ -15,13 +15,17 @@ | ||
15 | 15 | ||
16 | > form { | 16 | > form { |
17 | position: relative; | 17 | position: relative; |
18 | + line-height: 60px; | ||
18 | } | 19 | } |
19 | 20 | ||
20 | .search-icon { | 21 | .search-icon { |
21 | position: absolute; | 22 | position: absolute; |
22 | font-size: 24px; | 23 | font-size: 24px; |
23 | - top: 18px; | ||
24 | left: 20px; | 24 | left: 20px; |
25 | + height: 60px; | ||
26 | + line-height: 60px; | ||
27 | + display: inline-block; | ||
28 | + top: 1px; | ||
25 | } | 29 | } |
26 | 30 | ||
27 | input { | 31 | input { |
@@ -33,6 +37,7 @@ | @@ -33,6 +37,7 @@ | ||
33 | border-radius: 30px; | 37 | border-radius: 30px; |
34 | background: #fff; | 38 | background: #fff; |
35 | border: none; | 39 | border: none; |
40 | + line-height: 60px; | ||
36 | } | 41 | } |
37 | 42 | ||
38 | .clear-input { | 43 | .clear-input { |
-
Please register or login to post a comment