Authored by Lynnic

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

@@ -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 }
@@ -425,6 +425,13 @@ if ($brandHeader.length > 0) { @@ -425,6 +425,13 @@ if ($brandHeader.length > 0) {
425 success: function(data) { 425 success: function(data) {
426 if (data.code === 200) { 426 if (data.code === 200) {
427 $this.toggleClass('coled'); 427 $this.toggleClass('coled');
  428 +
  429 + //提示
  430 + if (opt === 'ok') {
  431 + tip.show('添加收藏成功');
  432 + } else {
  433 + tip.show('取消收藏成功');
  434 + }
428 } else if (data.code === 400) { 435 } else if (data.code === 400) {
429 location.href = data.data;//未登录跳转登录页 436 location.href = data.data;//未登录跳转登录页
430 } else { 437 } else {
@@ -204,6 +204,7 @@ @@ -204,6 +204,7 @@
204 position: absolute; 204 position: absolute;
205 top: 20rem / $pxConvertRem; 205 top: 20rem / $pxConvertRem;
206 right: 30rem / $pxConvertRem; 206 right: 30rem / $pxConvertRem;
  207 + text-align: right;
207 } 208 }
208 209
209 .price { 210 .price {
@@ -216,4 +217,8 @@ @@ -216,4 +217,8 @@
216 text-align: right; 217 text-align: right;
217 line-height: 45rem / $pxConvertRem; 218 line-height: 45rem / $pxConvertRem;
218 } 219 }
  220 +
  221 + .appear-date {
  222 + color: #f00;
  223 + }
219 } 224 }
1 -<div class="order-good" data-id={{id}}> 1 +<div class="order-good" data-id="{{id}}">
2 <div class="thumb-wrap"> 2 <div class="thumb-wrap">
3 - <img class="thumb lazy" data-original={{thumb}}> 3 + <img class="thumb lazy" data-original="{{thumb}}">
4 <p class="tag{{#if gift}} gift-tag{{/if}}{{#if advanceBuy}} advance-buy-tag{{/if}}"></p> 4 <p class="tag{{#if gift}} gift-tag{{/if}}{{#if advanceBuy}} advance-buy-tag{{/if}}"></p>
5 </div> 5 </div>
6 <div class="deps"> 6 <div class="deps">
@@ -25,6 +25,9 @@ @@ -25,6 +25,9 @@
25 <span class="count"> 25 <span class="count">
26 ×{{count}} 26 ×{{count}}
27 </span> 27 </span>
  28 + {{#if appearDate}}
  29 + <span class="appear-date">上市期:{{appearDate}}</span>
  30 + {{/if}}
28 </p> 31 </p>
29 </div> 32 </div>
30 </div> 33 </div>
@@ -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 );