|
@ -65,11 +65,10 @@ $(function(){
|
65
|
65
|
|
66
|
66
|
dataHtml += "</div>";
|
67
|
67
|
dataHtml += "</div>";
|
68
|
|
dataHtml += "<div class='operbox'><span class='operbtn consultbtn'>咨询</span></div>";
|
|
68
|
dataHtml += "<div class='operbox'><span class='operbtn onlyConsultbtn' id='"+$data.data.data[i]['id']+"'>咨询</span></div>";
|
69
|
69
|
|
70
|
70
|
$("#professorList").append(dataHtml);
|
71
|
|
|
72
|
|
|
|
71
|
|
73
|
72
|
//获取头像
|
74
|
73
|
$(".images").load(function(){
|
75
|
74
|
})
|
|
@ -104,6 +103,9 @@ $(function(){
|
104
|
103
|
)(i);
|
105
|
104
|
|
106
|
105
|
}
|
|
106
|
//找专家点击咨询
|
|
107
|
$(".onlyConsultbtn").bind("click",clickConsultFn);
|
|
108
|
|
107
|
109
|
if(isbind == true){
|
108
|
110
|
$(".tcdPageCode").createPage({
|
109
|
111
|
pageCount:Math.ceil($data.data.total/pageSize),
|
|
@ -438,6 +440,8 @@ $(function(){
|
438
|
440
|
});
|
439
|
441
|
});
|
440
|
442
|
|
|
443
|
|
|
444
|
|
441
|
445
|
//点击咨询处理函数
|
442
|
446
|
function clickConsultFn(){
|
443
|
447
|
ConsultApply();
|
|
@ -445,6 +449,7 @@ $(function(){
|
445
|
449
|
//点击的发送
|
446
|
450
|
$("#sendConsultBtn").on("click",sendConsultHandler);
|
447
|
451
|
var professorId = $(this).attr("id");
|
|
452
|
alert(professorId);
|
448
|
453
|
if(userid && userid != null && userid != "null"){
|
449
|
454
|
$.ajax({
|
450
|
455
|
"url" :"/ajax/professor/"+ professorId,
|