diff --git a/fangija-zsyf/views/setting/setting.html b/fangija-zsyf/views/setting/setting.html index 25c92dc..306869e 100644 --- a/fangija-zsyf/views/setting/setting.html +++ b/fangija-zsyf/views/setting/setting.html @@ -157,9 +157,9 @@ mui.plusReady(function() { axios.get("/rest/ad/position",{params:{position : 7}}).then(function (response) { var data = response.data.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) { - download(BASE_PATH+"/img/"+data.imgId); + download(data.imgUrl); }) } }) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 9716726..5dc2a5b 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -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}) }