Merge branch 'master' into release/guang
Showing
5 changed files
with
12 additions
and
5 deletions
@@ -46,9 +46,12 @@ const getAllChannels = (params) => { | @@ -46,9 +46,12 @@ const getAllChannels = (params) => { | ||
46 | * @return {[array]} | 46 | * @return {[array]} |
47 | */ | 47 | */ |
48 | const getProductBatch = (productSkn, options) => { | 48 | const getProductBatch = (productSkn, options) => { |
49 | - productSkn = _.isArray(productSkn) ? productSkn : [productSkn]; | 49 | + productSkn = _.uniq(_.isArray(productSkn) ? productSkn : [productSkn]); |
50 | + | ||
50 | return api.get('', { | 51 | return api.get('', { |
51 | method: 'h5.product.batch', | 52 | method: 'h5.product.batch', |
53 | + limit: productSkn.length, | ||
54 | + page: 1, | ||
52 | productSkn: productSkn.join(',') | 55 | productSkn: productSkn.join(',') |
53 | }).then(result => { | 56 | }).then(result => { |
54 | return result && result.data ? productProcess.processProductList(result.data.product_list, options) : []; | 57 | return result && result.data ? productProcess.processProductList(result.data.product_list, options) : []; |
@@ -70,6 +70,10 @@ | @@ -70,6 +70,10 @@ | ||
70 | <input class="query-param" type="hidden" data-attr="productPool" value="{{productPool}}"> | 70 | <input class="query-param" type="hidden" data-attr="productPool" value="{{productPool}}"> |
71 | {{/if}} | 71 | {{/if}} |
72 | 72 | ||
73 | +{{#if filter_poolId}} | ||
74 | + <input class="query-param" type="hidden" data-attr="filter_poolId" value="{{filter_poolId}}"> | ||
75 | +{{/if}} | ||
76 | + | ||
73 | {{#if saleType}} | 77 | {{#if saleType}} |
74 | <input class="query-param" type="hidden" data-attr="saleType" value="{{saleType}}"> | 78 | <input class="query-param" type="hidden" data-attr="saleType" value="{{saleType}}"> |
75 | {{/if}} | 79 | {{/if}} |
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <li> | 7 | <li> |
8 | <a href="{{url}}"> | 8 | <a href="{{url}}"> |
9 | <div class="img-box"> | 9 | <div class="img-box"> |
10 | - <img class="lazy" data-original="{{image src 180 320}}" alt=""> | 10 | + <img class="lazy" data-original="{{image src 320 154}}" alt=""> |
11 | </div> | 11 | </div> |
12 | </a> | 12 | </a> |
13 | </li> | 13 | </li> |
@@ -198,7 +198,7 @@ function reMarginFooter(fixedElement) { | @@ -198,7 +198,7 @@ function reMarginFooter(fixedElement) { | ||
198 | }(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas')); | 198 | }(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas')); |
199 | 199 | ||
200 | (function() { | 200 | (function() { |
201 | - var uid = getUid(); | 201 | + var uid = getUid() || queryString().uid; |
202 | 202 | ||
203 | uid = uid === 0 ? '' : uid; | 203 | uid = uid === 0 ? '' : uid; |
204 | 204 |
-
Please register or login to post a comment