Browse Source

广告点击量记录

luyanan 7 years ago
parent
commit
cb340dfa7f
2 changed files with 8 additions and 4 deletions
  1. 3 1
      js/common.js
  2. 5 3
      js/public/shareCom.js

+ 3 - 1
js/common.js

1243
		document.documentElement.appendChild(script);
1243
		document.documentElement.appendChild(script);
1244
	}
1244
	}
1245
}
1245
}
1246
$.ready(function(){
1246
$(document).ready(function(){
1247
	//处理点击事件,需要打开原生浏览器
1247
	//处理点击事件,需要打开原生浏览器
1248
	$("body").on("click","a.advertsub",function(){
1248
	$("body").on("click","a.advertsub",function(){
1249
		var adId = this.getAttribute('data-id');
1249
		var adId = this.getAttribute('data-id');
1250
		console.log(adId)
1250
		wlog("ad", adId ,"1");
1251
		wlog("ad", adId ,"1");
1252
		return true;	
1251
	})
1253
	})
1252
})
1254
})

+ 5 - 3
js/public/shareCom.js

224
		document.documentElement.appendChild(script);
224
		document.documentElement.appendChild(script);
225
	}
225
	}
226
}
226
}
227
$.ready(function(){
227
$(document).ready(function(){
228
	//处理点击事件,需要打开原生浏览器
228
	//处理点击事件,需要打开原生浏览器
229
	$("body").on("click","a.advertsub",function(){
229
	$("body").on("click","a.advertsub",function(){
230
		var adId = this.getAttribute('data-id');
230
		var adId = this.getAttribute('data-id');
231
		wlog("ad", adId ,"3");
231
		console.log(adId)
232
		wlog("ad", adId ,"1");
233
		return true;	
232
	})
234
	})
233
})
235
})