diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index e6616b0..ae39ab1 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -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(); + }) } //界面加载