Sfoglia il codice sorgente

首页企业查看更多ios跳转显示白屏的问题

luyanan 7 anni fa
parent
commit
c3ee5d52fc
3 ha cambiato i file con 99 aggiunte e 405 eliminazioni
  1. 10 258
      app/js/index.js
  2. 56 56
      app/js/public/base.js
  3. 33 91
      app/js/searchListNew2.js

+ 10 - 258
app/js/index.js

@ -5,77 +5,18 @@ var table = document.body.querySelector('.list');
5 5
var search = document.getElementById("search");
6 6

7 7
mui.plusReady(function() {
8
	//plus.nativeUI.showWaiting();
9 8
	checkVersion();
10

11
document.addEventListener("resume", function(e) {
12
	//alert(JSON.stringify(e));
13
	if(mui.os.ios) {
14
	 window.check_version = window.check_version || 1;
15
	 window.check_version++;
16
	 if(window.check_version % 2) {
17
	 	return;
18
	 }
19
	 
20
	  if(window.check_version)
21
	  plus.runtime.getProperty(plus.runtime.appid,function(inf){
22
			    wgtVer=inf.version;
23
			    console.log("当前应用版本:"+wgtVer);
24
			    mui.ajax(baseUrl + "/data/manager/version.json", {
25
					dataType: 'json', //数据格式类型
26
					type: 'GET', //http请求类型
27
					timeout: 10000, //超时设置
28
					async: false,
29
					success: function(data) {
30
						// window.check_version=3;
31
						if (data.version > wgtVer) {
32
							var btn = ["立即更新", "稍后更新"];
33
							mui.confirm("新版本上线了,为了不影响您的正常使用,赶快更新吧", "提示", btn, function(e) {
34
								if(e.index == 0) {
35
									if(mui.os.ios) {
36
										plus.runtime.openURL('https://itunes.apple.com/cn/app/ke-xiu-da-jian-qi-ye-yu-zhuan/id1197110983?l=en&mt=8');
37
										return;
38
									}
39
								try {
40
									     plus.nativeUI.showWaiting("正在下载...");
41
									     //var d="http://192.168.3.233/download/app1.0.6.apk";
42
										 plus.downloader.createDownload( data.wgt, {filename:"_doc/update/"}, function(d,status){
43
									        if ( status == 200 ) { 
44
									            plus.runtime.install(d.filename, {}, function() {
45
													console.log("安装新版本文件成功!");
46
													/*plus.nativeUI.alert("应用资源更新完成,程序需要立即重启", function() {
47
														plus.runtime.restart();
48
													});*/
49
												}, function(e) {
50
													console.log("安装新版文件失败[" + e.code + "]:" + e.message);
51
													plus.nativeUI.toast("安装新版文件失败[" + e.code + "]:" + e.message);
52
												});
53
									            
54
									        } else {
55
									            console.log("下载新版本失败!");
56
									            plus.nativeUI.toast("下载新版本失败!");
57
									        }
58
							       			plus.nativeUI.closeWaiting();
59
							    		}).start();
60
						    		} catch (e) {
61
										console.log(e.message);
62
									}	
63
								}
64
							});
65
						}else{
66
							//plus.nativeUI.toast("您使用的是最新版本,请放心使用!", toastStyle);
67
						}
68
					},
69
					error: function() {
70
						plus.nativeUI.toast("服务器链接超时", toastStyle);
71
						return;
72
					}
73
				});
74
			});
75
			}else{
76
				checkVersion();
9
	document.addEventListener("resume", function(e) {
10
		if(mui.os.ios) {
11
			window.check_version = window.check_version || 1;
12
			//alert(window.check_version)
13
			window.check_version++;
14
			if(window.check_version % 2) {
15
			 	return;
77 16
			}
78
}, false)
17
		}
18
		checkVersion();
19
	}, false)
79 20
})
80 21
function orName() {
81 22
	mui.ajax(baseUrl + "/ajax/professor/baseInfo/" + plus.storage.getItem('userid'), {
@ -240,195 +181,6 @@ mui('.gridbg').on('tap', 'li', function() {
240 181
	});
241 182
})
242 183

243
/*页面数据初始化*/
244
//getOnePase();
245

246
//mui.init({
247
//	pullRefresh: {
248
//		container: '#pullrefresh',
249
//		down: {
250
//			callback: pulldownRefresh
251
//		},
252
//		up: {
253
//			contentrefresh: '正在加载...',
254
//			//auto:true,
255
//			//height:100, 
256
//			callback: pullupRefresh
257
//		}
258
//	}
259
//});
260
//
261
//function pullupRefresh() {
262
//	pageIndex = ++pageIndex;
263
//	setTimeout(function() {
264
//		getaData()
265
//	}, 1000);
266
//}
267
//
268
//function pulldownRefresh() {
269
//	setTimeout(function() {
270
//		getOnePase();
271
//		mui('#pullrefresh').pullRefresh().endPulldownToRefresh();
272
//	}, 1000);
273
//}
274
//
275
//if(mui.os.plus) {
276
//	mui.plusReady(function() {
277
//		setTimeout(function() {
278
//			mui('#pullrefresh').pullRefresh().pulldownLoading();
279
//		}, 500);
280
//	});
281
//} else {
282
//	mui.ready(function() {
283
//		mui('#pullrefresh').pullRefresh().pulldownLoading();
284
//	});
285
//}
286

287
/*获取上拉加载更多数据*/
288
//function getaData() {
289
//	mui.plusReady(function() {
290
//		mui.ajax(baseUrl + '/ajax/professor/pqHot', {
291
//			data: {
292
//				"pageNo": pageIndex,
293
//				"pageSize": 10,
294
//			},
295
//			dataType: 'json', //数据格式类型
296
//			type: 'GET', //http请求类型
297
//			timeout: 10000,
298
//			async: false,
299
//			success: function(data) {
300
//				if(data.success) {
301
//					//console.log("成功");
302
//					var dice1 = data.data.total; //总条数
303
//					var dice2 = data.data.pageSize; //每页条数
304
//					var result = '';
305
//					if(pageIndex == 1) { //下拉刷新需要先清空数据
306
//						table.innerHTML = ''; // 在这里清空可以防止刷新时白屏
307
//					}
308
//					allPages = dice1 / dice2;
309
//					var datalist = data.data.data;
310
//					datalistEach(datalist);
311
//					if(pageIndex < allPages) {
312
//						mui('#pullrefresh').pullRefresh().endPullupToRefresh(false); /*能上拉*/
313
//					} else {
314
//						mui('#pullrefresh').pullRefresh().endPullupToRefresh(true); /*不能上拉*/
315
//					}
316
//				}
317
//			},
318
//			error: function() {
319
//				plus.nativeUI.toast("服务器链接超时", toastStyle);
320
//				mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
321
//			}
322
//		});
323
//	});
324
//}
325

326
/*获取第一页数据*/
327
//function getOnePase() {
328
//	mui.plusReady(function() {
329
//		mui.ajax(baseUrl + '/ajax/professor/pqHot', {
330
//			data: {
331
//				"pageNo": 1,
332
//				"pageSize": 10,
333
//			},
334
//			dataType: 'json', //数据格式类型
335
//			type: 'GET', //http请求类型
336
//			timeout: 10000,
337
//			async: false,
338
//			success: function(data) {
339
//				table.innerHTML = "";
340
//				if(data.success) {
341
//					plus.nativeUI.closeWaiting();
342
//					var datalist = data.data.data;
343
//					datalistEach(datalist);
344
//				}
345
//			},
346
//			error: function() {
347
//				plus.nativeUI.toast("服务器链接超时", {
348
//					'verticalAlign': 'center'
349
//				});
350
//			}
351
//		});
352
//	});
353
//}
354
//
355
///*数据遍历*/
356
//function datalistEach(datalist) {
357
//	mui.each(datalist, function(index, item) {
358
//
359
//		/*获取头像*/
360
//		if(item.hasHeadImage == 1) {
361
//			var img = baseUrl + "/images/head/" + item.id + "_l.jpg";
362
//		} else {
363
//			var img = "../images/default-photo.jpg";
364
//		}
365
//
366
//		/*获取研究方向信息*/
367
//		var researchAreas = item.researchAreas;
368
//		var rlist = '';
369
//		for(var n = 0; n < researchAreas.length; n++) {
370
//			//console.log(researchAreas[n].caption);
371
//			rlist += '<span>研究方向:' + researchAreas[n].caption
372
//			if(n < researchAreas.length - 1) {
373
//				rlist += " , "
374
//			}
375
//			rlist += '</span>';
376
//		}
377
//
378
//		/*获取资源信息*/
379
//		var resources = item.resources;
380
//		var zlist = '';
381
//		for(var m = 0; m < resources.length; m++) {
382
//			//console.log(resources[m].caption);
383
//			zlist += '<span>' + resources[m].resourceName
384
//			if(m < resources.length - 1) {
385
//				zlist += " , "
386
//			}
387
//			zlist += '</span>';
388
//		}
389
//
390
//		var otherIn = "";
391
//		if(item.title) {
392
//			if(item.orgName) {
393
//				otherIn = item.title + "," + item.orgName;
394
//			} else {
395
//				otherIn = item.title;
396
//			}
397
//		} else {
398
//			if(item.office) {
399
//				if(item.orgName) {
400
//					otherIn = item.office + "," + item.orgName;
401
//				} else {
402
//					otherIn = item.office;
403
//				}
404
//			} else {
405
//				if(item.orgName) {
406
//					otherIn = item.orgName;
407
//				}
408
//			}
409
//		}
410
//
411
//		var typeTname = '';
412
//		var oSty = autho(item.authType, item.orgAuth, item.authStatus);
413
//		typeTname = '<em class="authicon ' + oSty.sty + '"></em>'
414
//
415
//		var li = document.createElement('li');
416
//		li.className = 'mui-table-view-cell flexCenter OflexCenter';
417
//		li.setAttribute("data-id", item.id);
418
//		li.innerHTML =
419
//			'<div class="madiaHead useHead" style="background-image:url(' + img + ')"></div>' +
420
//			'<div class="madiaInfo">' +
421
//			'<p><span class="h1Font">' + item.name + typeTname + '</p>' +
422
//			'<p class="mui-ellipsis h2Font">' + otherIn + '</p>' +
423
//			'<p class="mui-ellipsis h2Font">' + rlist + '</p>' +
424
//			//						'<p class="mui-ellipsis h3Font">' + zlist + '</p>' +
425
//			'</div>';
426
//
427
//		table.appendChild(li, table.firstChild);
428
//
429
//	});
430
//}
431

432 184
function ruZhuCmp(){//入驻企业
433 185
	mui.ajax(baseUrl+"/ajax/org/find/pq",{
434 186
		type: "GET",

+ 56 - 56
app/js/public/base.js

@ -392,65 +392,65 @@ function cancelCollectionAbout(watchObject,sel, num,flag) {
392 392

393 393
}
394 394
function checkVersion(){
395
		//mui.plusReady(function(){
396
			if(!plus.webview.currentWebview()) return;
397
			// 获取本地应用资源版本号
398
		    plus.runtime.getProperty(plus.runtime.appid,function(inf){
399
			    wgtVer=inf.version;
400
			    console.log("当前应用版本:"+wgtVer);
401
			    mui.ajax(baseUrl + "/data/manager/version.json", {
402
					dataType: 'json', //数据格式类型
403
					type: 'GET', //http请求类型
404
					timeout: 10000, //超时设置
405
					async: false,
406
					success: function(data) {
407
						if (data.version > wgtVer) {
408
							var btn = ["立即更新", "稍后更新"];
409
							mui.confirm("新版本上线了,为了不影响您的正常使用,赶快更新吧", "提示", btn, function(e) {
410
								if(e.index == 0) {
411
									if(mui.os.ios) {
412
										plus.runtime.openURL('https://itunes.apple.com/cn/app/ke-xiu-da-jian-qi-ye-yu-zhuan/id1197110983?l=en&mt=8');
413
										return;
414
									}
415
								try {
416
									     plus.nativeUI.showWaiting("正在下载...");
417
									     //var d="http://192.168.3.233/download/app1.0.6.apk";
418
										 plus.downloader.createDownload( data.wgt, {filename:"_doc/update/"}, function(d,status){
419
									        if ( status == 200 ) { 
420
									            plus.runtime.install(d.filename, {}, function() {
421
													console.log("安装新版本文件成功!");
422
													/*plus.nativeUI.alert("应用资源更新完成,程序需要立即重启", function() {
423
														plus.runtime.restart();
424
													});*/
425
												}, function(e) {
426
													console.log("安装新版文件失败[" + e.code + "]:" + e.message);
427
													plus.nativeUI.toast("安装新版文件失败[" + e.code + "]:" + e.message);
428
												});
429
									            
430
									        } else {
431
									            console.log("下载新版本失败!");
432
									            plus.nativeUI.toast("下载新版本失败!");
433
									        }
434
							       			plus.nativeUI.closeWaiting();
435
							    		}).start();
436
						    		} catch (e) {
437
										console.log(e.message);
438
									}	
395
	//mui.plusReady(function(){
396
		if(!plus.webview.currentWebview()) return;
397
		// 获取本地应用资源版本号
398
	    plus.runtime.getProperty(plus.runtime.appid,function(inf){
399
		    wgtVer=inf.version;
400
		    console.log("当前应用版本:"+wgtVer);
401
		    mui.ajax(baseUrl + "/data/manager/version.json", {
402
				dataType: 'json', //数据格式类型
403
				type: 'GET', //http请求类型
404
				timeout: 10000, //超时设置
405
				async: false,
406
				success: function(data) {
407
					if (data.version > wgtVer) {
408
						var btn = ["立即更新", "稍后更新"];
409
						mui.confirm("新版本上线了,为了不影响您的正常使用,赶快更新吧", "提示", btn, function(e) {
410
							if(e.index == 0) {
411
								if(mui.os.ios) {
412
									plus.runtime.openURL('https://itunes.apple.com/cn/app/ke-xiu-da-jian-qi-ye-yu-zhuan/id1197110983?l=en&mt=8');
413
									return;
439 414
								}
440
							});
441
						}else{
442
							//plus.nativeUI.toast("您使用的是最新版本,请放心使用!", toastStyle);
443
						}
444
					},
445
					error: function() {
446
						plus.nativeUI.toast("服务器链接超时", toastStyle);
447
						return;
415
								try {
416
								     plus.nativeUI.showWaiting("正在下载...");
417
								     //var d="http://192.168.3.233/download/app1.0.6.apk";
418
									 plus.downloader.createDownload( data.wgt, {filename:"_doc/update/"}, function(d,status){
419
								        if ( status == 200 ) { 
420
								            plus.runtime.install(d.filename, {}, function() {
421
												console.log("安装新版本文件成功!");
422
												/*plus.nativeUI.alert("应用资源更新完成,程序需要立即重启", function() {
423
													plus.runtime.restart();
424
												});*/
425
											}, function(e) {
426
												console.log("安装新版文件失败[" + e.code + "]:" + e.message);
427
												plus.nativeUI.toast("安装新版文件失败[" + e.code + "]:" + e.message);
428
											});
429
								            
430
								        } else {
431
								            console.log("下载新版本失败!");
432
								            plus.nativeUI.toast("下载新版本失败!");
433
								        }
434
						       			plus.nativeUI.closeWaiting();
435
						    		}).start();
436
					    		} catch (e) {
437
									console.log(e.message);
438
								}	
439
							}
440
						});
441
					}else{
442
						//plus.nativeUI.toast("您使用的是最新版本,请放心使用!", toastStyle);
448 443
					}
449
				});
444
				},
445
				error: function() {
446
					plus.nativeUI.toast("服务器链接超时", toastStyle);
447
					return;
448
				}
450 449
			});
451
			
452
		//})
453
	}
450
		});
451
		
452
	//})
453
}
454 454
function wlog(dt, id, src) {
455 455
	var src = src || "1";
456 456
	mui.ajax({

+ 33 - 91
app/js/searchListNew2.js

@ -117,11 +117,6 @@ for(var n=0;n<6;n++) {
117 117
						document.getElementById('noSearch').classList.remove("displayNone");
118 118
						return;
119 119
					}
120
					if(pageNo.ex < Math.ceil(data.total / data.pageSize)) {
121
						key1[0].endPullUpToRefresh(false);
122
					} else {
123
						key1[0].endPullUpToRefresh(true);
124
					}
125 120
					flag = 2;
126 121

127 122
				} else {
@ -129,11 +124,6 @@ for(var n=0;n<6;n++) {
129 124
						key1[0].endPullupToRefresh(true);
130 125
						return;
131 126
					}
132
					if(pageNo.ex < Math.ceil(data.total / data.pageSize)) {
133
						key1[0].endPullUpToRefresh(false);
134
					} else {
135
						key1[0].endPullUpToRefresh(true);
136
					}
137 127
				}
138 128
				for(var i = 0; i < data.data.length; i++) {
139 129
					var li = document.createElement("li");
@ -182,6 +172,11 @@ for(var n=0;n<6;n++) {
182 172
						
183 173
					document.getElementById("list").appendChild(li);
184 174
				}
175
				if(pageNo.ex < Math.ceil(data.total / data.pageSize)) {
176
					key1[0].endPullUpToRefresh(false);
177
				} else {
178
					key1[0].endPullUpToRefresh(true);
179
				}
185 180
			},
186 181
			createWin: function() {
187 182
				mui.openWindow({
@ -231,17 +226,10 @@ for(var n=0;n<6;n++) {
231 226
				if(flag == 1) {
232 227
					document.getElementById("resourceList").innerHTML = ""
233 228
					if(data.data.length == 0) {
234
						//key1[2].endPullupToRefresh(true);
235 229
						key1[2].endPullUpToRefresh(true);
236 230
						document.getElementById('reNoSearch').classList.remove("displayNone");
237 231
						return;
238 232
					}
239
					if(pageNo.rs < Math.ceil(data.total / data.pageSize)) {
240
						//key1[2].endPullupToRefresh(false);
241
						key1[2].endPullUpToRefresh(false);
242
					} else {
243
						key1[2].endPullUpToRefresh(true);
244
					}
245 233
					flag = 2;
246 234
				} else {
247 235
					if(data.data.length == 0) {
@ -249,11 +237,6 @@ for(var n=0;n<6;n++) {
249 237
						key1[2].endPullupToRefresh(true);
250 238
						return;
251 239
					}
252
					if(pageNo.rs < Math.ceil(data.total / data.pageSize)) {
253
						key1[2].endPullUpToRefresh(false);
254
					} else {
255
						key1[2].endPullUpToRefresh(true);
256
					}
257 240
				}
258 241
				for(var i = 0; i < $da.length; i++) {
259 242
					var $data = $da[i];
@ -291,7 +274,11 @@ for(var n=0;n<6;n++) {
291 274
						
292 275
					document.getElementById("resourceList").appendChild(li);
293 276
				}
294

277
				if(pageNo.rs < Math.ceil(data.total / data.pageSize)) {
278
					key1[2].endPullUpToRefresh(false);
279
				} else {
280
					key1[2].endPullUpToRefresh(true);
281
				}
295 282
			},
296 283
			article: function(data) {
297 284
				if(key2[5] == 1) {
@ -326,34 +313,17 @@ for(var n=0;n<6;n++) {
326 313
				if(flag == 1) {
327 314
					document.getElementById("articleList").innerHTML = ""
328 315
					if(data.data.length == 0) {
329
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
330 316
						key1[5].endPullUpToRefresh(true);
331 317
						document.getElementById('arNoSearch').classList.remove("displayNone");
332 318
						return;
333 319
					}
334
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
335
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
336
						key1[5].endPullUpToRefresh(false);
337

338
					} else {
339
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
340
						key1[5].endPullUpToRefresh(true);
341
					}
342 320
					flag = 2;
343 321
				} else {
344 322
					if(data.data.length == 0) {
345 323
						document.getElementById('arNoSearch').classList.remove("displayNone");
346
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
347 324
						key1[5].endPullUpToRefresh(true);
348 325
						return;
349 326
					}
350
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
351
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
352
						key1[5].endPullUpToRefresh(false);
353
					} else {
354
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
355
						key1[5].endPullUpToRefresh(false);
356
					}
357 327
				}
358 328
				for(var i = 0; i < $data.length; i++) {
359 329
					var of ;
@ -394,6 +364,12 @@ for(var n=0;n<6;n++) {
394 364
					document.getElementById("articleList").appendChild(li);
395 365

396 366
				}
367
				if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
368
					key1[5].endPullUpToRefresh(false);
369

370
				} else {
371
					key1[5].endPullUpToRefresh(true);
372
				}
397 373
			},
398 374
			patent: function(data) {
399 375
				
@ -429,34 +405,17 @@ for(var n=0;n<6;n++) {
429 405
				if(flag == 1) {
430 406
					document.getElementById("patentList").innerHTML = ""
431 407
					if(data.data.length == 0) {
432
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
433 408
						key1[3].endPullUpToRefresh(true);
434 409
						document.getElementById('ptNoSearch').classList.remove("displayNone");
435 410
						return;
436 411
					}
437
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
438
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
439
						key1[3].endPullUpToRefresh(false);
440

441
					} else {
442
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
443
						key1[3].endPullUpToRefresh(true);
444
					}
445 412
					flag = 2;
446 413
				} else {
447 414
					if(data.data.length == 0) {
448 415
						document.getElementById('ptNoSearch').classList.remove("displayNone");
449
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
450 416
						key1[3].endPullUpToRefresh(true);
451 417
						return;
452 418
					}
453
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
454
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
455
						key1[3].endPullUpToRefresh(false);
456
					} else {
457
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
458
						key1[3].endPullUpToRefresh(false);
459
					}
460 419
				}
461 420
				for(var i = 0; i < $data.length; i++) {
462 421
					var li = document.createElement("li");
@ -469,6 +428,12 @@ for(var n=0;n<6;n++) {
469 428
						'</div>'
470 429
					document.getElementById("patentList").appendChild(li);
471 430
				}
431
				if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
432
					key1[3].endPullUpToRefresh(false);
433

434
				} else {
435
					key1[3].endPullUpToRefresh(true);
436
				}
472 437
			},
473 438
			paper: function(data) {
474 439
				if(key2[4] == 1) {
@ -503,34 +468,17 @@ for(var n=0;n<6;n++) {
503 468
				if(flag == 1) {
504 469
					document.getElementById("paperList").innerHTML = ""
505 470
					if(data.data.length == 0) {
506
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
507 471
						key1[4].endPullUpToRefresh(true);
508 472
						document.getElementById('ppNoSearch').classList.remove("displayNone");
509 473
						return;
510 474
					}
511
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
512
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
513
						key1[4].endPullUpToRefresh(false);
514

515
					} else {
516
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
517
						key1[4].endPullUpToRefresh(true);
518
					}
519 475
					flag = 2;
520 476
				} else {
521 477
					if(data.data.length == 0) {
522 478
						document.getElementById('ppNoSearch').classList.remove("displayNone");
523
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
524 479
						key1[4].endPullUpToRefresh(true);
525 480
						return;
526 481
					}
527
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
528
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
529
						key1[4].endPullUpToRefresh(false);
530
					} else {
531
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
532
						key1[4].endPullUpToRefresh(false);
533
					}
534 482
				}
535 483
				for(var i = 0; i < $data.length; i++) {
536 484
					var li = document.createElement("li");
@ -543,6 +491,11 @@ for(var n=0;n<6;n++) {
543 491
						'</div>'
544 492
					document.getElementById("paperList").appendChild(li);
545 493
				}
494
				if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
495
					key1[4].endPullUpToRefresh(false);
496
				} else {
497
					key1[4].endPullUpToRefresh(false);
498
				}
546 499
			},
547 500
			company: function(data) {
548 501
				if(key2[1] == 1) {
@ -577,34 +530,17 @@ for(var n=0;n<6;n++) {
577 530
				if(flag == 1) {
578 531
					document.getElementById("companyList").innerHTML = ""
579 532
					if(data.data.length == 0) {
580
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
581 533
						key1[1].endPullUpToRefresh(true);
582 534
						document.getElementById('coNoSearch').classList.remove("displayNone");
583 535
						return;
584 536
					}
585
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
586
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
587
						key1[1].endPullUpToRefresh(false);
588

589
					} else {
590
						//mui('#pullrefresh').pullRefresh().disablePullupToRefresh(true);
591
						key1[1].endPullUpToRefresh(true);
592
					}
593 537
					flag = 2;
594 538
				} else {
595 539
					if(data.data.length == 0) {
596 540
						document.getElementById('coNoSearch').classList.remove("displayNone");
597
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
598 541
						key1[1].endPullUpToRefresh(true);
599 542
						return;
600 543
					}
601
					if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
602
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(false)
603
						key1[1].endPullUpToRefresh(false);
604
					} else {
605
						//mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
606
						key1[1].endPullUpToRefresh(false);
607
					}
608 544
				}
609 545
				for(var i = 0; i < $data.length; i++) {
610 546
					var li = document.createElement("li");
@ -625,6 +561,12 @@ for(var n=0;n<6;n++) {
625 561

626 562
					document.getElementById("companyList").appendChild(li);
627 563
				}
564
				if(data.pageNo < Math.ceil(data.total / data.pageSize)) {
565
					key1[1].endPullUpToRefresh(false);
566

567
				} else {
568
					key1[1].endPullUpToRefresh(true);
569
				}
628 570
			}
629 571
		}
630 572
		if(webview.qiFlag == 1) {