控制我的房产登录没数据显示效果

This commit is contained in:
raoyanhui
2018-04-11 12:52:40 +08:00
parent 24f6195417
commit cf3403cb14
+11 -3
View File
@@ -205,6 +205,12 @@ function selectHouseInfoList(){
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;
@@ -224,13 +230,15 @@ function checkIsLogin(){
}else{
selectHouseInfoList();
//控制显示
$('#page-group-nologin').hide();
$('#page-group-login').show();
/*$('#page-group-nologin').hide();
$('#page-group-login').show();*/
}
}
function gotoAddHouse(){
clicked('/views/house/add.html',true,false,{},{type:0},function(){});
clicked('/views/house/add.html',true,false,{},{type:0},function(){
checkIsLogin();
})
}
//界面加载