Authored by 郝肖肖

footer 潮流优选

@@ -48,8 +48,7 @@ const getProductBatch = (productSkn) => { @@ -48,8 +48,7 @@ const getProductBatch = (productSkn) => {
48 productSkn = _.isArray(productSkn) ? productSkn : [productSkn]; 48 productSkn = _.isArray(productSkn) ? productSkn : [productSkn];
49 return api.get('', { 49 return api.get('', {
50 method: 'h5.product.batch', 50 method: 'h5.product.batch',
51 - productSkn: productSkn.join(','),  
52 - app_type: 1 51 + productSkn: productSkn.join(',')
53 }).then(result => { 52 }).then(result => {
54 return result && result.data ? productProcess.processProductList(result.data.product_list) : []; 53 return result && result.data ? productProcess.processProductList(result.data.product_list) : [];
55 }); 54 });
@@ -4,7 +4,8 @@ var $ = require('yoho-jquery'), @@ -4,7 +4,8 @@ var $ = require('yoho-jquery'),
4 loading = require('../plugin/loading'), 4 loading = require('../plugin/loading'),
5 lazyLoad = require('yoho-jquery-lazyload'); 5 lazyLoad = require('yoho-jquery-lazyload');
6 6
7 -var plusstar = {}; 7 +var plusstar = {},
  8 + $footer = $('#yoho-footer');
8 9
9 require('../common'); 10 require('../common');
10 lazyLoad($('img.lazy')); 11 lazyLoad($('img.lazy'));
@@ -94,5 +95,10 @@ plusstar = { @@ -94,5 +95,10 @@ plusstar = {
94 }; 95 };
95 96
96 $(function() { 97 $(function() {
  98 + if ($footer.length > 0) {
  99 + $footer.before(
  100 + '<div style="height: ' + parseInt($footer.css('height'), 0) + 'px"></div>'
  101 + );
  102 + }
97 plusstar.init(); 103 plusstar.init();
98 }); 104 });