Merge branch 'YOUFANGAPP1.1.1' of http://192.168.0.27/dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
/**服务端地址**/
|
/**服务端地址**/
|
||||||
//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";
|
||||||
var BASE_PATH = "http://192.168.10.164:8084";
|
//var BASE_PATH = "http://192.168.10.164:8084";
|
||||||
//var BASE_PATH = "http://192.168.10.53: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.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";
|
||||||
|
|||||||
@@ -417,6 +417,22 @@ function getAnalysisDetail(){
|
|||||||
houseInfo.agencyLevel = resultsMap.agencyLevel;
|
houseInfo.agencyLevel = resultsMap.agencyLevel;
|
||||||
houseInfo.maxCityAgency = resultsMap.maxCityAgency;
|
houseInfo.maxCityAgency = resultsMap.maxCityAgency;
|
||||||
$('#agencyLevelPercent').css("width", resultsMap.agencyLevel+"%");
|
$('#agencyLevelPercent').css("width", resultsMap.agencyLevel+"%");
|
||||||
|
//控制周边中介量在当前城市排名显示
|
||||||
|
if(resultsMap.maxCityAgency == 0 || resultsMap.agencyLevel == 0 ){
|
||||||
|
$('#maxCityAgencyContent').hide();
|
||||||
|
}
|
||||||
|
//周边房产中介显示
|
||||||
|
if(resultsMap.agencyCount == 0){
|
||||||
|
$('#agencyCountContent').hide();
|
||||||
|
}
|
||||||
|
//知名中介
|
||||||
|
if(resultsMap.famousAgency == 0){
|
||||||
|
$('#famousAgencyContent').hide();
|
||||||
|
}
|
||||||
|
//其他中介
|
||||||
|
if(resultsMap.otherAgency == 0){
|
||||||
|
$('#otherAgencyContent').hide();
|
||||||
|
}
|
||||||
|
|
||||||
//全局变量赋值
|
//全局变量赋值
|
||||||
_evalDate = _houseInfo.evalDate;
|
_evalDate = _houseInfo.evalDate;
|
||||||
|
|||||||
@@ -1654,7 +1654,8 @@
|
|||||||
"css/theme-blue.css"
|
"css/theme-blue.css"
|
||||||
],
|
],
|
||||||
"refer": [
|
"refer": [
|
||||||
"views/house/add.html"
|
"views/house/add.html",
|
||||||
|
"views/webview_embed.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
},
|
},
|
||||||
@@ -1768,7 +1769,8 @@
|
|||||||
"resources": [],
|
"resources": [],
|
||||||
"refer": [
|
"refer": [
|
||||||
"views/rent/rentManager.html",
|
"views/rent/rentManager.html",
|
||||||
"views/loan/loanInfo.html"
|
"views/loan/loanInfo.html",
|
||||||
|
"views/changeHouse/index.html"
|
||||||
],
|
],
|
||||||
"priority": 0
|
"priority": 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1301,6 +1301,8 @@ var houseListData = new Vue({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var step2Vue = new Vue({
|
var step2Vue = new Vue({
|
||||||
el: '#step2Div',
|
el: '#step2Div',
|
||||||
data: {
|
data: {
|
||||||
@@ -1308,28 +1310,7 @@ var step2Vue = new Vue({
|
|||||||
regions : []
|
regions : []
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
//加载第二步的区域列表
|
|
||||||
loadRegion: function(){
|
|
||||||
|
|
||||||
//this.defaultCity = dCity
|
|
||||||
//loadingRegion(dCity);
|
|
||||||
plus.geolocation.getCurrentPosition(function(p){
|
|
||||||
city = p.address.city;
|
|
||||||
|
|
||||||
var formatCity = formatBaiduCity(city);
|
|
||||||
step2Vue.defaultCity = formatCity
|
|
||||||
loadingRegion(formatCity);
|
|
||||||
}, function(e){
|
|
||||||
step2Vue.defaultCity = dCity
|
|
||||||
loadingRegion(dCity);
|
|
||||||
},
|
|
||||||
{
|
|
||||||
provider:'baidu',
|
|
||||||
enableHighAccuracy:true,
|
|
||||||
coordsType:'bd09ll'
|
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
|
||||||
clickTags: function(e){
|
clickTags: function(e){
|
||||||
|
|
||||||
if($(event.target).hasClass("active")){
|
if($(event.target).hasClass("active")){
|
||||||
@@ -1351,11 +1332,11 @@ var step2Vue = new Vue({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created:function(){
|
created:function(){
|
||||||
|
//this.loadRegion();
|
||||||
this.loadRegion();
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
function onPlusReady() {
|
function onPlusReady() {
|
||||||
var self = plus.webview.currentWebview();
|
var self = plus.webview.currentWebview();
|
||||||
@@ -1371,8 +1352,32 @@ function onPlusReady() {
|
|||||||
fillHouseInfo(houseId);
|
fillHouseInfo(houseId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//加载第二步的区域列表
|
||||||
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
|
city = p.address.city;
|
||||||
|
|
||||||
|
var formatCity = formatBaiduCity(city);
|
||||||
|
if(formatCity){
|
||||||
|
step2Vue.defaultCity = formatCity
|
||||||
|
loadingRegion(formatCity);
|
||||||
|
}else{
|
||||||
|
step2Vue.defaultCity = dCity
|
||||||
|
loadingRegion(dCity);
|
||||||
|
}
|
||||||
|
|
||||||
|
}, function(e){
|
||||||
|
step2Vue.defaultCity = dCity
|
||||||
|
loadingRegion(dCity);
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider:'baidu',
|
||||||
|
enableHighAccuracy:true,
|
||||||
|
coordsType:'bd09ll'
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//修改置换建议填充默认值
|
//修改置换建议填充默认值
|
||||||
function updateChangeSubtation(hsId){
|
function updateChangeSubtation(hsId){
|
||||||
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
axios.get(BASE_PATH + "/rest/changeHouse/loadHouseSubInfo",{
|
||||||
@@ -1429,7 +1434,7 @@ function fillHouseInfo(houseId){
|
|||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
if(data){
|
if(data){
|
||||||
addBaseHouseInfo(data);
|
addBaseHouseInfo(data);
|
||||||
baseInfo.houseId = hs.houseId
|
baseInfo.houseId = houseId
|
||||||
}
|
}
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ Vue.component('base-info-component', {
|
|||||||
var house = response.data.data.houseInfo;
|
var house = response.data.data.houseInfo;
|
||||||
if(hs && sr){
|
if(hs && sr){
|
||||||
addSubstitution(sr, hs, house);
|
addSubstitution(sr, hs, house);
|
||||||
|
addAdvertisement();
|
||||||
}
|
}
|
||||||
if(cityPrice){
|
if(cityPrice){
|
||||||
baseInfo.cityPrice = cityPrice
|
baseInfo.cityPrice = cityPrice
|
||||||
@@ -302,7 +303,26 @@ function addSubstitution(sr, hs, house){
|
|||||||
// <#if advertisement?? && advertisement.content?? && advertisement.content?length gt 0>
|
// <#if advertisement?? && advertisement.content?? && advertisement.content?length gt 0>
|
||||||
// <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 p").text(s);
|
||||||
$("#suggestDiv").show();
|
$("#suggestDiv").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addAdvertisement(){
|
||||||
|
axios.get("/rest/changeHouse/position", null).then(function (response) {
|
||||||
|
var vo = response.data.data
|
||||||
|
if(vo!=null){
|
||||||
|
$('#adBox').show();
|
||||||
|
//如果link有值,添加调整路径
|
||||||
|
if(vo.link!=null && vo.link.length>0 && vo.content!=null && vo.content.length>0){
|
||||||
|
$('#adBox').html(vo.content + "<i class='icon icon-right icon-right01'></i>");
|
||||||
|
$("#adBox").click(function(){
|
||||||
|
clicked('../../views/webview_embed.html', true,false,{},{url:vo.link})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,8 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="topBg topBg02 dn" 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></p>
|
||||||
|
<a class="adBox" id="adBox" style="background:none;display: none;"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list-block media-list topList">
|
<div class="list-block media-list topList">
|
||||||
|
|||||||
@@ -147,25 +147,25 @@
|
|||||||
|
|
||||||
<div class="list-block">
|
<div class="list-block">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="item-content">
|
<li class="item-content" id="agencyCountContent">
|
||||||
<div class="item-inner">
|
<div class="item-inner">
|
||||||
<div class="item-title">周边房产中介</div>
|
<div class="item-title">周边房产中介</div>
|
||||||
<div class="item-after"><em style="color:#F18D00;">{{agencyCount}}</em>家</div>
|
<div class="item-after"><em style="color:#F18D00;">{{agencyCount}}</em>家</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="item-content">
|
<li class="item-content" id="famousAgencyContent">
|
||||||
<div class="item-inner">
|
<div class="item-inner">
|
||||||
<div class="item-title">知名中介:</div>
|
<div class="item-title">知名中介:</div>
|
||||||
<div class="item-after"><em style="color:#F18D00;">{{famousAgency}}</em>家</div>
|
<div class="item-after"><em style="color:#F18D00;">{{famousAgency}}</em>家</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="item-content">
|
<li class="item-content" id="otherAgencyContent">
|
||||||
<div class="item-inner">
|
<div class="item-inner">
|
||||||
<div class="item-title">其他中介:</div>
|
<div class="item-title">其他中介:</div>
|
||||||
<div class="item-after"><em style="color:#F18D00;">{{otherAgency}}</em>家</div>
|
<div class="item-after"><em style="color:#F18D00;">{{otherAgency}}</em>家</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="topic" style="border-top:none;">
|
<li class="topic" style="border-top:none;" id="maxCityAgencyContent">
|
||||||
<div class="topicContent">
|
<div class="topicContent">
|
||||||
<div class="topicContent_bottom">
|
<div class="topicContent_bottom">
|
||||||
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在{{city}}排名:<em style="float:right;">{{agencyLevel}}%</em></p>
|
<p style="margin-bottom:20px;margin-top:0;color:#333;">周边中介量在{{city}}排名:<em style="float:right;">{{agencyLevel}}%</em></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user