From cf3403cb1417cab7a6aa4ed6728d648e8b0738a9 Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Wed, 11 Apr 2018 12:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=88=91=E7=9A=84=E6=88=BF?= =?UTF-8?q?=E4=BA=A7=E7=99=BB=E5=BD=95=E6=B2=A1=E6=95=B0=E6=8D=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/houseList.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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(); + }) } //界面加载