Commit 5fff9631 authored by zjz1994's avatar zjz1994

埋点测试

parent f78ec134
......@@ -1974,6 +1974,24 @@ export class NetManager extends ABNetManager {
else
console.warn('苏宁埋点未配置')
}
/**
* 广告另外点击埋点
* @param exposure
*/
public clickLog1(exposure: IExposureData): void {
const __area__ = exposure['__area__'];
delete exposure['__area__'];
const net: INetData = {
name: 'clickLog',
uri: window['duiba'] + '/log/click',
type: 'get',
dataType: 'jsonp',
param: exposure,
callback: null,
hideMsg: true
};
this.send(net);
}
/**
* 兑吧曝光埋点
......
......@@ -36,11 +36,11 @@ export default class AdSmallComp extends ComponentBase {
this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (data.logid)
NetManager.ins.clickLog(getlogItem(data.logid));
NetManager.ins.clickLog1(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 = 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.clickLog(getlogItem(32));
NetManager.ins.clickLog1(getlogItem(32));
snpmAdStatic.snpmAdReport("click","icon",result);
if(result.url!=0){
// window.location.href = result.url;
window.location.href = result.url;
}
}, this);
}
......
......@@ -28,7 +28,7 @@ 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.clickLog(getlogItem(25));
NetManager.ins.clickLog1(getlogItem(25));
wait(100).then(()=>{
window.location.href = result.url;
});
......
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