提交个人中心房产删除效果

This commit is contained in:
raoyanhui
2018-05-06 14:41:09 +08:00
parent d914ca9716
commit 1a5d2ab2e3
+30
View File
@@ -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(){})
}