jack 7 年之前
父节点
当前提交
89d4129fc3
共有 1 个文件被更改,包括 11 次插入6 次删除
  1. 11 6
      app/js/searchListNew.js

+ 11 - 6
app/js/searchListNew.js

@ -389,15 +389,19 @@ mui.plusReady(function() {
389 389
		}, "get", search.oExeprt);
390 390
	})
391 391
	mui(".fixbtnNew").on("tap", "li", function() {
392
		var $this=this
393
		setTimeout(function(){
394
			
395
		
392 396
		inputValue = document.getElementById("searchval").value;
393
		this.classList.add("liactive");
394
		for(var i = 0; i < siblings(this).length; i++) {
395
			siblings(this)[i].classList.remove("liactive")
397
		$this.classList.add("liactive");
398
		for(var i = 0; i < siblings($this).length; i++) {
399
			siblings($this)[i].classList.remove("liactive")
396 400
		}
397 401
		flag = 1;
398 402
		pageNo = 1;
399 403
		mui('#pullrefresh').pullRefresh().enablePullupToRefresh();
400
		if(this.innerHTML == "找资源") {
404
		if($this.innerHTML == "找资源") {
401 405
			document.getElementById("sele").style.display = "none";
402 406
			document.getElementById("searB").classList.remove("searchboxNewT");
403 407
			qiFlag = 2;
@ -406,7 +410,7 @@ mui.plusReady(function() {
406 410
				"pageSize": pageSize,
407 411
				"pageNo": pageNo
408 412
			}, "get", search.resource);
409
		} else if(this.innerHTML == "找专家") {
413
		} else if($this.innerHTML == "找专家") {
410 414
			document.getElementById("sele").style.display = "block";
411 415
			document.getElementById("searB").classList.add("searchboxNewT");
412 416
			qiFlag = 1;
@ -419,7 +423,7 @@ mui.plusReady(function() {
419 423
				"pageSize": pageSize,
420 424
				"pageNo": pageNo
421 425
			}, "get", search.oExeprt);
422
		} else if(this.innerHTML == "找文章") {
426
		} else if($this.innerHTML == "找文章") {
423 427
			document.getElementById("sele").style.display = "none";
424 428
			document.getElementById("searB").classList.remove("searchboxNewT");
425 429
			qiFlag = 3;
@ -429,6 +433,7 @@ mui.plusReady(function() {
429 433
				"pageNo": pageNo
430 434
			}, "get", search.article);
431 435
		}
436
		},300)
432 437
	})
433 438

434 439
	function siblings(elm) {