|
@ -106,6 +106,7 @@ $(function(){
|
106
|
106
|
//找专家点击咨询
|
107
|
107
|
$(".onlyConsultbtn").bind("click",clickConsultFn);
|
108
|
108
|
|
|
109
|
|
109
|
110
|
if(isbind == true){
|
110
|
111
|
$(".tcdPageCode").createPage({
|
111
|
112
|
pageCount:Math.ceil($data.data.total/pageSize),
|
|
@ -156,7 +157,7 @@ $(function(){
|
156
|
157
|
{
|
157
|
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
|
161
|
add+='</div>'
|
161
|
162
|
$("#professorList").append(add);
|
162
|
163
|
|
|
@ -180,6 +181,9 @@ $(function(){
|
180
|
181
|
{
|
181
|
182
|
$.MsgBox.Alert("message","请登录");
|
182
|
183
|
}
|
|
184
|
|
|
185
|
//找资源中点击咨询
|
|
186
|
$(".consultbtn").bind("click",clickConsultFn);
|
183
|
187
|
},
|
184
|
188
|
});
|
185
|
189
|
}
|
|
@ -449,7 +453,6 @@ $(function(){
|
449
|
453
|
//点击的发送
|
450
|
454
|
$("#sendConsultBtn").on("click",sendConsultHandler);
|
451
|
455
|
var professorId = $(this).attr("id");
|
452
|
|
alert(professorId);
|
453
|
456
|
if(userid && userid != null && userid != "null"){
|
454
|
457
|
$.ajax({
|
455
|
458
|
"url" :"/ajax/professor/"+ professorId,
|