This commit is contained in:
xuhe@fangjia.com
2018-04-11 13:26:13 +08:00
parent 74c811818d
commit d55ad1ddc9
6 changed files with 239 additions and 79 deletions
+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();
})
}
//界面加载