Commit 5e2dac8e authored by zjz1994's avatar zjz1994

代码暂存

parent 5dd557bb
......@@ -1461,6 +1461,10 @@ export class NetManager extends ABNetManager {
}
public hc_advert(callback: Function): void {
if(window['SNNativeClient']){
console.log("苏宁原生测试");
console.log(window['SNNativeClient']);
}
const net: INetData = {
name: 'hc_advert',
uri: window['duiba'] + '/customActivity/happyclear/advert',
......
......@@ -36,7 +36,7 @@ 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(() => {
......
......@@ -736,7 +736,7 @@ 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 = decodeURI(result.url);
......
......@@ -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 = decodeURI(result.url);
});
......
......@@ -5,7 +5,6 @@ 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