Authored by 梁志锋

fix bugs for 商品详情页描述不能换行,以及首页可能喜欢提前一些时间进行按需加载 code review by bikai

@@ -138,7 +138,7 @@ $('.maybe-like p').on('touchstart', function(e) { @@ -138,7 +138,7 @@ $('.maybe-like p').on('touchstart', function(e) {
138 }); 138 });
139 139
140 function scrollHandler() { 140 function scrollHandler() {
141 - if ($(window).scrollTop() + winH >= $(document).height() - 50) { 141 + if ($(window).scrollTop() + winH >= $(document).height() - 200) {
142 search(); 142 search();
143 } 143 }
144 } 144 }
@@ -380,7 +380,6 @@ class DetailModel @@ -380,7 +380,6 @@ class DetailModel
380 'desc' => strtr($productIntro, array( 380 'desc' => strtr($productIntro, array(
381 '\r\n\t' => '', 381 '\r\n\t' => '',
382 '</p>' => '', 382 '</p>' => '',
383 - '<br />' => "\r\n",  
384 '<img src=' => "<img class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=", 383 '<img src=' => "<img class=\"lazy\" src=\"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==\" data-original=",
385 )), 384 )),
386 ); 385 );