Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1

This commit is contained in:
2018-05-07 14:02:39 +08:00
5 changed files with 38 additions and 22 deletions
+22 -2
View File
@@ -337,7 +337,8 @@ $(document).on('infinite', '.infinite-scroll',function() {
// 加载完毕,则注销无限加载事件,以防不必要的加载
//$.detachInfiniteScroll($('.infinite-scroll'));
// 删除加载提示符
$('#loadTip1').remove();
//$('#loadTip1').remove();
$('#loadTip1').hide();
return;
}
//控制查询下一页的数据
@@ -453,7 +454,8 @@ $(document).on("click",".confirm-ok", function () {
$.toast(response.data.data);
//删除后,如果需要调用checkIsLogin,需要所有的参数初始化
//checkIsLogin();
window.location.reload();
//window.location.reload();
initMyHouseParams();
//删除房产会影响个人中心房产列表, 刷新
/*if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
plus.webview.getWebviewById('views/user/userInfo.html').reload();
@@ -469,6 +471,24 @@ $(document).on("click",".confirm-ok", function () {
$(".modal-text").css("text-align","center");
});
//初始化分页参数, 防止回调时候重新请求出错
function initMyHouseParams(){
mh_loading = false;
mh_page = undefined;
var mh_pageSize = undefined;
var mh_totalPages = undefined;
var mh_totalRecords = undefined;
var mh_lastIndex = undefined;
var mh_itemsPerLoad = undefined;
var mh_maxItems = 100;
//清空构造的container
$('#myhouse').html('');
// 删除加载提示符
$('#loadTip1').show();
//加载我的房产
selectHouseInfoList();
}
function openSettingPage() {
clicked('../setting/setting.html',true,false,{},{},function(){})
}