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