diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html
index dd114fa..ed68854 100644
--- a/fangija-zsyf/views/user/userInfo.html
+++ b/fangija-zsyf/views/user/userInfo.html
@@ -445,6 +445,36 @@ function selectUserInfo(){
});
}
+//删除房产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);
+ //删除后,如果需要调用checkIsLogin,需要所有的参数初始化
+ //checkIsLogin();
+ window.location.reload();
+ //删除房产会影响个人中心房产列表, 刷新
+ /*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");
+});
+
function openSettingPage() {
clicked('../setting/setting.html',true,false,{},{},function(){})
}