Authored by Lynnic

为您优选数据不加载时隐藏外层容器 --code reviewed by bikai

@@ -82,6 +82,8 @@ $.ajax({ @@ -82,6 +82,8 @@ $.ajax({
82 } 82 }
83 }); 83 });
84 84
85 - 85 +if ($('.good-detail-page').length > 0) {
  86 + $('#yoho-footer').css('border-top', '1px solid #e0e0e0');
  87 +}
86 88
87 require('./like'); 89 require('./like');
@@ -14,6 +14,9 @@ var recommendSwiper, @@ -14,6 +14,9 @@ var recommendSwiper,
14 14
15 if (preferenceUrl) { 15 if (preferenceUrl) {
16 $.get(preferenceUrl).then(function(html) { 16 $.get(preferenceUrl).then(function(html) {
  17 + if (html.length < 5) {
  18 + $recommendForYou.css('display', 'none');
  19 + } else {
17 $recommendForYou.html(html).show(); 20 $recommendForYou.html(html).show();
18 if ($('#swiper-recommend').length) { 21 if ($('#swiper-recommend').length) {
19 recommendSwiper = new Swiper('#swiper-recommend', { 22 recommendSwiper = new Swiper('#swiper-recommend', {
@@ -24,6 +27,7 @@ if (preferenceUrl) { @@ -24,6 +27,7 @@ if (preferenceUrl) {
24 watchSlidesVisibility: true 27 watchSlidesVisibility: true
25 }); 28 });
26 } 29 }
  30 + }
27 31
28 window.rePosFooter(); 32 window.rePosFooter();
29 33
@@ -402,6 +402,7 @@ $basicBtnC:#eb0313; @@ -402,6 +402,7 @@ $basicBtnC:#eb0313;
402 z-index: 2; 402 z-index: 2;
403 padding: pxToRem(20px) pxToRem(28px); 403 padding: pxToRem(20px) pxToRem(28px);
404 text-align: center; 404 text-align: center;
  405 + border-top: 1px solid $borderC;
405 a { 406 a {
406 display: inline-block; 407 display: inline-block;
407 &.num-incart { 408 &.num-incart {
@@ -447,9 +448,9 @@ $basicBtnC:#eb0313; @@ -447,9 +448,9 @@ $basicBtnC:#eb0313;
447 } 448 }
448 } 449 }
449 } 450 }
450 - // .recommend-for-you {  
451 - // margin-bottom: pxToRem(30px);  
452 - // } 451 + .recommend-for-you{
  452 + border-bottom: none;
  453 + }
453 .yoho-tip{ 454 .yoho-tip{
454 top:40%; 455 top:40%;
455 } 456 }