Authored by zhangxiaoru

动态获取逛

... ... @@ -6,8 +6,8 @@
var $ = require('yoho-jquery');
var info = require('./info'),
loadMore = info.loadMore;
var info = require('./info');
var loadMore = info.loadMore;
var $loadMoreInfo = $('#load-more-info');
var $loading = $(''),
... ... @@ -53,7 +53,7 @@ info.initInfosEvt($infoList);
getDynamicData.getDynamicData();
}());
$nav.bind('contextmenu', function(e) {
$nav.bind('contextmenu', function() {
return false;
});
$nav.on('touchend touchcancel', function(e) {
... ...
... ... @@ -43,7 +43,7 @@ function getUrlParam(name) {
var r = window.location.search.substr(1).match(reg);
// 返回参数值
if (r != null) {
if (r !== null) {
return r[2];
}
... ... @@ -260,7 +260,7 @@ function loadMore($container, opt, url) {
searching = false;
delete opt.isTab;
},
error: function() {
tip.show('网络断开连接了~');
... ...
... ... @@ -85,7 +85,7 @@ function getDynamicData() {
});
getDynamicByIds(idArr.join(',')).then(renderData);
};
}
module.exports = {
getDynamicData
... ...