aa
This commit is contained in:
@@ -157,9 +157,9 @@ mui.plusReady(function() {
|
|||||||
axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) {
|
axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) {
|
||||||
var data = response.data.data;
|
var data = response.data.data;
|
||||||
if (data) {
|
if (data) {
|
||||||
document.getElementById("img").setAttribute("src", BASE_PATH+"/img/"+data.imgId);
|
document.getElementById("img").setAttribute("src", data.imgUrl);
|
||||||
document.getElementById("img").addEventListener("longtap", function(event) {
|
document.getElementById("img").addEventListener("longtap", function(event) {
|
||||||
download(BASE_PATH+"/img/"+data.imgId);
|
download(data.imgUrl);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2914,15 +2914,23 @@ function openUrlNew(adUrl, id, type) {
|
|||||||
dataMap["type"]=type;
|
dataMap["type"]=type;
|
||||||
dataMap["newId"]=id;
|
dataMap["newId"]=id;
|
||||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
if(type=='广告'){
|
||||||
axios.get("/rest/news/addCount",{params:{newsId:id}}).then(function(response){
|
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){
|
if(response.data.code==200){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
clicked('views/webview_embed.html', true,false,{},{url:adUrl})
|
clicked('views/webview_embed.html', true,false,{},{url:adUrl})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user