Browse Source

原文跳转 微信

wangshan 6 năm trước cách đây
mục cha
commit
453d19afcd

+ 1 - 3
src/web/templates/weixin/wxinfocontent.html

@@ -1349,9 +1349,7 @@ $(function(){
 	})
 	$(".abs>.original").click(function(event){
 		event.preventDefault();
-		var url =document.location.protocol+"//"+ window.location.host+"/front/transfer?url="+encodeURIComponent($(this).attr("href"))
-		window.open('javascript:window.name', '<script>location.replace("'+url+'")<\/script>');
-		//window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
+		window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
 	});
 })
 function reward(){

+ 1 - 3
src/web/templates/weixin/wxinfocontent_rec.html

@@ -1653,9 +1653,7 @@ $(function(){
 	})
 	$(".abs>.original").click(function(event){
 		event.preventDefault();
-		var url =document.location.protocol+"//"+ window.location.host+"/front/transfer?url="+encodeURIComponent($(this).attr("href"))
-		window.open('javascript:window.name', '<script>location.replace("'+url+'")<\/script>');
-		//window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
+		window.location.href = '/front/transfer?url='+encodeURIComponent($(this).attr("href"));
 	});
 })
 function reward(){