控制我的房产登录没数据显示效果
This commit is contained in:
@@ -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();
|
||||
})
|
||||
}
|
||||
|
||||
//界面加载
|
||||
|
||||
Reference in New Issue
Block a user