This commit is contained in:
2018-05-07 12:33:23 +08:00
parent baf45f310f
commit e77d1d606b
6 changed files with 41 additions and 16 deletions
+4 -7
View File
@@ -1,14 +1,11 @@
/**服务端地址**/ /**服务端地址**/
//var BASE_PATH = "http://youfang.fangjia.com"; //var BASE_PATH = "http://youfang.fangjia.com";
//var BASE_PATH = "http://192.168.10.128:8084"; //var BASE_PATH = "http://192.168.10.128:8084";
<<<<<<< HEAD
var BASE_PATH = "http://192.168.10.47:8086";
//var BASE_PATH = "http://192.168.10.161:8084";
=======
//var BASE_PATH = "http://192.168.10.47:8086"; //var BASE_PATH = "http://192.168.10.47:8086";
>>>>>>> 9c25ef0b2e3f9e2a19df5038da587d6c53827469 //var BASE_PATH = "http://192.168.10.161:8084";
//var BASE_PATH = "http://192.168.10.53:8084"; //var BASE_PATH = "http://192.168.10.47:8086";
var BASE_PATH = "http://192.168.10.161:8084"; var BASE_PATH = "http://192.168.10.53:8084";
//var BASE_PATH = "http://192.168.10.161:8084";
//var BASE_PATH = "http://192.168.10.170:8084"; //var BASE_PATH = "http://192.168.10.170:8084";
//var BASE_PATH = "http://192.168.10.171:8084"; //var BASE_PATH = "http://192.168.10.171:8084";
//var BASE_PATH = "http://192.168.10.164:8084"; //var BASE_PATH = "http://192.168.10.164:8084";
+5 -2
View File
@@ -542,8 +542,11 @@ function showRentChart2(categories, series, roomDatas){
fontSize: 12 fontSize: 12
}, },
formatter: function (params) { formatter: function (params) {
var res = params[0].name + ' <br/>' + "租金:"+params[0].value + '元/月'; if(params[0].value){
return res; var res = params[0].name + ' <br/>' + "租金:"+params[0].value + '元/月';
return res;
}
} }
}, },
grid:{ grid:{
+29 -4
View File
@@ -1353,10 +1353,21 @@ document.addEventListener('plusready', onPlusReady, false);
function onPlusReady() { function onPlusReady() {
var self = plus.webview.currentWebview(); var self = plus.webview.currentWebview();
hsId = self.hsId hsId = self.hsId
// alert("index:"+hsId); houseId = self.houseId
if(hsId){ if(hsId){
//如果是修改置换建议,则默认将值填入 //如果是修改置换建议,则默认将值填入
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{ updateChangeSubtation(hsId);
}
if(houseId){
//小区报告页带入
fillHouseInfo(houseId);
}
}
//修改置换建议填充默认值
function updateChangeSubtation(hsId){
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
params:{ params:{
hsId:hsId hsId:hsId
} }
@@ -1398,7 +1409,22 @@ function onPlusReady() {
}).catch(function (error) { }).catch(function (error) {
console.log(error); console.log(error);
}); });
} }
function fillHouseInfo(houseId){
axios.get(BASE_PATH + "/rest/index/loadHouse",{
params:{
houseId:houseId
}
}).then(function (response) {
var data = response.data.data;
if(data){
addBaseHouseInfo(data);
baseInfo.houseId = hs.houseId
}
}).catch(function (error) {
console.log(error);
});
} }
//填充房产价格信息 //填充房产价格信息
@@ -1819,7 +1845,6 @@ $("#citySearchInp").bind('keyup', function() {
}); });
function openAddHouse(){ function openAddHouse(){
alert("ssss")
clicked('/views/house/add.html',true,false,{},{}); clicked('/views/house/add.html',true,false,{},{});
} }
+1 -2
View File
@@ -399,8 +399,7 @@ $(document).on('infinite', '.infinite-scroll-bottom', function() {
}); });
function updateChangeHouse(){ function updateChangeHouse(){
alert(hsId); clicked('/views/changeHouse/index.html',true,false,{},{hsId:hsId});
clicked('views/changeHouse/index.html',true,false,{},{hsId:hsId});
} }
</script> </script>
@@ -303,5 +303,6 @@ function addSubstitution(sr, hs, house){
// <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p> // <a <#if advertisement.link?? && advertisement.link?length gt 0>onclick="openUrl('${basePath}/message/openView?url=${basePath}/mad/adUrlLoad?adid=${advertisement.id!?c}')"</#if> ><#if advertisement.content??>${advertisement.content!}</#if><i class="icon icon-right icon-right01"></i></a></p>
// </#if> // </#if>
$("#suggestDiv").text(s); $("#suggestDiv").text(s);
$("#suggestDiv").show();
} }
+1 -1
View File
@@ -63,7 +63,7 @@
<h1 class="title">{{name}}</h1> <h1 class="title">{{name}}</h1>
</header> </header>
<div class="content"> <div class="content">
<div class="topBg topBg02" id="suggestDiv"> <div class="topBg topBg02 dn" id="suggestDiv">
<p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p> <p>购买 龙盛佳苑 90-110㎡ 的房子,总价预计约为<em>587-717万</em>。<br><a href="">查看详情<i class="icon icon-right icon-right01"></i></a></p>
</div> </div>