浏览代码

原文跳转 微信

wangshan 6 年之前
父节点
当前提交
453d19afcd
共有 2 个文件被更改,包括 2 次插入6 次删除
  1. 1 3
      src/web/templates/weixin/wxinfocontent.html
  2. 1 3
      src/web/templates/weixin/wxinfocontent_rec.html

+ 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(){