From f076ee073945758d2452b74a4f93daf38c0d27b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Fri, 4 May 2018 15:55:20 +0800 Subject: [PATCH 1/2] fix bug --- fangija-zsyf/main.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 8c15116..b0b0305 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -182,6 +182,10 @@ success: function(resData) { if (resData.status) { var data = resData.data; + localStorage.removeItem("startPageImgUrl"); + localStorage.removeItem("startPageId"); + localStorage.removeItem("startPageClickUrl"); + localStorage.removeItem("guidePageUrls"); if (data.imgUrl != null) { localStorage.setItem("startPageImgUrl", data.imgUrl); } From 8fa218a28b8005d5fa13911eb3cc33da9725780b Mon Sep 17 00:00:00 2001 From: raoyanhui Date: Fri, 4 May 2018 17:43:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=BF=E4=BA=A7?= =?UTF-8?q?=E8=AF=84=E4=BC=B0=E5=88=97=E8=A1=A8=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=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;