+
+
+
+
+
![]()
+
+
+
+
+
@@ -40,30 +49,101 @@
-
+
+
+
+
+
diff --git a/fangija-zsyf/views/changeHouse/index.html b/fangija-zsyf/views/changeHouse/index.html
new file mode 100644
index 0000000..8fe9bb4
--- /dev/null
+++ b/fangija-zsyf/views/changeHouse/index.html
@@ -0,0 +1,1828 @@
+
+
+
+
+
+
我要置换
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+
+
填写置换需求,为您智能筛选小区:
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fangija-zsyf/views/changeHouse/result.html b/fangija-zsyf/views/changeHouse/result.html
new file mode 100644
index 0000000..c5ed03f
--- /dev/null
+++ b/fangija-zsyf/views/changeHouse/result.html
@@ -0,0 +1,407 @@
+
+
+
+
+
+
置换方案建议
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
匹配出满足需求的{{matchCount}}个小区,智能推荐以下最合适的:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fangija-zsyf/views/component/baseInfoComponent.js b/fangija-zsyf/views/component/baseInfoComponent.js
index abc8111..060a22c 100644
--- a/fangija-zsyf/views/component/baseInfoComponent.js
+++ b/fangija-zsyf/views/component/baseInfoComponent.js
@@ -99,6 +99,7 @@ Vue.component('base-info-component', {
loadDistrictInfo:function(){
axios.get("/rest/districts/detail", {
params: {
+ rid:rid,
city: city,
region:region,
name: name
@@ -107,6 +108,12 @@ Vue.component('base-info-component', {
var vo = response.data.data.detail
var cityPrice = response.data.data.cityPrice
var collected = response.data.data.collected
+ var sr = response.data.data.substitutionResult
+ var hs = response.data.data.houseSubstitution;
+ var house = response.data.data.houseInfo;
+ if(hs && sr){
+ addSubstitution(sr, hs, house);
+ }
if(cityPrice){
baseInfo.cityPrice = cityPrice
}
@@ -246,3 +253,55 @@ function getStarContent(starScore){
return html;
}
+function addSubstitution(sr, hs, house){
+ var s = "购买 "+sr.name;
+ if(sr.intentionArea==0){
+ s += "50平米以下"
+ }else if(sr.intentionArea==1){
+ s += "50-70平米"
+ }else if(sr.intentionArea==2){
+ s += "70-90平米"
+ }else if(sr.intentionArea==3){
+ s += "90-110平米"
+ }else if(sr.intentionArea==4){
+ s += "110-150平米"
+ }else if(sr.intentionArea==5){
+ s += "150-200平米"
+ }else if(sr.intentionArea==6){
+ s += "200-300平米"
+ }else if(sr.intentionArea==7){
+ s += "300平米以上"
+ }
+ s += "的房子,总价预计约为"
+ if(sr.intentionArea==0){
+ s += parseInt(sr.maxTotalPrice/10000)+"万以内"
+ }else if(sr.intentionArea==7){
+ s += parseInt(sr.minTotalPrice/10000)+"万以上"
+ }else{
+ s += parseInt(sr.minTotalPrice/10000)+"-"+parseInt(sr.maxTotalPrice/10000)+"万"
+ }
+
+
+ var soufu_min=((sr.minTotalPrice * hs.shoufu/100)/10000)
+ var soufu_max=((sr.maxTotalPrice * hs.shoufu/100)/10000)
+ var initPrice = 0;
+ if(hs.substitutionType==1){
+ initPrice = hs.curMoney + house.totalPrice/10000;
+ }else if(hs.substitutionType==0){
+ initPrice = hs.curMoney
+ }
+
+ if(initPrice < soufu_min){
+ s +=",资金缺口约为"+((soufu_min-initPrice)-(soufu_max-initPrice))+"万";
+ }else if(initPrice > soufu_min && initPrice < soufu_max){
+ s += ",资金缺口约为"+(soufu_max-initPrice)+"万";
+ }else if(initPrice > soufu_max){
+ s += "。";
+ }
+
+// <#if advertisement?? && advertisement.content?? && advertisement.content?length gt 0>
+//
onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"#if> ><#if advertisement.content??>${advertisement.content!}#if>
+// #if>
+ $("#suggestDiv").text(s);
+}
+
diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js
index 09e3987..3f4012b 100644
--- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js
+++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js
@@ -58,7 +58,9 @@ Vue.component('city_increase_ranking',{
var msg = response.data.message;
if(msg != "取消关注成功" && msg != "关注成功"){
$.toast(msg);
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
}else{
//$(event.target).parent().children().removeClass("dn");
//$(event.target).addClass("dn");
@@ -80,7 +82,9 @@ Vue.component('city_increase_ranking',{
}
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
// loadMyCollectCity()
if(type == 0){
@@ -97,11 +101,17 @@ Vue.component('city_increase_ranking',{
console.log(error)
})
},function(){
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if (plus.webview.getWebviewById('views/house/houseDetail.html') != null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
});
-
- plus.webview.getWebviewById('views/house/houseManageList.html').reload();
- plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
+ plus.webview.getWebviewById('views/house/houseManageList.html').reload();
+ }
+ if(plus.webview.getWebviewById('views/user/userInfo.html') != null) {
+ plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ }
+
}
})
}else{
diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js
index ac9161c..54d9ae3 100644
--- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js
+++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js
@@ -77,7 +77,10 @@ Vue.component('city_potential_ranking',{
var msg = response.data.message;
if(msg != "取消关注成功" && msg != "关注成功"){
$.toast(msg);
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
+
}else{
//$(event.target).parent().children().removeClass("dn");
//$(event.target).addClass("dn");
@@ -96,7 +99,10 @@ Vue.component('city_potential_ranking',{
}
}
}
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
+
reloadMyFocus()
reloadCityIncreaseRanking()
@@ -106,11 +112,16 @@ Vue.component('city_potential_ranking',{
console.log(error)
})
},function(){
- plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
+ plus.webview.getWebviewById('views/house/houseDetail.html').reload();
+ }
});
-
- plus.webview.getWebviewById('views/house/houseManageList.html').reload();
- plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
+ plus.webview.getWebviewById('views/house/houseManageList.html').reload();
+ }
+ if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
+ plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ }
}
})
}else{
diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html
index 3627840..e37bf27 100644
--- a/fangija-zsyf/views/district/detail.html
+++ b/fangija-zsyf/views/district/detail.html
@@ -36,6 +36,8 @@
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:11px;left:0;z-index:100;}
.loadingBg .infinite-scroll-preloader{margin-top:30%;}
+
+
@@ -58,6 +60,10 @@
{{name}}
+
+
购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为587-717万。
查看详情
+
+
-
出租管理
-
+
+
+
+
+
+
小区本月租金
@@ -329,6 +363,7 @@ var name;
var oriCity;
var oriRegion;
var oriName;
+var mode = "line"
//扩展API加载完毕,现在可以正常调用扩展API
function onPlusReady(){
var self = plus.webview.currentWebview();
@@ -529,10 +564,14 @@ function addManagement(id, houseStatus, liveStatus){
}).then(function (response) {
var status = response.data.status;
if(status){
- plus.webview.getWebviewById('views/house/houseManageList.html').reload();
- plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
+ plus.webview.getWebviewById('views/house/houseManageList.html').reload();
+ }
+
+ if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
+ plus.webview.getWebviewById('views/user/userInfo.html').reload();
+ }
$.toast("修改状态成功!");
- plus.webview.getWebviewById('views/user/userInfo.html').reload();
}else{
$.toast(response.data.message);
}
@@ -561,10 +600,7 @@ function loadMap(){
}
function loadChart(){
if(city && region && name){
- /* 小区均价分析 */
- loadKLineData(city, region, name);
- /* 小区租金走势 */
- loadRentTrends(city, region, name);
+ inintChart(city, region, name);
window.clearInterval(t2);
}
}
@@ -592,6 +628,15 @@ function gotoLoanApply(){
function gotoRentManager(){
clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){})
}
+
+//出售分析
+function gotoSaleAnalysis(){
+ clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId},function(){})
+}
+
+function gotoChangeHouse(){
+ clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){})
+}