diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index b5635a9..54495dd 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -142,6 +142,35 @@ $(document).on('click','.open-vertical-modal', function () { }) }); +//删除房产AJAX请求 +$(document).on("click",".confirm-ok", function () { + //获取删除的房产id + var id = $(this).attr("id"); + $.confirm("确定删除?", function () { + axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus", + { + id: id + }).then(function (response) { + var status = response.data.status; + if(status){ + $.toast(response.data.data); + $('.loadingBgDiv').show(); + checkIsLogin(); + //删除评估房产不会影响个人中心房产列表, 不用刷新 + /*if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){ + plus.webview.getWebviewById('views/user/userInfo.html').reload(); + }*/ + //plus.webview.getWebviewById('yfindex.html').reload(); + }else{ + $.toast(response.data.message); + } + }).catch(function (error) { + console.log(error); + }); + }); + $(".modal-text").css("text-align","center"); +}); + //添加管理AJAX请求 function addManagement(id, houseStatus, liveStatus){ axios.post(BASE_PATH + "/rest/evaluate/addManagement", @@ -265,7 +294,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap htmlContent = htmlContent + "
均价: "+tempPrice+"
"; htmlContent = htmlContent + "
"+tempTotalPrice+"
"; htmlContent = htmlContent + "添加管理" - htmlContent = htmlContent +""; + htmlContent = htmlContent +""; } } return htmlContent;