浏览代码

搜索首页

happy 8 年之前
父节点
当前提交
b72b64b609
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 1 0
      app/html/search-home.html
  2. 5 5
      app/js/searchhome.js

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

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

+ 5 - 5
app/js/searchhome.js

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

221

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

338

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

523

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

591

592

592
})
593

593

594
	
594