Browse Source

h5关键词标签跳转搜索页面

luyanan 7 years ago
parent
commit
274b965cd5
5 changed files with 29 additions and 3 deletions
  1. 10 2
      e/a.html
  2. 5 0
      e/l.html
  3. 5 0
      e/r.html
  4. 4 0
      e/z.html
  5. 5 1
      js/public/openApp.js

+ 10 - 2
e/a.html

@ -153,6 +153,12 @@
153 153
			location.href="http://" + window.location.host + "/e/c.html?id=" + OdataId;
154 154
			
155 155
		})
156
		$(".tagList").on("click", "li", function() {
157
			var keyCon=$(this).find("span").text();
158
			location.href="http://" + window.location.host + "/e/search.html?flag=3&key=" + keyCon;
159
		})
160
	
161
		
156 162
		var oArticleModule = {
157 163
			articleId: GetQueryString("id"),
158 164
			oAjaxGet: function(url, obj, oType, oFun) {
@ -413,8 +419,10 @@
413 419
									'</div>'
414 420
								
415 421
								if(oo==0){
416
								document.getElementById("newarticleList").appendChild(li)
417
							}else{document.getElementById("articleList").appendChild(li);}
422
									document.getElementById("newarticleList").appendChild(li)
423
								}else{
424
									document.getElementById("articleList").appendChild(li);
425
								}
418 426
							}
419 427
						},
420 428
						error: function() {

+ 5 - 0
e/l.html

@ -242,6 +242,11 @@ $(document).ready(function() {
242 242
			$(this).addClass("activeThis");
243 243
		}
244 244
	})
245
	$(".tagList").on("click", "li", function() {
246
		var keyCon=$(this).find("span").text();
247
		location.href="http://" + window.location.host + "/e/search.html?flag=5&key=" + keyCon;
248
	})
249
	
245 250
	function getRecourceMe() {
246 251
		$.ajax({
247 252
			url:'../ajax/ppaper/qo',

+ 5 - 0
e/r.html

@ -468,6 +468,11 @@ $(document).ready(function() {
468 468
		location.href="http://" + window.location.host + "/e/r.html?id=" + $(this).attr("data-id");
469 469
	})
470 470
471
	$(".tagList").on("click", "li", function() {
472
		var keyCon=$(this).find("span").text();
473
		location.href="http://" + window.location.host + "/e/search.html?flag=2&key=" + keyCon;
474
	})
475
	
471 476
	 /*微信分享*/
472 477
	$.ajax({
473 478
		url: "../ajax/weixin/jsapiTicket",

+ 4 - 0
e/z.html

@ -249,6 +249,10 @@ $(document).ready(function() {
249 249
			$(this).addClass("activeThis");
250 250
		}
251 251
	})
252
	$(".tagList").on("click", "li", function() {
253
		var keyCon=$(this).find("span").text();
254
		location.href="http://" + window.location.host + "/e/search.html?flag=4&key=" + keyCon;
255
	})
252 256
		
253 257
	function getRecourceMe() {
254 258
		$.ajax({

+ 5 - 1
js/public/openApp.js

@ -79,7 +79,11 @@
79 79
		console.log(oUrl)
80 80
		if (ifWeixin) { // 如果是微信端
81 81
			if(isiOS){
82
				window.location.href = window.location.href +"&ifOp=1";
82
				if((window.location.href).indexOf("?")>0){
83
					window.location.href = window.location.href +"&ifOp=1";
84
				}else{
85
					window.location.href = window.location.href +"?ifOp=1";
86
				}
83 87
			}
84 88
			
85 89
			if (j) {