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

+ 5 - 3
js/public/shareCom.js

@ -224,10 +224,12 @@ function addscript(that){
224 224
		document.documentElement.appendChild(script);
225 225
	}
226 226
}
227
$.ready(function(){
227
$(document).ready(function(){
228 228
	//处理点击事件,需要打开原生浏览器
229 229
	$("body").on("click","a.advertsub",function(){
230 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
})