Commit 5dd557bb authored by zjz1994's avatar zjz1994

中文跳转修改

parent c7efa910
......@@ -36,11 +36,11 @@ export default class AdSmallComp extends ComponentBase {
this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (data.logid)
NetManager.ins.clickLog1(getlogItem(data.logid));
NetManager.ins.clickLog(getlogItem(data.logid));
snpmAdStatic.snpmAdReport("click","bottom",result);
wait(50).then(() => {
if (result.url != 0) window.location.href = result.url;
if (result.url != 0) window.location.href = decodeURI(result.url);
});
}, this);
}
......
......@@ -736,10 +736,10 @@ export default class MapScene extends Scene {
snpmAdStatic.snpmAdReport("show","icon",result);
this['adBtn'].source = result.img;
this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog1(getlogItem(32));
NetManager.ins.clickLog(getlogItem(32));
snpmAdStatic.snpmAdReport("click","icon",result);
if(result.url!=0){
window.location.href = result.url;
window.location.href = decodeURI(result.url);
}
}, this);
}
......
......@@ -28,9 +28,9 @@ export default class ADPanel extends Panel {
this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(result.url=='0')return;
snpmAdStatic.snpmAdReport("click","dialog",result);
NetManager.ins.clickLog1(getlogItem(25));
NetManager.ins.clickLog(getlogItem(25));
wait(100).then(()=>{
window.location.href = result.url;
window.location.href = decodeURI(result.url);
});
}, this);
}
......
......@@ -5,6 +5,7 @@ export class snpmAdStatic{
* @param from 来源1.icon首页小图标,2.dialog大弹窗广告,3.bottom部分弹窗下挂载的
*/
static snpmAdReport(type:string,from:string,adata:object){
return;
var params = {};
console.log("准备上报",type,from,JSON.stringify(adata));
switch(from){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment