Authored by Lynnic

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

@@ -99,7 +99,7 @@ function rePosFooter() { @@ -99,7 +99,7 @@ function rePosFooter() {
99 return; 99 return;
100 } 100 }
101 101
102 - if ($('body').height() <= $(window).height()) { 102 + if ($('body').height() <= $(window).height() - 122) {
103 $footer.addClass('bottom'); 103 $footer.addClass('bottom');
104 } else { 104 } else {
105 $footer.removeClass('bottom'); 105 $footer.removeClass('bottom');
@@ -26,6 +26,8 @@ var $action = $('.action'), @@ -26,6 +26,8 @@ var $action = $('.action'),
26 // 清除原有链接 26 // 清除原有链接
27 $backBtn.attr('href', 'javascript:void(0);'); 27 $backBtn.attr('href', 'javascript:void(0);');
28 28
  29 +window.rePosFooter();
  30 +
29 // 自定义事件 31 // 自定义事件
30 $backBtn.on('touchend', function(e) { 32 $backBtn.on('touchend', function(e) {
31 if (currentPage === 'edit') { 33 if (currentPage === 'edit') {
@@ -12,7 +12,7 @@ var recommendSwiper, @@ -12,7 +12,7 @@ var recommendSwiper,
12 $recommendForYou = $('.recommend-for-you'); 12 $recommendForYou = $('.recommend-for-you');
13 13
14 $.get('/home/preference').then(function(html) { 14 $.get('/home/preference').then(function(html) {
15 - $recommendForYou.html(html); 15 + $recommendForYou.html(html).show();
16 if ($('#swiper-recommend').length) { 16 if ($('#swiper-recommend').length) {
17 recommendSwiper = new Swiper('#swiper-recommend', { 17 recommendSwiper = new Swiper('#swiper-recommend', {
18 slidesPerView: 'auto', 18 slidesPerView: 'auto',