Parcourir la Source

Merge branch 'dev' of
http://121.42.53.174:3000/bulomakaka/ekexiu.app.git into dev

Conflicts:
app/js/searchListNew.js

luyanan 7 ans auparavant
Parent
commit
f74a1388bd
1 fichiers modifiés avec 15 ajouts et 6 suppressions
  1. 15 6
      app/js/searchListNew.js

+ 15 - 6
app/js/searchListNew.js

@ -56,6 +56,7 @@ var search = {
56 56
				type: oType, //HTTP请求类型
57 57
				timeout: 10000, //超时时间设置为10秒;
58 58
				traditional: true,
59
				async:false,
59 60
				success: function(data) {
60 61
					//console.log(JSON.stringify(data))
61 62
					if(data.success) {
@ -77,6 +78,7 @@ var search = {
77 78
		document.getElementById('noSearch').style.display = "none"
78 79
		if(flag == 1) {
79 80
			document.getElementById("list").innerHTML = ""
81
			mui('#pullrefresh').pullRefresh().scrollTo(0,0,100);
80 82
			if(data.data.length == 0) {
81 83
				mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
82 84
				document.getElementById('noSearch').style.display = "block";
@ -177,6 +179,7 @@ var search = {
177 179
		var $da = data.data;
178 180
		if(flag == 1) {
179 181
			document.getElementById("list").innerHTML = ""
182
			mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)
180 183
			if(data.data.length == 0) {
181 184
				mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
182 185
				document.getElementById('noSearch').style.display = "block";
@ -247,6 +250,7 @@ var search = {
247 250
		var $data = data.data;
248 251
		if(flag == 1) {
249 252
			document.getElementById("list").innerHTML = ""
253
			mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)
250 254
			if(data.data.length == 0) {
251 255
				mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
252 256
				document.getElementById('noSearch').style.display = "block";
@ -386,15 +390,19 @@ mui.plusReady(function() {
386 390
		}, "get", search.oExeprt);
387 391
	})
388 392
	mui(".fixbtnNew").on("tap", "li", function() {
393
		var $this=this
394
		setTimeout(function(){
395
			
396
		
389 397
		inputValue = document.getElementById("searchval").value;
390
		this.classList.add("liactive");
391
		for(var i = 0; i < siblings(this).length; i++) {
392
			siblings(this)[i].classList.remove("liactive")
398
		$this.classList.add("liactive");
399
		for(var i = 0; i < siblings($this).length; i++) {
400
			siblings($this)[i].classList.remove("liactive")
393 401
		}
394 402
		flag = 1;
395 403
		pageNo = 1;
396 404
		mui('#pullrefresh').pullRefresh().enablePullupToRefresh();
397
		if(this.innerHTML == "找资源") {
405
		if($this.innerHTML == "找资源") {
398 406
			document.getElementById("sele").style.display = "none";
399 407
			document.getElementById("searB").classList.remove("searchboxNewT");
400 408
			qiFlag = 2;
@ -403,7 +411,7 @@ mui.plusReady(function() {
403 411
				"pageSize": pageSize,
404 412
				"pageNo": pageNo
405 413
			}, "get", search.resource);
406
		} else if(this.innerHTML == "找专家") {
414
		} else if($this.innerHTML == "找专家") {
407 415
			document.getElementById("sele").style.display = "block";
408 416
			document.getElementById("searB").classList.add("searchboxNewT");
409 417
			qiFlag = 1;
@ -416,7 +424,7 @@ mui.plusReady(function() {
416 424
				"pageSize": pageSize,
417 425
				"pageNo": pageNo
418 426
			}, "get", search.oExeprt);
419
		} else if(this.innerHTML == "找文章") {
427
		} else if($this.innerHTML == "找文章") {
420 428
			document.getElementById("sele").style.display = "none";
421 429
			document.getElementById("searB").classList.remove("searchboxNewT");
422 430
			qiFlag = 3;
@ -426,6 +434,7 @@ mui.plusReady(function() {
426 434
				"pageNo": pageNo
427 435
			}, "get", search.article);
428 436
		}
437
		},1100)
429 438
	})
430 439

431 440
	function siblings(elm) {