Commit 2e2fdf22 authored by zjz1994's avatar zjz1994

埋点暂存

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