Преглед на файлове

找资源中咨询按钮点击功能

xiaoai_123 преди 8 години
родител
ревизия
76b0a9b4c3
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      src/main/webapp/js/search.js

+ 5 - 2
src/main/webapp/js/search.js

106
							//找专家点击咨询
106
							//找专家点击咨询
107
							$(".onlyConsultbtn").bind("click",clickConsultFn);
107
							$(".onlyConsultbtn").bind("click",clickConsultFn);
108
							
108
							
109
							
109
							if(isbind == true){
110
							if(isbind == true){
110
								$(".tcdPageCode").createPage({
111
								$(".tcdPageCode").createPage({
111
							        pageCount:Math.ceil($data.data.total/pageSize),
112
							        pageCount:Math.ceil($data.data.total/pageSize),
156
 								{
157
 								{
157
 									 add+='<div class="provideservice">可提供服务:'+$da[i].supportedServices+'</div></div>' 
158
 									 add+='<div class="provideservice">可提供服务:'+$da[i].supportedServices+'</div></div>' 
158
 								}	                                              
159
 								}	                                              
159
 			                    add+='<div class="operbox"><span class="operbtn consultbtn">咨询</span><span class="operbtn applybtn appl" resourceId='+$da[i].resourceId+' resourceName='+$da[i].resourceName+' professor='+$da[i].professor.name+'>申请</span></div>'
160
 			                    add+='<div class="operbox"><span class="operbtn consultbtn" id="'+$da[i]["professor"]["id"]+'">咨询</span><span class="operbtn applybtn appl" resourceId='+$da[i].resourceId+' resourceName='+$da[i].resourceName+' professor='+$da[i].professor.name+'>申请</span></div>'
160
 			                	add+='</div>'
161
 			                	add+='</div>'
161
 			                	$("#professorList").append(add);
162
 			                	$("#professorList").append(add);
162
 			                    
163
 			                    
180
 						 {
181
 						 {
181
 							$.MsgBox.Alert("message","请登录");
182
 							$.MsgBox.Alert("message","请登录");
182
 						}
183
 						}
184
 						
185
 						//找资源中点击咨询
186
						$(".consultbtn").bind("click",clickConsultFn);
183
 					},				
187
 					},				
184
 				});	
188
 				});	
185
 			}
189
 			}
449
			//点击的发送
453
			//点击的发送
450
			$("#sendConsultBtn").on("click",sendConsultHandler);
454
			$("#sendConsultBtn").on("click",sendConsultHandler);
451
			var professorId = $(this).attr("id");
455
			var professorId = $(this).attr("id");
452
			alert(professorId);
453
			if(userid && userid != null && userid != "null"){
456
			if(userid && userid != null && userid != "null"){
454
				$.ajax({
457
				$.ajax({
455
					"url" :"/ajax/professor/"+ professorId,
458
					"url" :"/ajax/professor/"+ professorId,