Commit 2e2fdf22 authored by zjz1994's avatar zjz1994

埋点暂存

parent b4cc2486
......@@ -739,7 +739,7 @@ export default class MapScene extends Scene {
NetManager.ins.clickLog(getlogItem(32));
snpmAdStatic.snpmAdReport("click","icon",result);
if(result.url!=0){
// window.location.href = result.url;
window.location.href = result.url;
}
}, this);
}
......
......@@ -9,37 +9,37 @@ export class snpmAdStatic{
console.log("准备上报",type,from,JSON.stringify(adata));
switch(from){
case 'icon':
params['eleid']='111';
params['eleid']='bingoIndexAd';
params['saData']={
pageid:"map",
modid:"111",
eleid:"111",
targeturl:adata['apsClickUrl']||adata['url']
pageid:"aNVgWFAAaA",
modid:"bingoMapIndex",
eleid:"bingoIndexAd",
targeturl:adata['apsClickUrl']||''
}
params['sapmodid'] = '111';
params['targeturl']=adata['apsClickUrl']||adata['url']
params['sapmodid'] = 'bingoMapIndex';
params['targeturl']=adata['apsClickUrl']||'';
break;
case 'dialog':
params['eleid']='222';
params['eleid']='bingoGroupAd';
params['saData']={
pageid:"dialog",
modid:"222",
eleid:"222",
targeturl:adata['apsClickUrl']||adata['url']
pageid:"aNVgWFAAaA",
modid:"bingoDialog",
eleid:"bingoGroupAd",
targeturl:adata['apsClickUrl']||''
}
params['sapmodid'] = '222';
params['targeturl']=adata['apsClickUrl']||adata['url']
params['sapmodid'] = 'bingoDialog';
params['targeturl']=adata['apsClickUrl']||'';
break;
case 'bottom':
params['eleid']='333';
params['eleid']='bingoLevelAd';
params['saData']={
pageid:"bottom",
modid:"333",
eleid:"333",
targeturl:adata['apsClickUrl']||adata['url']
pageid:"aNVgWFAAaA",
modid:"bingoDialog",
eleid:"bingoLevelAd",
targeturl:adata['apsClickUrl']||''
}
params['sapmodid'] = '333';
params['targeturl']=adata['apsClickUrl']||adata['url']
params['sapmodid'] = 'bingoDialog';
params['targeturl']=adata['apsClickUrl']||'';
break;
default:
console.error("未定义snpm上报");
......
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