Merge branch 'release/5.4' into gray
Showing
10 changed files
with
51 additions
and
41 deletions
@@ -197,21 +197,6 @@ const index = (req) => { | @@ -197,21 +197,6 @@ const index = (req) => { | ||
197 | Object.assign(respData, searchHandler.handlePathNavData({}, {}, 'new', channel)); | 197 | Object.assign(respData, searchHandler.handlePathNavData({}, {}, 'new', channel)); |
198 | 198 | ||
199 | if (result[1].code === 200 && result[1].data) { | 199 | if (result[1].code === 200 && result[1].data) { |
200 | - let shopsData = _.get(result, '[1].data.shop_list', []), | ||
201 | - dataList = []; | ||
202 | - | ||
203 | - _.forEach(shopsData, shop => { | ||
204 | - dataList.push({ | ||
205 | - url: helpers.urlFormat('', {shopId: shop.shops_id}, shop.shop_domain), | ||
206 | - src: shop.shop_logo, | ||
207 | - num: shop.new_product_num, | ||
208 | - shopId: shop.shops_id, | ||
209 | - brandId: shop.brand_id | ||
210 | - }); | ||
211 | - }); | ||
212 | - | ||
213 | - // 为您推荐 | ||
214 | - Object.assign(respData.recommond.dataList, dataList); | ||
215 | 200 | ||
216 | _.forEach(_.get(result, '[1].data.ads', []), ads => { | 201 | _.forEach(_.get(result, '[1].data.ads', []), ads => { |
217 | // banner | 202 | // banner |
@@ -229,6 +214,34 @@ const index = (req) => { | @@ -229,6 +214,34 @@ const index = (req) => { | ||
229 | 214 | ||
230 | // 新品牌入驻 | 215 | // 新品牌入驻 |
231 | if (result[2].code === 200 && result[2].data) { | 216 | if (result[2].code === 200 && result[2].data) { |
217 | + let hotBrandsData = _.get(result, '[2].data.hot_brand_list', []), | ||
218 | + browseBrandsData = _.get(result, '[2].data.browse_brand_list', []), | ||
219 | + recList = []; | ||
220 | + | ||
221 | + _.forEach(hotBrandsData, hotBrand => { | ||
222 | + recList.push({ | ||
223 | + url: helpers.urlFormat('', {shopId: hotBrand.shops_id}, hotBrand.shop_domain), | ||
224 | + src: hotBrand.shop_logo, | ||
225 | + num: hotBrand.new_product_num, | ||
226 | + shopId: hotBrand.shops_id, | ||
227 | + brandId: hotBrand.brand_id | ||
228 | + }); | ||
229 | + }); | ||
230 | + | ||
231 | + _.forEach(browseBrandsData, browseBrand => { | ||
232 | + recList.push({ | ||
233 | + url: helpers.urlFormat('', {shopId: browseBrand.shops_id}, browseBrand.shop_domain), | ||
234 | + src: browseBrand.shop_logo, | ||
235 | + num: browseBrand.new_product_num, | ||
236 | + shopId: browseBrand.shops_id, | ||
237 | + brandId: browseBrand.brand_id | ||
238 | + }); | ||
239 | + }); | ||
240 | + | ||
241 | + | ||
242 | + // 为您推荐 | ||
243 | + Object.assign(respData.recommond.dataList, recList); | ||
244 | + | ||
232 | let brandsData = _.get(result, '[2].data.new_brand_list', []), | 245 | let brandsData = _.get(result, '[2].data.new_brand_list', []), |
233 | brandList = []; | 246 | brandList = []; |
234 | 247 |
@@ -91,15 +91,17 @@ | @@ -91,15 +91,17 @@ | ||
91 | {{#newProduct}} | 91 | {{#newProduct}} |
92 | <div id="new-product-floor" class="newProduct-floor"> | 92 | <div id="new-product-floor" class="newProduct-floor"> |
93 | {{> common/floor-header}} | 93 | {{> common/floor-header}} |
94 | - <div class="all-catagory fixed-area clearfix"> | ||
95 | - <div class="catagory-text">推荐品类</div> | ||
96 | - <ul class="catagory-navs clearfix"> | ||
97 | - {{#ctyList}} | ||
98 | - <li {{#if active}} class="active" {{/if}} data-cateId="{{cateId}}"> | ||
99 | - <a href="{{url}}">{{name}}</a> | ||
100 | - </li> | ||
101 | - {{/ctyList}} | ||
102 | - </ul> | 94 | + <div style="height:28px;" id="catagory-wrap"> |
95 | + <div class="all-catagory fixed-area clearfix"> | ||
96 | + <div class="catagory-text">推荐品类</div> | ||
97 | + <ul class="catagory-navs clearfix"> | ||
98 | + {{#ctyList}} | ||
99 | + <li {{#if active}} class="active" {{/if}} data-cateId="{{cateId}}"> | ||
100 | + <a href="{{url}}">{{name}}</a> | ||
101 | + </li> | ||
102 | + {{/ctyList}} | ||
103 | + </ul> | ||
104 | + </div> | ||
103 | </div> | 105 | </div> |
104 | <div id="pjax-container" class="new-arrive-list clearfix"> | 106 | <div id="pjax-container" class="new-arrive-list clearfix"> |
105 | {{> list/new-arrive-list}} | 107 | {{> list/new-arrive-list}} |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <div class="good-info imgopacity" data-skn="{{proSkn}}"> | 15 | <div class="good-info imgopacity" data-skn="{{proSkn}}"> |
16 | <div class="good-detail-img"> | 16 | <div class="good-detail-img"> |
17 | <a class="good-thumb" href="{{url}}" target="_blank"> | 17 | <a class="good-thumb" href="{{url}}" target="_blank"> |
18 | - <img class="lazy" data-original="{{image2 src w=222 h=300}}" style="display: block; opacity: 1;"> | 18 | + <img class="lazy" data-original="{{image2 src w=222 h=298}}" style="display: block; opacity: 1;"> |
19 | </a> | 19 | </a> |
20 | </div> | 20 | </div> |
21 | <div class="good-detail-text"> | 21 | <div class="good-detail-text"> |
@@ -23,13 +23,10 @@ var problemBox = function() { | @@ -23,13 +23,10 @@ var problemBox = function() { | ||
23 | $problemBox.find('.a-area').html(ask); | 23 | $problemBox.find('.a-area').html(ask); |
24 | $problemBox.find('.q-area').html(answer); | 24 | $problemBox.find('.q-area').html(answer); |
25 | $problemBox.show(); | 25 | $problemBox.show(); |
26 | - | ||
27 | - $('body').css({overflow: 'hidden'}); | ||
28 | }); | 26 | }); |
29 | 27 | ||
30 | $('.problem-box .close, .problem-box .mark').on('click', function() { | 28 | $('.problem-box .close, .problem-box .mark').on('click', function() { |
31 | $problemBox.hide(); | 29 | $problemBox.hide(); |
32 | - $('body').css({overflow: 'auto'}); | ||
33 | }); | 30 | }); |
34 | }; | 31 | }; |
35 | 32 |
@@ -64,12 +64,9 @@ if (keywords) { | @@ -64,12 +64,9 @@ if (keywords) { | ||
64 | }); | 64 | }); |
65 | } | 65 | } |
66 | 66 | ||
67 | - | ||
68 | if (!$cate.hasClass('big-category')) { | 67 | if (!$cate.hasClass('big-category')) { |
69 | parentID = $cate.data('parentId'); | 68 | parentID = $cate.data('parentId'); |
70 | 69 | ||
71 | $('.parentId-' + parentID).show(); | 70 | $('.parentId-' + parentID).show(); |
72 | $('.cateId-' + parentID).find('.icon').removeClass('plus').addClass('minus'); | 71 | $('.cateId-' + parentID).find('.icon').removeClass('plus').addClass('minus'); |
73 | } | 72 | } |
74 | - | ||
75 | -$('.center-content').css('border-top-color', '#fff'); |
@@ -9,7 +9,6 @@ var yas = require('../common/data-yas'); | @@ -9,7 +9,6 @@ var yas = require('../common/data-yas'); | ||
9 | var $arriveList = $('.new-arrive-list'); | 9 | var $arriveList = $('.new-arrive-list'); |
10 | var $goodInfo = $arriveList.find('.good-info'); | 10 | var $goodInfo = $arriveList.find('.good-info'); |
11 | var $fixedArea = $('.fixed-area'); | 11 | var $fixedArea = $('.fixed-area'); |
12 | -var fixedAreaTop = $fixedArea.offset() ? $fixedArea.offset().top + 28 : 0; | ||
13 | 12 | ||
14 | require('../common'); | 13 | require('../common'); |
15 | require('../plugins/slider'); | 14 | require('../plugins/slider'); |
@@ -100,19 +99,19 @@ function getProData($good) { | @@ -100,19 +99,19 @@ function getProData($good) { | ||
100 | } | 99 | } |
101 | 100 | ||
102 | function fixAreaTop(scrollTop) { | 101 | function fixAreaTop(scrollTop) { |
102 | + var fixedAreaTop = $('#catagory-wrap').offset() ? $('#catagory-wrap').offset().top + 28 : 0; | ||
103 | + | ||
103 | if (scrollTop > fixedAreaTop) { | 104 | if (scrollTop > fixedAreaTop) { |
104 | $fixedArea.css({ | 105 | $fixedArea.css({ |
105 | position: 'fixed', | 106 | position: 'fixed', |
106 | top: 0 | 107 | top: 0 |
107 | }); | 108 | }); |
108 | 109 | ||
109 | - $('#pjax-container').css('margin-top', '48px'); | ||
110 | } else { | 110 | } else { |
111 | $fixedArea.css({ | 111 | $fixedArea.css({ |
112 | position: 'static', | 112 | position: 'static', |
113 | top: 0 | 113 | top: 0 |
114 | }); | 114 | }); |
115 | - $('#pjax-container').css('margin-top', '20px'); | ||
116 | } | 115 | } |
117 | } | 116 | } |
118 | new Swiper('.rec-swiper', { | 117 | new Swiper('.rec-swiper', { |
@@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
122 | content: ""; | 122 | content: ""; |
123 | width: 18px; | 123 | width: 18px; |
124 | height: 18px; | 124 | height: 18px; |
125 | - background: url("/help/a.png") no-repeat; | 125 | + background: url("/help/q.png") no-repeat; |
126 | position: absolute; | 126 | position: absolute; |
127 | left: 0; | 127 | left: 0; |
128 | top: 2px; | 128 | top: 2px; |
@@ -132,7 +132,7 @@ | @@ -132,7 +132,7 @@ | ||
132 | content: ""; | 132 | content: ""; |
133 | width: 18px; | 133 | width: 18px; |
134 | height: 18px; | 134 | height: 18px; |
135 | - background: url("/help/q.png") no-repeat; | 135 | + background: url("/help/a.png") no-repeat; |
136 | position: absolute; | 136 | position: absolute; |
137 | left: 0; | 137 | left: 0; |
138 | } | 138 | } |
@@ -184,11 +184,11 @@ | @@ -184,11 +184,11 @@ | ||
184 | } | 184 | } |
185 | 185 | ||
186 | .a-area:before { | 186 | .a-area:before { |
187 | - background: url("/help/a.png") no-repeat; | 187 | + background: url("/help/q.png") no-repeat; |
188 | } | 188 | } |
189 | 189 | ||
190 | .q-area:before { | 190 | .q-area:before { |
191 | - background: url("/help/q.png") no-repeat; | 191 | + background: url("/help/a.png") no-repeat; |
192 | } | 192 | } |
193 | 193 | ||
194 | .iconfont { | 194 | .iconfont { |
@@ -199,7 +199,7 @@ | @@ -199,7 +199,7 @@ | ||
199 | .list-box { | 199 | .list-box { |
200 | border: 1px solid #e0e0e0; | 200 | border: 1px solid #e0e0e0; |
201 | border-top: 0; | 201 | border-top: 0; |
202 | - height: 153px; | 202 | + height: 152px; |
203 | padding-top: 18px; | 203 | padding-top: 18px; |
204 | padding-bottom: 18px; | 204 | padding-bottom: 18px; |
205 | padding-left: 5px; | 205 | padding-left: 5px; |
@@ -287,7 +287,8 @@ | @@ -287,7 +287,8 @@ | ||
287 | } | 287 | } |
288 | 288 | ||
289 | .good-detail-img, .guang-box, .brand-box { | 289 | .good-detail-img, .guang-box, .brand-box { |
290 | - height: 300px; | 290 | + height: 298px; |
291 | + overflow: hidden; | ||
291 | } | 292 | } |
292 | 293 | ||
293 | .good-detail-text { | 294 | .good-detail-text { |
@@ -334,6 +335,7 @@ | @@ -334,6 +335,7 @@ | ||
334 | 335 | ||
335 | .guang-box { | 336 | .guang-box { |
336 | position: relative; | 337 | position: relative; |
338 | + overflow: hidden; | ||
337 | 339 | ||
338 | .guang-img { | 340 | .guang-img { |
339 | width: 100%; | 341 | width: 100%; |
@@ -377,7 +379,7 @@ | @@ -377,7 +379,7 @@ | ||
377 | 379 | ||
378 | .msg-info { | 380 | .msg-info { |
379 | position: relative; | 381 | position: relative; |
380 | - height: 120px; | 382 | + height: 118px; |
381 | background: #027cf9; | 383 | background: #027cf9; |
382 | color: #fff; | 384 | color: #fff; |
383 | padding: 20px 10px 20px 10px; | 385 | padding: 20px 10px 20px 10px; |
-
Please register or login to post a comment