This commit is contained in:
xuhe@fangjia.com
2018-07-05 13:45:21 +08:00
parent 753557cc23
commit a2deb33dc2
2 changed files with 15 additions and 7 deletions
+13 -5
View File
@@ -2914,15 +2914,23 @@ function openUrlNew(adUrl, id, type) {
dataMap["type"]=type;
dataMap["newId"]=id;
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
if(type=='广告'){
axios.get("/rest/news/addAdClickCount",{params:{adid:id}}).then(function(response){
}).catch(function(error){
console.log(error)
});
}else{
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
if(response.data.code==200){
}
}).catch(function(error){
console.log(error)
});
}).catch(function(error){
console.log(error)
});
}
clicked('views/webview_embed.html', true,false,{},{url:adUrl})
}