diff --git a/fangija-zsyf/js/ad_position_image.js b/fangija-zsyf/js/ad_position_image.js index 755d4ac..3135ae4 100644 --- a/fangija-zsyf/js/ad_position_image.js +++ b/fangija-zsyf/js/ad_position_image.js @@ -4,6 +4,10 @@ function add_imgage(imageId,adPosition,device){ }).then(function(response){ if(response.data.status){ var h = response.data.data; + if (h == "" || h == null) { + return; + } + console.log(h); if(typeof(h.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){ $("#"+imageId).attr("src",h.imgUrl); } diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 02bf3c8..ed4dfb9 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -1741,13 +1741,13 @@ function addFocus(city){ }else{ axios.get("/rest/quotations/collectCity",{params:{city:city,type:0}}).then(function(response){ - reloadMyFocus() - reloadCityIncreaseRanking() - reloadCityPotentialRanking() + if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) { plus.webview.getWebviewById('views/house/houseDetail.html').reload(); } - + /*reloadMyFocus() + reloadCityIncreaseRanking() + reloadCityPotentialRanking()*/ if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) { plus.webview.getWebviewById('views/house/houseManageList.html').reload(); }