Browse Source

搜索首页

happy 8 years ago
parent
commit
b72b64b609
2 changed files with 6 additions and 5 deletions
  1. 1 0
      app/html/search-home.html
  2. 5 5
      app/js/searchhome.js

+ 1 - 0
app/html/search-home.html

@ -79,6 +79,7 @@
79 79
		
80 80
		mui("#li_show").on('tap', 'li', function() {
81 81
			bigClass = this.getAttribute("data-num");
82
			//console.log(bigClass)
82 83
			selectblock.innerHTML = this.innerHTML;
83 84
			showblock.style.display = 'none';
84 85
		});

+ 5 - 5
app/js/searchhome.js

@ -57,7 +57,7 @@ mui.plusReady(function(){
57 57
	
58 58
	mui('.list').on('tap','a',function(){
59 59
		var id=this.getAttribute("data-id");
60
		console.log(id);
60
		//console.log(id);
61 61
		var nwaiting = plus.nativeUI.showWaiting();//显示原生等待框
62 62
		if(bigClass==1){
63 63
			webviewShow = plus.webview.create("../html/proinforbrow.html",'proinforbrow.html',{},{proid:id});
@ -221,7 +221,7 @@ mui(".xsly").on('tap', 'a', function() {
221 221

222 222
/*初始化数据*/
223 223
function expert(key, subject, industry, province, address, authentication, pageSize, pageNo) {
224
		console.log(pageNo)
224
		console.log(bigClass)
225 225
	if(bigClass == 1) {
226 226
		mui.ajax(baseUrl + '/ajax/professor/pqAPP', {
227 227
			data: {
@ -273,6 +273,7 @@ function expert(key, subject, industry, province, address, authentication, pageS
273 273
			success: function(data) {
274 274
				table.innerHTML = '';
275 275
				plus.nativeUI.closeWaiting();
276
				plus.webview.currentWebview().show();
276 277
				if(data.success && data.data.data != '') {
277 278
					var datalist = data.data.data;
278 279
					resourcesEach(datalist);
@ -337,7 +338,6 @@ function expert2(key, subject, industry, province, address, authentication, page
337 338

338 339
				} else {
339 340
					mui('#pullrefresh').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新
340
					
341 341
					table.innerHTML = '';
342 342
					plus.nativeUI.toast("抱歉,没有找到对应的搜索", toastStyle);
343 343
				}
@ -362,7 +362,6 @@ function expert2(key, subject, industry, province, address, authentication, page
362 362
			dataType: 'json', //数据格式类型
363 363
			type: 'GET', //http请求类型
364 364
			timeout: 10000,
365
			
366 365
			success: function(data) {
367 366
				plus.nativeUI.closeWaiting();
368 367
				if(data.success && data.data.data != '') {
@ -522,6 +521,7 @@ function resourcesEach(datalist) {
522 521
	});
523 522
}
524 523

524
mui.plusReady(function(){
525 525
//省
526 526
mui.ajax(baseUrl + '/ajax/dataDict/qaCity', {
527 527
	data: {
@ -589,6 +589,6 @@ mui.ajax(baseUrl + '/ajax/dataDict/qa/SUBJECT', {
589 589
	}
590 590
});
591 591

592

592
})
593 593

594 594