调整个人中心的删除后加载效果, 不用reload
This commit is contained in:
@@ -28,9 +28,14 @@ function selectHouseInfoList(){
|
||||
var xqOneMonthUpDownRangeMap = resultsMap.xqOneMonthUpDownRangeMap;
|
||||
var xqPotentialIndexMap = resultsMap.xqPotentialIndexMap;
|
||||
var houseInfoTotalMap = resultsMap.houseInfoTotalMap;
|
||||
//调整统计num的顺序
|
||||
mh_totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
||||
tab.mh_num = mh_totalRecords;
|
||||
|
||||
if(resultList != null && resultList.length == 0){
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
$('#loadTip1').hide();
|
||||
//$('#loadTip1').remove();
|
||||
//$('.infinite-scroll-preloader').remove();
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
@@ -39,7 +44,8 @@ function selectHouseInfoList(){
|
||||
if(resultsMap.houseInfoPageList.currentPage == resultsMap.houseInfoPageList.totalPages){
|
||||
//如果此次查询刚好是page = totalPages
|
||||
// 删除加载提示符
|
||||
$('#loadTip1').remove();
|
||||
$('#loadTip1').hide();
|
||||
//$('#loadTip1').remove();
|
||||
//$('.infinite-scroll-preloader').remove();
|
||||
// 加载完毕,则注销无限加载事件,以防不必要的加载
|
||||
//$.detachInfiniteScroll($('.infinite-scroll'));
|
||||
@@ -57,8 +63,6 @@ function selectHouseInfoList(){
|
||||
mh_page = resultsMap.houseInfoPageList.currentPage;
|
||||
mh_pageSize = resultsMap.houseInfoPageList.limit;
|
||||
mh_totalPages = resultsMap.houseInfoPageList.totalPages;
|
||||
mh_totalRecords = resultsMap.houseInfoPageList.totalRecords;
|
||||
tab.mh_num = mh_totalRecords;
|
||||
mhAddItems(mh_itemsPerLoad, mh_lastIndex, dataObj, xqOneMonthUpDownRangeMap, xqPotentialIndexMap, houseInfoTotalMap);
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user