|
@ -750,42 +750,49 @@ function message(rows,num) {
|
750
|
750
|
if(data.success) {
|
751
|
751
|
if(data.data != ""){
|
752
|
752
|
if(num==2){
|
753
|
|
$(".commentList").html("");
|
754
|
|
}
|
755
|
|
if(data.data.length > 4){
|
756
|
|
$("#moreArtical").removeClass("displayNone");
|
757
|
|
}
|
758
|
|
for(var i = 0; i < data.data.length; i++) {
|
759
|
|
var itemlist = '<li data-time="" data-key="">';
|
760
|
|
itemlist += '<a href class="userhref"> <div class="madiaHead useHead"></div></a>';
|
761
|
|
itemlist += '<div class="madiaInfo">';
|
762
|
|
itemlist += '<p><a href class="userhref"><span class="h1Font messageName">张某某</span></a><em class="authiconNew" title="科袖认证专家"></em><span class="commenttime">9月30号 12:00</span></p>';
|
763
|
|
itemlist += '<p class="h2Font messageContent">sdfsdfs</p>';
|
764
|
|
itemlist += '<div class="operateSpan"><span class="callBack">回复</span><span class="messageDel">删除</span></div>';
|
765
|
|
itemlist += '</div></li>';
|
766
|
|
$itemlist = $(itemlist);
|
767
|
|
$(".commentList").append($itemlist);
|
768
|
|
var datalist = data.data[i];
|
769
|
|
$itemlist.find(".messageName").text(datalist.professor.name);
|
770
|
|
$itemlist.find(".messageContent").text(datalist.content);
|
771
|
|
var userType = autho(datalist.professor.authType, datalist.professor.orgAuth, datalist.professor.authStatus);
|
772
|
|
$itemlist.find(".authiconNew").attr("title", userType.title);
|
773
|
|
$itemlist.find(".authiconNew").addClass(userType.sty);
|
774
|
|
if(datalist.professor.hasHeadImage==1) {
|
775
|
|
$(".useHead").attr("style", "background-image: url(/images/head/" + datalist.professor.id + "_l.jpg);");
|
776
|
|
}
|
777
|
|
if(datalist.professor.id!=userid){
|
778
|
|
$(".messageDel").hide();
|
779
|
|
}
|
780
|
|
$itemlist.attr("data-time", datalist.createTime);
|
781
|
|
$itemlist.attr("data-key", datalist.orderKey);
|
782
|
|
$itemlist.find(".messageDel").attr("data-id", datalist.id);
|
783
|
|
$itemlist.find(".userhref").attr("href", "information-brow.html?professorId="+datalist.professor.id);
|
784
|
|
var createtime = datalist.createTime;
|
785
|
|
$itemlist.find(".commenttime").text(commenTime(createtime));
|
786
|
|
}
|
|
753
|
$(".commentList").html("");
|
|
754
|
}
|
|
755
|
if(data.data.length > 4){
|
|
756
|
$("#moreArtical").removeClass("displayNone");
|
|
757
|
}else{
|
|
758
|
$("#moreArtical").addClass("displayNone");
|
|
759
|
}
|
|
760
|
for(var i = 0; i < data.data.length; i++) {
|
|
761
|
var itemlist = '<li data-time="" data-key="">';
|
|
762
|
itemlist += '<a href class="userhref"> <div class="madiaHead useHead"></div></a>';
|
|
763
|
itemlist += '<div class="madiaInfo">';
|
|
764
|
itemlist += '<p><a href class="userhref"><span class="h1Font messageName">张某某</span></a><em class="authiconNew" title="科袖认证专家"></em><span class="commenttime">9月30号 12:00</span></p>';
|
|
765
|
itemlist += '<p class="h2Font messageContent">sdfsdfs</p>';
|
|
766
|
itemlist += '<div class="operateSpan"><span class="callBack">回复</span><span class="messageDel">删除</span></div>';
|
|
767
|
itemlist += '</div></li>';
|
|
768
|
$itemlist = $(itemlist);
|
|
769
|
$(".commentList").append($itemlist);
|
|
770
|
var datalist = data.data[i];
|
|
771
|
$itemlist.find(".messageName").text(datalist.professor.name);
|
|
772
|
$itemlist.find(".messageContent").text(datalist.content);
|
|
773
|
var userType = autho(datalist.professor.authType, datalist.professor.orgAuth, datalist.professor.authStatus);
|
|
774
|
$itemlist.find(".authiconNew").attr("title", userType.title);
|
|
775
|
$itemlist.find(".authiconNew").addClass(userType.sty);
|
|
776
|
if(datalist.professor.hasHeadImage==1) {
|
|
777
|
$(".useHead").attr("style", "background-image: url(/images/head/" + datalist.professor.id + "_l.jpg);");
|
|
778
|
}
|
|
779
|
if(datalist.professor.id!=userid){
|
|
780
|
$(".messageDel").hide();
|
|
781
|
}
|
|
782
|
$itemlist.attr("data-time", datalist.createTime);
|
|
783
|
$itemlist.attr("data-key", datalist.orderKey);
|
|
784
|
$itemlist.find(".messageDel").attr("data-id", datalist.id);
|
|
785
|
$itemlist.find(".userhref").attr("href", "information-brow.html?professorId="+datalist.professor.id);
|
|
786
|
var createtime = datalist.createTime;
|
|
787
|
$itemlist.find(".commenttime").text(commenTime(createtime));
|
|
788
|
}
|
787
|
789
|
}else{
|
788
|
|
$("#moreArtical").addClass("displayNone");
|
|
790
|
if(num==2){
|
|
791
|
$(".commentList").html("");
|
|
792
|
}else{
|
|
793
|
$("#moreArtical").addClass("displayNone");
|
|
794
|
}
|
|
795
|
|
789
|
796
|
}
|
790
|
797
|
}
|
791
|
798
|
},
|