diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index f853c09..ef226ce 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -297,6 +297,10 @@ em.down{color:#88D053;} .list-block .add01{padding:0 0.5rem;top:1.1rem;right:0.75rem;} .list-block .add01a{top:inherit;bottom:0.75rem;right:0.75rem;} .list-block .delete{width:1.5rem;height:1.55rem;background:url(../images/delete.png) no-repeat center center;background-size:100%;position:absolute;top:-1px;right:0;} +.starBox{position:absolute;top:0.6rem;right:1.25rem;font-size:0.7rem;color:#666;text-align:right;} +.starBox .star{display:block;} +.starBox .star .icon{margin-right:0;margin-left:0.1rem;} +.cardPrice .starBox{top:0.55rem;right:0.75rem;} .list-block li.noData{padding:0.75rem;padding-top:1rem;} .list-block li.noData img{margin:0 auto;} diff --git a/fangija-zsyf/js/user/myHouse.js b/fangija-zsyf/js/user/myHouse.js index 0f13b8d..c49a6a5 100644 --- a/fangija-zsyf/js/user/myHouse.js +++ b/fangija-zsyf/js/user/myHouse.js @@ -115,25 +115,31 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, html += "
抵押可贷额度: "+tempTotalPricePercent+"
"; + //调整最新的等级显示(其它等级不显示start) if(result.level!=null && result.level == 1){ - html += "豪宅级"; + //html += "豪宅级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 2){ - html += "公寓级"; + //html += "公寓级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 3){ - html += "平房级"; + //html += "平房级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 4){ - html += "草屋级"; + //html += "草屋级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 5){ - html += "山洞级"; + //html += "山洞级"; + html += '房屋评级'; }else{ - html += "其它"; + //html += "其它"; } + //控制贷款按钮是否可以显示,便于ios版本审核 if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ - html += '立即申请'; - }else{ - html += ''; + html += '立即申请'; } + html += ""; } $('#myhouse').append(html); } \ No newline at end of file diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index 9dc2545..b312ab5 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -169,7 +169,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() { }, 1000); }); -//我的收藏查询请求 +//我的房产查询请求 function selectHouseInfoList(){ axios.get(BASE_PATH + "/rest/index/ourHouseInfoList", { @@ -353,29 +353,63 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq html += "
抵押可贷额度: "+tempTotalPricePercent+"
"; + //调整最新的等级显示(其它等级不显示start) if(result.level!=null && result.level == 1){ - html += "豪宅级"; + //html += "豪宅级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 2){ - html += "公寓级"; + //html += "公寓级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 3){ - html += "平房级"; + //html += "平房级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 4){ - html += "草屋级"; + //html += "草屋级"; + html += '房屋评级'; }else if(result.level!=null && result.level == 5){ - html += "山洞级"; + //html += "山洞级"; + html += '房屋评级'; }else{ - html += "其它"; + //html += "其它"; } + //控制贷款按钮是否可以显示,便于ios版本审核 if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ - html += '立即申请'; - }else{ - html += ''; + html += '立即申请'; } + html += ""; } $('.infinite-scroll-bottom .list-container').append(html); } +//删除房产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(); + //删除房产会影响个人中心房产列表, 刷新 + 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"); +}); + /* 说明-房产等级 */ $(document).on('click','.alert-text-title', function () { $.alert('房产等级是房屋在城市中的综合评级,由高至低分别为 豪宅、公寓、平房、草屋、山洞共5个级别。', '房产等级'); 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(){}) }