aa
This commit is contained in:
@@ -1580,7 +1580,18 @@ $("#input_floor").picker({
|
||||
textAlign: 'center',
|
||||
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>
|
||||
function openHangQing(city){
|
||||
function openHangQing(city,id){
|
||||
var eventType = "newsClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=city;
|
||||
dataMap["type"]="推荐城市";
|
||||
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(){
|
||||
|
||||
})
|
||||
@@ -1829,7 +1838,7 @@ function addItems(number, lastIndex) {
|
||||
'</div>';
|
||||
}
|
||||
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="list-block media-list"><ul><li class="item-content">'+
|
||||
'<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].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{
|
||||
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>';
|
||||
}
|
||||
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>';
|
||||
if(dataObj[i].recommendCityTags != "" && dataObj[i].recommendCityTags != null){
|
||||
var arry = dataObj[i].recommendCityTags.split("_");
|
||||
@@ -2374,11 +2383,21 @@ function req(cityStr){
|
||||
//potenialIndex(city,sort);
|
||||
}
|
||||
|
||||
function openUrl(url){
|
||||
function openUrl(url,id){
|
||||
var eventType = "newsClick";
|
||||
var dataMap = {};
|
||||
dataMap["type"]="活动";
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -2777,7 +2796,7 @@ function openNewView(viewHtml) {
|
||||
clicked(viewHtml,true,false,{},{})
|
||||
}
|
||||
|
||||
function openNewsDistWindow(city, region, name){
|
||||
function openNewsDistWindow(city, region, name,id){
|
||||
var eventType = "newsClick";
|
||||
var dataMap = {};
|
||||
dataMap["city"]=city;
|
||||
@@ -2785,6 +2804,16 @@ function openNewsDistWindow(city, region, name){
|
||||
dataMap["name"]=name;
|
||||
dataMap["type"]="推荐小区";
|
||||
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});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user