...
|
...
|
@@ -10,7 +10,12 @@ var lazyLoad = require('yoho-jquery-lazyload'); |
|
|
|
|
|
var $latestWalkCount = $('#latest-walk-count');
|
|
|
|
|
|
(function() {
|
|
|
var dataLazyLoad = require('../../plugins/lazy-load')(document);
|
|
|
|
|
|
// 数据懒加载
|
|
|
dataLazyLoad.init({cls: 'datalazyload', threshold: -50});
|
|
|
|
|
|
function fetchLatestWalk() {
|
|
|
var tpl;
|
|
|
|
|
|
if ($latestWalkCount.length === 0) {
|
...
|
...
|
@@ -59,4 +64,6 @@ var $latestWalkCount = $('#latest-walk-count'); |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}()); |
|
|
}
|
|
|
|
|
|
window.fetchLatestWalk = fetchLatestWalk; |
...
|
...
|
|