From 8fa218a28b8005d5fa13911eb3cc33da9725780b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Fri, 4 May 2018 17:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=BF=E4=BA=A7=E8=AF=84?= =?UTF-8?q?=E4=BC=B0=E5=88=97=E8=A1=A8=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/house/houseManageList.html | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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;