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://192.168.10.128:8084";
|
||||
//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.47:8086";
|
||||
//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.171:8084";
|
||||
|
||||
@@ -55,7 +55,9 @@ function saveBehaviorLog(event,dataMap) {
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
baidu_province = p.address.province;
|
||||
baidu_city = p.address.city;
|
||||
baidu_region = p.address.district;
|
||||
baidu_lng = p.coords.longitude;
|
||||
baidu_lat = p.coords.latitude;
|
||||
baidu_address = p.address.street;
|
||||
|
||||
@@ -80,6 +80,7 @@ $("#login_btn").on("click", function () {
|
||||
var data = resData.data;
|
||||
localStorage.setItem("user_token", data.token);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", data.uid);
|
||||
$.toast(resData.message);
|
||||
if (data.firstLogin) {
|
||||
// 显示设置密码页面
|
||||
|
||||
@@ -105,8 +105,10 @@ function login(openid, unionid, accessToken, nickname, headImg, loginFrom, uri)
|
||||
back();
|
||||
})
|
||||
}else{
|
||||
localStorage.setItem("user_token", resData.data);
|
||||
var data = resData.data;
|
||||
localStorage.setItem("user_token", data.token);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", data.uid);
|
||||
back();
|
||||
}
|
||||
}else{
|
||||
|
||||
@@ -380,9 +380,9 @@ function getAnalysisDetail(){
|
||||
//增长率及收益跳转链接是否显示
|
||||
if(resultsMap.ad!=null){
|
||||
$('#showAdBox1').show();
|
||||
$('#showAdBox1Content').html(resultsMap.ad.content + "<i class='icon icon-right icon-right01'></i>");
|
||||
//如果link有值,添加调整路径
|
||||
if(resultsMap.ad.link!=null && resultsMap.ad.link.length>0){
|
||||
if(resultsMap.ad.link!=null && resultsMap.ad.link.length>0 && resultsMap.ad.content!=null && resultsMap.ad.content.length>0){
|
||||
$('#showAdBox1Content').html(resultsMap.ad.content + "<i class='icon icon-right icon-right01'></i>");
|
||||
$("#showAdBox1").click(function(){
|
||||
clicked('../../views/webview_embed.html', true,false,{},{url:resultsMap.ad.link})
|
||||
})
|
||||
@@ -403,9 +403,9 @@ function getAnalysisDetail(){
|
||||
//挂牌建议跳转链接是否显示
|
||||
if(resultsMap.ad1!=null){
|
||||
$('#showAdBox2').show();
|
||||
$('#showAdBox2Content').html(resultsMap.ad1.content + "<i class='icon icon-right icon-right01'></i>");
|
||||
//如果link有值,添加调整路径
|
||||
if(resultsMap.ad1.link!=null && resultsMap.ad1.link.length>0){
|
||||
if(resultsMap.ad1.link!=null && resultsMap.ad1.link.length>0 && resultsMap.ad1.content!=null && resultsMap.ad1.content.length>0){
|
||||
$('#showAdBox2Content').html(resultsMap.ad1.content + "<i class='icon icon-right icon-right01'></i>");
|
||||
$("#showAdBox2").click(function(){
|
||||
clicked('../../views/webview_embed.html', true,false,{},{url:resultsMap.ad1.link})
|
||||
})
|
||||
@@ -517,9 +517,9 @@ function addItemsChengJiao(resultsMap){
|
||||
var tempTotalPrice = resultsMap.sells[i].total_price == 0?"暂无":(parseFloat(resultsMap.sells[i].total_price)/10000).toFixed(2)+"万";
|
||||
var tempAvgPrice = resultsMap.sells[i].avg_price == 0?"暂无":resultsMap.sells[i].avg_price+"元/㎡";
|
||||
var tradeDate = resultsMap.sells[i].trade_date == null?"暂无":formatTime(resultsMap.sells[i].trade_date)+"签约";
|
||||
htmlChengJiao += "<div class='item-after'><em>"+tempTotalPrice+"</em></div></div>";
|
||||
var direction_floor = (resultsMap.sells[i].direction == undefined || resultsMap.sells[i].direction == "")?"":resultsMap.sells[i].direction;
|
||||
direction_floor += (resultsMap.sells[i].floor == undefined || resultsMap.sells[i].floor == "")?"":resultsMap.sells[i].floor + "层";
|
||||
htmlChengJiao += "<div class='item-after'><em>"+tempTotalPrice+"</em></div></div>";
|
||||
htmlChengJiao += "<div class='item-title-row'><div class='item-title'><span>"+direction_floor+"</span></div>";
|
||||
htmlChengJiao += "<div class='item-after'><span>"+tempAvgPrice+"</span></div></div>";
|
||||
htmlChengJiao += "<div class='item-subtitle'><span class='tag'><small>"+tradeDate+"</small></span></div></div></a></li>";
|
||||
@@ -528,24 +528,24 @@ function addItemsChengJiao(resultsMap){
|
||||
}
|
||||
if(resultsMap.disSellHouses!=null && resultsMap.disSellHouses.length>0){
|
||||
if(resultsMap.sells!=null && resultsMap.sells.length>0){
|
||||
htmlGuaPai += '<div id="tabDeal2" class="tab"><div class="list-block media-list"><ul>';
|
||||
htmlChengJiao += '<div id="tabDeal2" class="tab"><div class="list-block media-list"><ul>';
|
||||
}else{
|
||||
htmlGuaPai += '<div id="tabDeal2" class="tab active"><div class="list-block media-list"><ul>';
|
||||
htmlChengJiao += '<div id="tabDeal2" class="tab active"><div class="list-block media-list"><ul>';
|
||||
}
|
||||
for(var i in resultsMap.disSellHouses){
|
||||
htmlChengJiao += '<li><a class="item-content"><div class="item-inner"><div class="item-title-row">';
|
||||
htmlChengJiao += "<div class='item-title'><span class='c3 c3a'>"+resultsMap.disSellHouses[i].name+"</span></div>";
|
||||
htmlChengJiao += "<div class='item-title'><span class='c3 c3a'>"+resultsMap.disSellHouses[i].districtName+"</span></div>";
|
||||
var tempTotalPrice = resultsMap.disSellHouses[i].totalPrice == 0?"暂无":(parseFloat(resultsMap.disSellHouses[i].totalPrice)/10000).toFixed(2)+"万";
|
||||
var tempAvgPrice = resultsMap.disSellHouses[i].avgPrice == 0?"暂无":resultsMap.disSellHouses[i].avgPrice+"元/㎡";
|
||||
var tradeDate = resultsMap.disSellHouses[i].tradeDate == null?"暂无":formatTime(resultsMap.disSellHouses[i].tradeDate)+"签约";
|
||||
htmlChengJiao += "<div class='item-after'><em>"+tempTotalPrice+"</em></div></div>";
|
||||
var direction_floor = (resultsMap.disSellHouses[i].direction == undefined || resultsMap.disSellHouses[i].direction == "")?"":resultsMap.disSellHouses[i].direction;
|
||||
direction_floor += (resultsMap.disSellHouses[i].floor == undefined || resultsMap.disSellHouses[i].floor == "")?"":resultsMap.disSellHouses[i].floor + "层";
|
||||
htmlChengJiao += "<div class='item-after'><em>"+tempTotalPrice+"</em></div></div>";
|
||||
htmlChengJiao += "<div class='item-title-row'><div class='item-title'><span>"+direction_floor+"</span></div>";
|
||||
htmlChengJiao += "<div class='item-after'><span>"+tempAvgPrice+"</span></div></div>";
|
||||
htmlChengJiao += "<div class='item-subtitle'><span class='tag'><small>"+tradeDate+"</small></span></div></div></a></li>";
|
||||
}
|
||||
htmlGuaPai += '</ul></div></div>';
|
||||
htmlChengJiao += '</ul></div></div>';
|
||||
}
|
||||
htmlChengJiao += '</div>';
|
||||
$('#showTopic2').html(htmlChengJiao);
|
||||
|
||||
@@ -122,7 +122,12 @@ $("body").delegate(".open-about02", "click", function () {
|
||||
eventType = "rentQueryClick";
|
||||
}else{
|
||||
cat = "district"
|
||||
eventType = "priceQueryClick";
|
||||
if(text=="房价查询"){
|
||||
eventType = "priceQueryClick";
|
||||
}else{
|
||||
eventType = "districtSerachClick";
|
||||
}
|
||||
|
||||
}
|
||||
saveBehaviorLog(eventType,dataMap);//保存用户点击事件
|
||||
$('.historyList').show();
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
if (day >= 25) {
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
localStorage.removeItem("user_id");
|
||||
}
|
||||
//mui初始化
|
||||
mui.init();
|
||||
|
||||
@@ -1294,6 +1294,8 @@ var houseListData = new Vue({
|
||||
},
|
||||
created:function(){
|
||||
this.loadHouses();
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1363,6 +1365,7 @@ function onPlusReady() {
|
||||
//小区报告页带入
|
||||
fillHouseInfo(houseId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
//修改置换建议填充默认值
|
||||
@@ -1401,6 +1404,7 @@ function updateChangeSubtation(hsId){
|
||||
sellToBuy();
|
||||
}
|
||||
$("#input_city").text(hs.intentionCity)
|
||||
loadingRegion(hs.intentionCity);
|
||||
|
||||
selectTxt("select_region", hs.intentionRegion);
|
||||
selectTxt("select_result", hs.intentionTags);
|
||||
@@ -1446,7 +1450,7 @@ function addBaseHouseInfo(obj){
|
||||
|
||||
var funds = $("#input_funds").val();
|
||||
if(funds){
|
||||
baseInfo.sumPrice = parseInt(funds) + parseInt(obj.totalPrice/10000);
|
||||
baseInfo.sumPrice = (Number(funds)+ parseInt(obj.totalPrice/10000)).toFixed(2);
|
||||
}else{
|
||||
baseInfo.sumPrice = parseInt(obj.totalPrice/10000);
|
||||
}
|
||||
@@ -1536,9 +1540,9 @@ function calTotalPrice(){
|
||||
if(funds && price){
|
||||
if(a){
|
||||
var tax = a * price/100;
|
||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)-tax).toFixed(2);
|
||||
baseInfo.sumPrice = (Number(funds)+parseInt(price)-tax).toFixed(2);
|
||||
}else{
|
||||
baseInfo.sumPrice = (parseInt(funds)+parseInt(price)).toFixed(2);
|
||||
baseInfo.sumPrice = (Number(funds)+parseInt(price)).toFixed(2);
|
||||
}
|
||||
}else if(price){
|
||||
if(a){
|
||||
@@ -1709,6 +1713,8 @@ $("#select_area").RangeSlider({min: 0, max: 100, step: 14.2857, callback: change
|
||||
|
||||
/* 弹出城市选择页面 */
|
||||
$(document).on("click",".open-about01", function () {
|
||||
$("#citySearchInp").val("");
|
||||
$("#selectContainer").hide();
|
||||
$.popup(".popup-about01");
|
||||
});
|
||||
|
||||
@@ -1845,9 +1851,22 @@ $("#citySearchInp").bind('keyup', function() {
|
||||
});
|
||||
|
||||
function openAddHouse(){
|
||||
clicked('/views/house/add.html',true,false,{},{});
|
||||
clicked('/views/house/add.html',true,false,{},{source:"changeHouse"},function(){
|
||||
houseListData.loadHouses();
|
||||
});
|
||||
}
|
||||
|
||||
/* 定位城市 */
|
||||
$("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>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="ad"><img id="img"></a>
|
||||
<a class="ad" id="img_ad"><img id="img"></a>
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
@@ -300,11 +300,20 @@ $.config = {router: false}
|
||||
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
|
||||
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
|
||||
//控制贷款按钮是否可以显示,便于ios版本审核
|
||||
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
$("#img").click(function(){
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
|
||||
})
|
||||
}
|
||||
// if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
|
||||
// $("#img").click(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;
|
||||
//window.location.href=url;
|
||||
clicked("/views/webview_embed.html", true,false,{},{url:url});
|
||||
});
|
||||
}
|
||||
loadingChart(h.city,h.region,h.name,2)
|
||||
//按照时间范围加载数据
|
||||
|
||||
@@ -1246,10 +1246,12 @@ $.config = {router: false}
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var houseStatus; //= "186182250936643584";
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
var type = 1;
|
||||
var type = 1;
|
||||
var source = ""
|
||||
function onPlusReady(){
|
||||
var self = plus.webview.currentWebview();
|
||||
type = self.type; //type为1时是我的房产
|
||||
source = self.source
|
||||
if(type==0){
|
||||
$("#liveStatusDiv").show();
|
||||
}else{
|
||||
@@ -1580,7 +1582,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]+'层')
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
/* 选择-目前状态 */
|
||||
@@ -1864,6 +1877,7 @@ function checkIsLogin(){
|
||||
|
||||
function addEvaluation(){
|
||||
var data={};
|
||||
|
||||
if(type==0){
|
||||
data={id:requestId,cityDisplay: $("#input_city").val(),
|
||||
region:$("input[name=region]").val(),
|
||||
@@ -1881,6 +1895,12 @@ function addEvaluation(){
|
||||
lastRentDate:$("#input_time03").val(),
|
||||
houseStatus:0}
|
||||
}else{
|
||||
|
||||
houseStatus = 1;
|
||||
if(source=="changeHouse"){
|
||||
houseStatus = 0;
|
||||
}
|
||||
|
||||
data={id:requestId,cityDisplay: $("#input_city").val(),
|
||||
region:$("input[name=region]").val(),
|
||||
district:$("#input_address").val(),
|
||||
@@ -1889,7 +1909,7 @@ function addEvaluation(){
|
||||
loudongName:$("#input_building").val(),
|
||||
floorName:$("#input_floor").val(),
|
||||
area:$("#input_area").val(),
|
||||
houseStatus:1}
|
||||
houseStatus:houseStatus}
|
||||
}
|
||||
var eventType = "evaluateSubmitClick";
|
||||
saveBehaviorLog(eventType,data); //保存用户点击事件
|
||||
@@ -1899,19 +1919,27 @@ function addEvaluation(){
|
||||
})
|
||||
.then(function (response) {
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
var id = response.data.data.id;
|
||||
|
||||
if(plus.webview.getWebviewById('views/house/houseManageList.html') != null) {
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
|
||||
if(source=="changeHouse"){
|
||||
back(),plus.nativeUI.closeWaiting();
|
||||
|
||||
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
var id = response.data.data.id;
|
||||
|
||||
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();
|
||||
}
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
|
||||
getRequestId();
|
||||
})
|
||||
}
|
||||
|
||||
if(plus.webview.getWebviewById('views/user/userInfo.html')!= null){
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
clicked('/views/evaluate/evaluateReport.html',true,false,{},{hid:id},function(){
|
||||
getRequestId();
|
||||
})
|
||||
}else{
|
||||
$("#evaluation_btn").removeAttr("disabled");
|
||||
$.toast(response.data.message);
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic" id="hotCityVue">
|
||||
<div class="topic" id="hotCityVue" v-cloak>
|
||||
<div class="topicTitle">房产热点城市</div>
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33" v-for="(city,index) in hotCitys" @click="openHotCity(index)">
|
||||
|
||||
@@ -120,6 +120,7 @@ function logout() {
|
||||
//plus.webview.getWebviewById('yfindex.html').reload();
|
||||
localStorage.removeItem("user_token");
|
||||
localStorage.removeItem("user_token_add_time");
|
||||
localStorage.removeItem("user_id");
|
||||
//退出登录之前loading下个人中心
|
||||
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
|
||||
@@ -200,6 +200,7 @@ var vue = new Vue({
|
||||
$.toast(resData.message);
|
||||
localStorage.setItem("user_token", resData.data.token);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", resData.data.uid);
|
||||
back();
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
|
||||
@@ -136,9 +136,10 @@ new Vue({
|
||||
var resData = response.data;
|
||||
if (resData.status) {
|
||||
// 用户登录成功的TOKEN
|
||||
var token = resData.data;
|
||||
localStorage.setItem("user_token", token);
|
||||
var data = resData.data;
|
||||
localStorage.setItem("user_token", data.token);
|
||||
localStorage.setItem("user_token_add_time", new Date().getTime());
|
||||
localStorage.setItem("user_id", data.uid)
|
||||
$.toast(resData.message);
|
||||
back();
|
||||
} else {
|
||||
|
||||
@@ -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