Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
/**服务端地址**/
|
/**服务端地址**/
|
||||||
//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.47:8086";
|
var BASE_PATH = "http://192.168.10.47:8086";
|
||||||
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.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";
|
||||||
|
|||||||
@@ -122,7 +122,12 @@ $("body").delegate(".open-about02", "click", function () {
|
|||||||
eventType = "rentQueryClick";
|
eventType = "rentQueryClick";
|
||||||
}else{
|
}else{
|
||||||
cat = "district"
|
cat = "district"
|
||||||
eventType = "priceQueryClick";
|
if(text=="房价查询"){
|
||||||
|
eventType = "priceQueryClick";
|
||||||
|
}else{
|
||||||
|
eventType = "districtSerachClick";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
saveBehaviorLog(eventType,dataMap);//保存用户点击事件
|
saveBehaviorLog(eventType,dataMap);//保存用户点击事件
|
||||||
$('.historyList').show();
|
$('.historyList').show();
|
||||||
|
|||||||
@@ -1446,7 +1446,7 @@ function addBaseHouseInfo(obj){
|
|||||||
|
|
||||||
var funds = $("#input_funds").val();
|
var funds = $("#input_funds").val();
|
||||||
if(funds){
|
if(funds){
|
||||||
baseInfo.sumPrice = parseInt(funds) + parseInt(obj.totalPrice/10000);
|
baseInfo.sumPrice = (Number(funds)+ parseInt(obj.totalPrice/10000)).toFixed(2);
|
||||||
}else{
|
}else{
|
||||||
baseInfo.sumPrice = parseInt(obj.totalPrice/10000);
|
baseInfo.sumPrice = parseInt(obj.totalPrice/10000);
|
||||||
}
|
}
|
||||||
@@ -1536,9 +1536,9 @@ function calTotalPrice(){
|
|||||||
if(funds && price){
|
if(funds && price){
|
||||||
if(a){
|
if(a){
|
||||||
var tax = a * price/100;
|
var tax = a * price/100;
|
||||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)-tax).toFixed(2);
|
baseInfo.sumPrice = (Number(funds)+parseInt(price)-tax).toFixed(2);
|
||||||
}else{
|
}else{
|
||||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)).toFixed(2);
|
baseInfo.sumPrice = (Number(funds)+parseInt(price)).toFixed(2);
|
||||||
}
|
}
|
||||||
}else if(price){
|
}else if(price){
|
||||||
if(a){
|
if(a){
|
||||||
@@ -1709,6 +1709,8 @@ $("#select_area").RangeSlider({min: 0, max: 100, step: 14.2857, callback: change
|
|||||||
|
|
||||||
/* 弹出城市选择页面 */
|
/* 弹出城市选择页面 */
|
||||||
$(document).on("click",".open-about01", function () {
|
$(document).on("click",".open-about01", function () {
|
||||||
|
$("#citySearchInp").val("");
|
||||||
|
$("#selectContainer").hide();
|
||||||
$.popup(".popup-about01");
|
$.popup(".popup-about01");
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1848,6 +1850,17 @@ function openAddHouse(){
|
|||||||
clicked('/views/house/add.html',true,false,{},{});
|
clicked('/views/house/add.html',true,false,{},{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 定位城市 */
|
||||||
|
$("body").on("click", ".letter a", function () {
|
||||||
|
var s = $(this).html();
|
||||||
|
$(".popup-about01 .content").scrollTop(0);
|
||||||
|
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
||||||
|
});
|
||||||
|
$("#tabCity1 .content-block01").scroll(function () {
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<a class="ad"><img id="img"></a>
|
<a class="ad" id="img_ad"><img id="img"></a>
|
||||||
<div class="topic">
|
<div class="topic">
|
||||||
<div class="topicTitle" style="position:relative;">均价走势
|
<div class="topicTitle" style="position:relative;">均价走势
|
||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
@@ -300,11 +300,19 @@ $.config = {router: false}
|
|||||||
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
||||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
// if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||||
$("#img").click(function(){
|
// $("#img").click(function(){
|
||||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
|
// clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
}
|
||||||
|
if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){
|
||||||
|
var device = plus.device.uuid;
|
||||||
|
var uid = localStorage.getItem("user_id");
|
||||||
|
$("#img_ad").click(function(){
|
||||||
|
url=h.link+"?uid="+uid+"&device="+device;
|
||||||
|
clicked('views/webview_embed.html', true,false,{},{url:this.url});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
loadingChart(h.city,h.region,h.name,2)
|
loadingChart(h.city,h.region,h.name,2)
|
||||||
//按照时间范围加载数据
|
//按照时间范围加载数据
|
||||||
|
|||||||
@@ -1580,7 +1580,18 @@ $("#input_floor").picker({
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
values: getfloorHeight()
|
values: getfloorHeight()
|
||||||
}
|
}
|
||||||
]
|
],onOpen:function(p){
|
||||||
|
//
|
||||||
|
var input_floor = $("#input_floor").val();
|
||||||
|
var num = input_floor.replace(/第/g,"").replace(/层/g,"").replace(/共/g,"").split(" ");
|
||||||
|
if(num[0]!=null &&num[0]!=undefined){
|
||||||
|
p.cols[0].setValue('第'+num[0]+'层')
|
||||||
|
}
|
||||||
|
if(num[1]!=null &&num[1]!=undefined){
|
||||||
|
p.cols[1].setValue('共'+num[1]+'层')
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 选择-目前状态 */
|
/* 选择-目前状态 */
|
||||||
|
|||||||
@@ -1195,12 +1195,21 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="js/city.js" ></script>
|
<script type="text/javascript" src="js/city.js" ></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function openHangQing(city){
|
function openHangQing(city,id){
|
||||||
var eventType = "newsClick";
|
var eventType = "newsClick";
|
||||||
var dataMap = {};
|
var dataMap = {};
|
||||||
dataMap["city"]=city;
|
dataMap["city"]=city;
|
||||||
dataMap["type"]="推荐城市";
|
dataMap["type"]="推荐城市";
|
||||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
|
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
||||||
|
if(response.data.code==200){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
});
|
||||||
clicked('views/house/cityDetail.html',true,false,{},{city:city},function(){
|
clicked('views/house/cityDetail.html',true,false,{},{city:city},function(){
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -1829,7 +1838,7 @@ function addItems(number, lastIndex) {
|
|||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
if(dataObj[i].type=="推荐小区"){
|
if(dataObj[i].type=="推荐小区"){
|
||||||
html += '<div class="card cardInfo cardInfo02" onclick="openNewsDistWindow(\''+dataObj[i].recommendDistrictCity+'\',\''+dataObj[i].recommendDistrictRegion+'\',\''+dataObj[i].recommendDistrictName+'\')">'+
|
html += '<div class="card cardInfo cardInfo02" onclick="openNewsDistWindow(\''+dataObj[i].recommendDistrictCity+'\',\''+dataObj[i].recommendDistrictRegion+'\',\''+dataObj[i].recommendDistrictName+'\',\''+dataObj[i].id+'\')">'+
|
||||||
'<div class="card-content">'+
|
'<div class="card-content">'+
|
||||||
'<div class="list-block media-list"><ul><li class="item-content">'+
|
'<div class="list-block media-list"><ul><li class="item-content">'+
|
||||||
'<div class="item-media"><img src="cardInfoPlaceholderImg.png" onload="loadImg(\''+dataObj[i].coverImg+'\',this)"></div>'+
|
'<div class="item-media"><img src="cardInfoPlaceholderImg.png" onload="loadImg(\''+dataObj[i].coverImg+'\',this)"></div>'+
|
||||||
@@ -1853,7 +1862,7 @@ function addItems(number, lastIndex) {
|
|||||||
}
|
}
|
||||||
if(dataObj[i].type=="活动"){
|
if(dataObj[i].type=="活动"){
|
||||||
if(dataObj[i].adUrl!=null && dataObj[i].adUrl!=""){
|
if(dataObj[i].adUrl!=null && dataObj[i].adUrl!=""){
|
||||||
html += '<div class="card cardInfo cardInfo01 cardInfo01b" onclick="openUrl(\''+BASE_PATH+'/message/openView?url='+dataObj[i].adUrl+'\')">';
|
html += '<div class="card cardInfo cardInfo01 cardInfo01b" onclick="openUrl(\''+BASE_PATH+'/message/openView?url='+dataObj[i].adUrl+'\',\''+dataObj[i].id+'\')">';
|
||||||
}else{
|
}else{
|
||||||
html += '<div class="card cardInfo cardInfo01 cardInfo01b">';
|
html += '<div class="card cardInfo cardInfo01 cardInfo01b">';
|
||||||
}
|
}
|
||||||
@@ -1862,7 +1871,7 @@ function addItems(number, lastIndex) {
|
|||||||
'<div class="card-footer"><span>'+dataObj[i].introduction+'</span></div></div>';
|
'<div class="card-footer"><span>'+dataObj[i].introduction+'</span></div></div>';
|
||||||
}
|
}
|
||||||
if(dataObj[i].type=="推荐城市"){
|
if(dataObj[i].type=="推荐城市"){
|
||||||
html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openHangQing(\''+dataObj[i].recommendCity+'\')">'+
|
html += '<div class="card cardInfo cardInfo01 cardInfo01a" onclick="openHangQing(\''+dataObj[i].recommendCity+'\',\''+dataObj[i].id+'\')">'+
|
||||||
'<div class="card-header">推荐城市——'+dataObj[i].recommendCity+'</div>';
|
'<div class="card-header">推荐城市——'+dataObj[i].recommendCity+'</div>';
|
||||||
if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
|
if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
|
||||||
var arry = dataObj[i].recommendCityTags.split("_");
|
var arry = dataObj[i].recommendCityTags.split("_");
|
||||||
@@ -2374,11 +2383,21 @@ function req(cityStr){
|
|||||||
//potenialIndex(city,sort);
|
//potenialIndex(city,sort);
|
||||||
}
|
}
|
||||||
|
|
||||||
function openUrl(url){
|
function openUrl(url,id){
|
||||||
var eventType = "newsClick";
|
var eventType = "newsClick";
|
||||||
var dataMap = {};
|
var dataMap = {};
|
||||||
dataMap["type"]="活动";
|
dataMap["type"]="活动";
|
||||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
|
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
||||||
|
if(response.data.code==200){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
});
|
||||||
|
|
||||||
clicked(url,true);
|
clicked(url,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2777,7 +2796,7 @@ function openNewView(viewHtml) {
|
|||||||
clicked(viewHtml,true,false,{},{})
|
clicked(viewHtml,true,false,{},{})
|
||||||
}
|
}
|
||||||
|
|
||||||
function openNewsDistWindow(city, region, name){
|
function openNewsDistWindow(city, region, name,id){
|
||||||
var eventType = "newsClick";
|
var eventType = "newsClick";
|
||||||
var dataMap = {};
|
var dataMap = {};
|
||||||
dataMap["city"]=city;
|
dataMap["city"]=city;
|
||||||
@@ -2785,6 +2804,16 @@ function openNewsDistWindow(city, region, name){
|
|||||||
dataMap["name"]=name;
|
dataMap["name"]=name;
|
||||||
dataMap["type"]="推荐小区";
|
dataMap["type"]="推荐小区";
|
||||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
|
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
||||||
|
if(response.data.code==200){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
});
|
||||||
|
|
||||||
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user