调整房产列表
This commit is contained in:
@@ -168,6 +168,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
|
||||
//我的收藏查询请求
|
||||
function selectHouseInfoList(){
|
||||
axios.get(BASE_PATH + "/rest/index/ourHouseInfoList",
|
||||
@@ -182,6 +183,18 @@ function selectHouseInfoList(){
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
||||
// 上次加载的序号
|
||||
lastIndex = $('.list-container li').length;
|
||||
//登录状态,但没有数据
|
||||
if(lastIndex == 0 && resultList.length ==0){
|
||||
//控制显示
|
||||
$('#page-group-nologin').show();
|
||||
$('#page-group-login').hide();
|
||||
}else{
|
||||
//控制显示
|
||||
$('#page-group-nologin').hide();
|
||||
$('#page-group-login').show();
|
||||
}
|
||||
if(resultList != null && resultList.length == 0){
|
||||
// 删除加载提示符
|
||||
$('.infinite-scroll-preloader').remove();
|
||||
@@ -201,16 +214,8 @@ function selectHouseInfoList(){
|
||||
for(var i in resultList){
|
||||
dataObj.push(resultList[i])
|
||||
}
|
||||
// 上次加载的序号
|
||||
lastIndex = $('.cardInfo').length;
|
||||
//每次加载添加多少条目
|
||||
itemsPerLoad = resultList.length;
|
||||
//登录状态,但没有数据
|
||||
if(lastIndex == 0 && resultList.length ==0){
|
||||
//控制显示
|
||||
$('#page-group-nologin').hide();
|
||||
$('#page-group-login').show();
|
||||
}
|
||||
//请求后对page进行赋值
|
||||
page = resultsMap.houseInfoPageList.currentPage;
|
||||
pageSize = resultsMap.houseInfoPageList.limit;
|
||||
@@ -228,10 +233,8 @@ function checkIsLogin(){
|
||||
$('#page-group-login').hide();
|
||||
$('#page-group-nologin').show();
|
||||
}else{
|
||||
selectHouseInfoList();
|
||||
//控制显示
|
||||
/*$('#page-group-nologin').hide();
|
||||
$('#page-group-login').show();*/
|
||||
selectHouseInfoList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user