Browse Source

Merge remote-tracking branch 'origin/dev' into test

luyanan 7 years ago
parent
commit
a163c44c0c
2 changed files with 38 additions and 24 deletions
  1. 20 12
      js/common.js
  2. 18 12
      js/public/shareCom.js

+ 20 - 12
js/common.js

@ -1217,24 +1217,32 @@ function getNowFormatDate(num) {
1217 1217
}
1218 1218
function wlog(dt, id, src) {
1219 1219
	var src = src || "1";
1220
	$.ajax({
1221
		url: "http://www.ekexiu.com:8082/log/jsonp/log",
1222
		data: {
1223
			"id": id,
1224
			"src": src,
1225
			"__lt": dt,
1226
		},
1227
		success:function(data) {
1228
		},
1229
		dataType: "jsonp"
1230
	});
1220
	
1221
    var $img=$("<img src='http://www.ekexiu.com:8082/log/img?__lt="+dt+"&src="+src+"&id="+id+"&_t="+(new Date().getTime())+"' style='display:none;' ></img>");
1222
    $img.appendTo($("body"));
1223
    
1224
    setTimeout(function(){
1225
    	$img.remove();
1226
    },5000);
1227
    	
1228
//	$.ajax({
1229
//		url: "http://www.ekexiu.com:8082/log/jsonp/log",
1230
//		data: {
1231
//			"id": id,
1232
//			"src": src,
1233
//			"__lt": dt,
1234
//		},
1235
//		success:function(data) {
1236
//		},
1237
//		dataType: "jsonp"
1238
//	});
1231 1239
}
1232 1240

1233 1241
//广告相关操作
1234 1242
function addscript(that){
1235 1243
	var script=document.createElement("script");  
1236 1244
	script.setAttribute("type", "text/javascript");  
1237
	var srclink= "http://www.ekexiu.com/data/inc/ad/"+ that +".js?r=" + new Date().getTime();
1245
	var srclink= "https://www.ekexiu.com/data/inc/ad/"+ that +".js?r=" + new Date().getTime();
1238 1246
	script.setAttribute("src", srclink);  
1239 1247
	var heads = document.getElementsByTagName("head");  
1240 1248
	if(heads.length){  

+ 18 - 12
js/public/shareCom.js

@ -198,24 +198,30 @@ function shareWays(shareTitle,descContent,lineLink,imgUrl){
198 198

199 199
function wlog(dt, id, src) {
200 200
	var src = src || "1";
201
	$.ajax({
202
		url: "http://www.ekexiu.com:8082/log/jsonp/log",
203
		data: {
204
			"id": id,
205
			"src": src,
206
			"__lt": dt,
207
		},
208
		success:function(data) {
209
		},
210
		dataType: "jsonp"
211
	});
201
	var $img=$("<img src='http://www.ekexiu.com:8082/log/img?__lt="+dt+"&src="+src+"&id="+id+"&_t="+(new Date().getTime())+"' style='display:none;' ></img>");
202
    $img.appendTo($("body"));
203
    
204
    setTimeout(function(){
205
    	$img.remove();
206
    },5000);
207
//	$.ajax({
208
//		url: "http://www.ekexiu.com:8082/log/jsonp/log",
209
//		data: {
210
//			"id": id,
211
//			"src": src,
212
//			"__lt": dt,
213
//		},
214
//		success:function(data) {
215
//		},
216
//		dataType: "jsonp"
217
//	});
212 218
}
213 219

214 220
//广告相关操作
215 221
function addscript(that){
216 222
	var script=document.createElement("script");  
217 223
	script.setAttribute("type", "text/javascript");  
218
	var srclink= "http://www.ekexiu.com/data/inc/ad/"+ that +".js?r=" + new Date().getTime();
224
	var srclink= "https://www.ekexiu.com/data/inc/ad/"+ that +".js?r=" + new Date().getTime();
219 225
	script.setAttribute("src", srclink);  
220 226
	var heads = document.getElementsByTagName("head");  
221 227
	if(heads.length){