Showing
1 changed file
with
17 additions
and
13 deletions
@@ -552,12 +552,14 @@ function search(opt) { | @@ -552,12 +552,14 @@ function search(opt) { | ||
552 | FILTER_VALUE: FILTER_VALUE | 552 | FILTER_VALUE: FILTER_VALUE |
553 | }); | 553 | }); |
554 | 554 | ||
555 | - if (window._yas && window._yas.sendCustomInfo) { | ||
556 | - window._yas.sendCustomInfo({ | ||
557 | - op: optype, | ||
558 | - param: JSON.stringify(yasparm) | ||
559 | - }, true); | ||
560 | - } | 555 | + setTimeout(function() { |
556 | + if (window._yas && window._yas.sendCustomInfo) { | ||
557 | + window._yas.sendCustomInfo({ | ||
558 | + op: optype, | ||
559 | + param: JSON.stringify(yasparm) | ||
560 | + }, true); | ||
561 | + } | ||
562 | + }, 200) | ||
561 | } else { | 563 | } else { |
562 | num = $container.find('.good-info').length; | 564 | num = $container.find('.good-info').length; |
563 | $container.append(data); | 565 | $container.append(data); |
@@ -585,12 +587,14 @@ function search(opt) { | @@ -585,12 +587,14 @@ function search(opt) { | ||
585 | FILTER_VALUE: FILTER_VALUE | 587 | FILTER_VALUE: FILTER_VALUE |
586 | }); | 588 | }); |
587 | 589 | ||
588 | - if (window._yas && window._yas.sendCustomInfo) { | ||
589 | - window._yas.sendCustomInfo({ | ||
590 | - op: optype, | ||
591 | - param: JSON.stringify(yasparm) | ||
592 | - }, true); | ||
593 | - } | 590 | + setTimeout(function() { |
591 | + if (window._yas && window._yas.sendCustomInfo) { | ||
592 | + window._yas.sendCustomInfo({ | ||
593 | + op: optype, | ||
594 | + param: JSON.stringify(yasparm) | ||
595 | + }, true); | ||
596 | + } | ||
597 | + }, 200) | ||
594 | 598 | ||
595 | // lazy good-infos who append in | 599 | // lazy good-infos who append in |
596 | lazyLoad($container.find('.good-info:gt(' + (num - 1) + ') .lazy')); | 600 | lazyLoad($container.find('.good-info:gt(' + (num - 1) + ') .lazy')); |
@@ -1098,5 +1102,5 @@ $('#goods-container').on('click', '.good-info', function() { | @@ -1098,5 +1102,5 @@ $('#goods-container').on('click', '.good-info', function() { | ||
1098 | }, true); | 1102 | }, true); |
1099 | } | 1103 | } |
1100 | 1104 | ||
1101 | - // return false; | 1105 | + return false; |
1102 | }); | 1106 | }); |
-
Please register or login to post a comment