From 3162a5d85aa9984634b72a070a714fb653633d88 Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Mon, 16 Apr 2018 14:05:19 +0800 Subject: [PATCH] aa --- fangija-zsyf/css/main.css | 6 ++++-- fangija-zsyf/js/axiosPlugin.js | 1 + fangija-zsyf/js/quotations/cityDetail.js | 2 ++ fangija-zsyf/views/component/nearDist.js | 2 +- fangija-zsyf/views/evaluate/evaluateReport.html | 2 +- fangija-zsyf/views/house/houseDetail.html | 8 ++++---- fangija-zsyf/views/house/houseManageList.html | 7 ++++++- fangija-zsyf/views/rent/rentManager.html | 2 +- 8 files changed, 20 insertions(+), 10 deletions(-) diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index edb2105..06da6da 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -1,6 +1,8 @@ @charset "utf-8"; /* CSS Document */ - +[v-cloak] { + display: none; +} /* 公用 */ *{font-size:16px;font-family:arial,"华文细黑";} ul li{list-style:none;} @@ -1060,7 +1062,7 @@ input::-webkit-input-placeholder{ .topBg02 p a{font-size:0.75rem;} .collection{position:absolute;right:0.75rem;top:0.4rem;text-align:center;color:#666;font-size:0.7rem;} -.collection02{border:solid 1px #C3C0BC;color:#999;} + .icon-collection01{width:16px;height:16px;background:url(../images/icon-collection01.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;} .icon-collection02{width:16px;height:16px;background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;} diff --git a/fangija-zsyf/js/axiosPlugin.js b/fangija-zsyf/js/axiosPlugin.js index 39e6d98..28ffc10 100644 --- a/fangija-zsyf/js/axiosPlugin.js +++ b/fangija-zsyf/js/axiosPlugin.js @@ -1,5 +1,6 @@ axios.defaults.baseURL = BASE_PATH; axios.defaults.headers.post['Content-Type'] = 'application/json'; +axios.defaults.timeout = 10000; // 添加请求拦截器 axios.interceptors.request.use(function (config) { diff --git a/fangija-zsyf/js/quotations/cityDetail.js b/fangija-zsyf/js/quotations/cityDetail.js index ae65de7..53867b6 100644 --- a/fangija-zsyf/js/quotations/cityDetail.js +++ b/fangija-zsyf/js/quotations/cityDetail.js @@ -517,9 +517,11 @@ function docollectCity(city){ //loadMyCollectCity(); $("a[href='#tabQuotation1']").click(); //plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + reloadMyFocus(); }else if(msg == "关注成功"){ cityInfoVue.$data.collecd = true; plus.webview.getWebviewById('views/house/houseDetail.html').reload(); + reloadMyFocus(); }else{ $.toast(msg); } diff --git a/fangija-zsyf/views/component/nearDist.js b/fangija-zsyf/views/component/nearDist.js index cc18123..5ed4012 100644 --- a/fangija-zsyf/views/component/nearDist.js +++ b/fangija-zsyf/views/component/nearDist.js @@ -12,7 +12,7 @@ Vue.component('near-dist-component', {
{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}
- + diff --git a/fangija-zsyf/views/evaluate/evaluateReport.html b/fangija-zsyf/views/evaluate/evaluateReport.html index 5425532..4119adb 100644 --- a/fangija-zsyf/views/evaluate/evaluateReport.html +++ b/fangija-zsyf/views/evaluate/evaluateReport.html @@ -195,7 +195,7 @@ $.config = {router: false} hid:hid, reason:i }).then(function(response){ - alert("感谢您的反馈!") + $.toast("感谢您的反馈!") $("#price_feedback").hide(); }).catch(function(error){console.log(error)}) }, diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index f04faaa..3407dfa 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -36,8 +36,8 @@ -->

房产行情

-
-
+
+
全国
{{mycollectcity}} @@ -46,8 +46,8 @@
-
-
+
+
diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index abe038d..18bce1a 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -208,7 +208,12 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap htmlContent = htmlContent +"
"; htmlContent = htmlContent +"
"+result.city+"-"+result.region+"
"; htmlContent = htmlContent +"
"; - htmlContent = htmlContent +"
"+result.roomCount+"室"+result.hallCount+"厅  "+result.area+"㎡  "+result.floor+"/"+result.height+"层
"; + + //htmlContent = htmlContent +"
"+result.roomCount+"室"+result.hallCount+"厅"; + var houseRoomNum = result.houseRoomNum==""?"暂无":result.houseRoomNum; + htmlContent = htmlContent +"
"+houseRoomNum; + + htmlContent = htmlContent +"  "+result.area+"㎡  "+result.floor+"/"+result.height+"层
" htmlContent = htmlContent +"
"; //对应城市地区小区30天涨跌幅 //动态构建key diff --git a/fangija-zsyf/views/rent/rentManager.html b/fangija-zsyf/views/rent/rentManager.html index a8a0725..8e4f89c 100644 --- a/fangija-zsyf/views/rent/rentManager.html +++ b/fangija-zsyf/views/rent/rentManager.html @@ -146,7 +146,7 @@ function onPlusReady() { // }); // }) var houseInfo = response.data.data.houseInfo; - if(houseInfo.liveStatus=="出租"){ + if(houseInfo && houseInfo.liveStatus=="出租"){ edit.liveStatus=houseInfo.liveStatus; edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate); edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);