|
@ -77,7 +77,6 @@ var search = {
|
77
|
77
|
document.getElementById('noSearch').style.display = "none"
|
78
|
78
|
if(flag == 1) {
|
79
|
79
|
document.getElementById("list").innerHTML = ""
|
80
|
|
mui('#pullrefresh').pullRefresh().scrollTo(0,0,100);
|
81
|
80
|
if(data.data.length == 0) {
|
82
|
81
|
mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
|
83
|
82
|
document.getElementById('noSearch').style.display = "block";
|
|
@ -178,7 +177,6 @@ var search = {
|
178
|
177
|
var $da = data.data;
|
179
|
178
|
if(flag == 1) {
|
180
|
179
|
document.getElementById("list").innerHTML = ""
|
181
|
|
mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)
|
182
|
180
|
if(data.data.length == 0) {
|
183
|
181
|
mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
|
184
|
182
|
document.getElementById('noSearch').style.display = "block";
|
|
@ -249,7 +247,6 @@ var search = {
|
249
|
247
|
var $data = data.data;
|
250
|
248
|
if(flag == 1) {
|
251
|
249
|
document.getElementById("list").innerHTML = ""
|
252
|
|
mui('#pullrefresh').pullRefresh().scrollTo(0,0,100)
|
253
|
250
|
if(data.data.length == 0) {
|
254
|
251
|
mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
|
255
|
252
|
document.getElementById('noSearch').style.display = "block";
|
|
@ -389,19 +386,15 @@ mui.plusReady(function() {
|
389
|
386
|
}, "get", search.oExeprt);
|
390
|
387
|
})
|
391
|
388
|
mui(".fixbtnNew").on("tap", "li", function() {
|
392
|
|
var $this=this
|
393
|
|
setTimeout(function(){
|
394
|
|
|
395
|
|
|
396
|
389
|
inputValue = document.getElementById("searchval").value;
|
397
|
|
$this.classList.add("liactive");
|
398
|
|
for(var i = 0; i < siblings($this).length; i++) {
|
399
|
|
siblings($this)[i].classList.remove("liactive")
|
|
390
|
this.classList.add("liactive");
|
|
391
|
for(var i = 0; i < siblings(this).length; i++) {
|
|
392
|
siblings(this)[i].classList.remove("liactive")
|
400
|
393
|
}
|
401
|
394
|
flag = 1;
|
402
|
395
|
pageNo = 1;
|
403
|
396
|
mui('#pullrefresh').pullRefresh().enablePullupToRefresh();
|
404
|
|
if($this.innerHTML == "找资源") {
|
|
397
|
if(this.innerHTML == "找资源") {
|
405
|
398
|
document.getElementById("sele").style.display = "none";
|
406
|
399
|
document.getElementById("searB").classList.remove("searchboxNewT");
|
407
|
400
|
qiFlag = 2;
|
|
@ -410,7 +403,7 @@ mui.plusReady(function() {
|
410
|
403
|
"pageSize": pageSize,
|
411
|
404
|
"pageNo": pageNo
|
412
|
405
|
}, "get", search.resource);
|
413
|
|
} else if($this.innerHTML == "找专家") {
|
|
406
|
} else if(this.innerHTML == "找专家") {
|
414
|
407
|
document.getElementById("sele").style.display = "block";
|
415
|
408
|
document.getElementById("searB").classList.add("searchboxNewT");
|
416
|
409
|
qiFlag = 1;
|
|
@ -423,7 +416,7 @@ mui.plusReady(function() {
|
423
|
416
|
"pageSize": pageSize,
|
424
|
417
|
"pageNo": pageNo
|
425
|
418
|
}, "get", search.oExeprt);
|
426
|
|
} else if($this.innerHTML == "找文章") {
|
|
419
|
} else if(this.innerHTML == "找文章") {
|
427
|
420
|
document.getElementById("sele").style.display = "none";
|
428
|
421
|
document.getElementById("searB").classList.remove("searchboxNewT");
|
429
|
422
|
qiFlag = 3;
|
|
@ -433,7 +426,6 @@ mui.plusReady(function() {
|
433
|
426
|
"pageNo": pageNo
|
434
|
427
|
}, "get", search.article);
|
435
|
428
|
}
|
436
|
|
},600)
|
437
|
429
|
})
|
438
|
430
|
|
439
|
431
|
function siblings(elm) {
|