...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
* @Author: Targaryen
|
|
|
* @Date: 2017-05-25 14:36:33
|
|
|
* @Last Modified by: Targaryen
|
|
|
* @Last Modified time: 2017-06-02 10:27:40
|
|
|
* @Last Modified time: 2017-06-02 10:51:56
|
|
|
*/
|
|
|
const $ = require('yoho-jquery');
|
|
|
const article_id = $('#guangDetail').data('id');
|
...
|
...
|
@@ -52,7 +52,7 @@ const getComments = () => { |
|
|
* 当scroll到1/2$goodsContainer高度后继续请求下一页数据
|
|
|
*/
|
|
|
const scrollHandler = function() {
|
|
|
if ($(window).scrollTop() > $comments.height() * 0.6) {
|
|
|
if ($(window).scrollTop() > $('#guangDetail').height() * 0.6) {
|
|
|
getComments();
|
|
|
}
|
|
|
};
|
...
|
...
|
|