';
itemlist += '
'+ $info[i].name +'
';
itemlist += '
研究者:
';
if ($info[i].orgId){
itemlist += '
所属机构:
';
}
itemlist += '
';
itemlist += '';
var $itemlist = $(itemlist);
$("#"+aimId).append($itemlist)
queryResearcher($info[i].id, $itemlist)
if ($info[i].orgId) {
queryReseOrgName($info[i].orgId, $itemlist)
}
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
pageNo++
unPatentListVal(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
patentListVal=function(isbind){
var aimId="proPatent",aimIdF="showPatent",newStr="用户尚未发布任何专利"
oAjax("/ajax/ppatent/professor",{
"owner":professorId,
"assTime":dataO.patTime,
"id":dataO.patId,
"rows": rows
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
$("#"+aimIdF).parents(".leftconItem").find(".nodatabox").hide()
$("#"+aimIdF).parents(".form-item").removeClass("displayNone");
$("#"+aimIdF).parents(".coninfobox").show();
dataO.patTime = $info[$info.length - 1].assTime;
dataO.patId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var dataStr= $info
if(!dataStr[i].reqPerson){
dataStr[i].reqPerson="";
}
var strAdd = '';
strAdd += '
';
strAdd += '';
strAdd += ''+ dataStr[i].name +'
';
strAdd += '
发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'
';
strAdd += '
申请人:'+ dataStr[i].reqPerson +'
';
strAdd += '
';
strAdd += '';
var $itemlist = $(strAdd);
$("#"+aimId).append($itemlist)
if(isbind && i==0){
var $itemlist = $(strAdd);
$("#"+aimIdF).append($itemlist);
}
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
patentListVal(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
paperListVal=function(isbind){
var aimId="proPaper",aimIdF="showPaper",newStr="用户尚未发布任何论文"
oAjax("/ajax/ppaper/professor",{
"owner":professorId,
"assTime":dataO.parTime,
"id":dataO.parId,
"rows": rows
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
$("#"+aimIdF).parents(".leftconItem").find(".nodatabox").hide()
$("#"+aimIdF).parents(".form-item").removeClass("displayNone");
$("#"+aimIdF).parents(".coninfobox").show();
dataO.parTime = $info[$info.length - 1].assTime;
dataO.parId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var dataStr= $info
var moreInf=""
if(!dataStr[i].cn4periodical){
dataStr[i].cn4periodical="";
}
if(!dataStr[i].en4periodical){
dataStr[i].en4periodical="";
}
if(!dataStr[i].pubDay){
dataStr[i].pubDay="";
}
moreInf = dataStr[i].cn4periodical+ " " +dataStr[i].en4periodical+ " " +dataStr[i].pubDay
var strAdd = '';
strAdd += '
';
strAdd += '';
strAdd += ''+ dataStr[i].name +'
';
strAdd += '
作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'
';
strAdd += '
期刊:'+ moreInf +'
';
strAdd += '
';
strAdd += '';
var $itemlist = $(strAdd);
$("#"+aimId).append($itemlist)
if(isbind && i==0){
var $itemlist = $(strAdd);
$("#"+aimIdF).append($itemlist);
}
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
paperListVal(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
answerListVal=function(isbind){//获取问答
var aimId="proA",aimIdF="showAnswer",newStr="用户尚未任何回答"
oAjax("/ajax/question/answer/bySelf",{
"time":dataO.AnsTime,
"id":dataO.AnsId,
"uid":professorId,
"rows":rows
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
$("#"+aimIdF).parents(".leftconItem").find(".nodatabox").hide()
$("#"+aimIdF).parents(".form-item").removeClass("displayNone");
$("#"+aimIdF).parents(".coninfobox").show();
dataO.AnsTime = $info[$info.length - 1].createTime;
dataO.AnsId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var listLi = $('
')
listLi.appendTo($("#"+aimId));
detailAnswer($info[i], listLi);
if(isbind && i==0){
var li = listLi.clone();
li.appendTo($("#"+aimIdF));
questioninfo($info[i].qid, li);
proinfo($info[i].uid, li);
leaveMsgCount($info[i].id,4, li);
}
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
answerListVal(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
questionListVal=function(isbind) {
var aimId="proQ",newStr="用户尚未发布任何问题"
oAjax("/ajax/question/my",{
"uid":professorId,
"time":dataO.QuTime,
"id":dataO.QuId,
"rows":rows,
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
dataO.QuTime = $info[$info.length - 1].createTime;
dataO.QuId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var listLi = $('').appendTo($("#proQ"));
detailQuestion($info[i], listLi);
if(isbind && i==0){
$("#"+aimId).html();
}
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
questionListVal(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
relevantarticalList=function(){//相关文章信息
oAjax("/ajax/article/byAssProfessor",{
"id":professorId
}, "get", function(data){
if(data.data.length>0){
$("#relateArt").parents(".conBlock").removeClass("displayNone");
var itemlist = '';
$("#relateArt").html("");
for(var i = 0; i < data.data.length; i++) {
var itemlist = '';
itemlist += ''+data.data[i].articleTitle+'
';
itemlist += '';
$itemlist = $(itemlist);
$("#relateArt").append($itemlist);
}
}
});
},
likeExperts=function(){//感兴趣
oAjax("/ajax/professor/ralateProfessors",{
"professorId":professorId
}, "get", function(data){
var lengthT;
if(data.data.length>5){
lengthT=5;
}else{
lengthT=data.data.length
}
for(var i = 0; i < lengthT; i++) {
var ExpId = data.data[i].id;
(function(Id){
oAjax("/ajax/professor/info/"+Id,{}, "get", function(data){
$("#likePro").parents(".conBlock").removeClass("displayNone");
var itemlist = '
';
itemlist += '';
itemlist += '';
itemlist += '
';
itemlist += '
';
itemlist += '
';
var $itemlist = $(itemlist);
$("#likePro").append($itemlist);
if(data.data.title) {
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.title +","+ data.data.orgName);
}else{
$itemlist.find("#usertitle").text(data.data.title);
}
}else{
if(data.data.office) {
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.office +","+ data.data.orgName);
}else{
$itemlist.find("#usertitle").text(data.data.office);
}
}else{
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.orgName);
}
}
}
$itemlist.find("#userName").text(data.data.name);
$itemlist.find(".urlgo").attr("href", "userInforShow.html?professorId="+data.data.id);
if(data.data.hasHeadImage == 1) {
$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + data.data.id + "_l.jpg);");
}
var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
$itemlist.find(".authiconNew").attr("title", userType.title);
$itemlist.find(".authiconNew").addClass(userType.sty);
})
})(ExpId)
}
});
},
relevantExperts=function(){
oAjax("/ajax/professor/coadjutant",{
"id":professorId
}, "get", function(data){
var lengthT;
if(data.data.length>5){
lengthT=5;
}else{
lengthT=data.data.length
}
for(var i = 0; i < lengthT; i++) {
var ExpId = data.data[i].professorId;
var paperN=data.data[i].paperCount;
var patentN=data.data[i].patentCount;
(function(Id,numL,numZ){
oAjax("/ajax/professor/info/"+Id,{}, "get", function(data){
$("#relatePro").parents(".conBlock").removeClass("displayNone");
var itemlist = '
';
itemlist += '';
itemlist += '';
itemlist += '
';
itemlist += '
';
itemlist += '
';
itemlist += '
';
var $itemlist = $(itemlist);
$("#relatePro").append($itemlist);
if(numL){
if(numZ){
$itemlist.find("#copNum").text("合作:"+numZ+"项专利,"+numL+"篇论文")
}else{
$itemlist.find("#copNum").text("合作:"+numL+"篇论文")
}
}else{
if(numZ){
$itemlist.find("#copNum").text("合作:"+numZ+"项专利")
}else{
}
}
if(data.data.title) {
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.title +","+ data.data.orgName);
}else{
$itemlist.find("#usertitle").text(data.data.title);
}
}else{
if(data.data.office) {
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.office +","+ data.data.orgName);
}else{
$itemlist.find("#usertitle").text(data.data.office);
}
}else{
if(data.data.orgName) {
$itemlist.find("#usertitle").text(data.data.orgName);
}
}
}
$itemlist.find("#userName").text(data.data.name);
$itemlist.find(".urlgo").attr("href", "userInforShow.html?professorId="+data.data.id);
if(data.data.hasHeadImage == 1) {
$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + data.data.id + "_l.jpg);");
}
var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
$itemlist.find(".authiconNew").attr("title", userType.title);
$itemlist.find(".authiconNew").addClass(userType.sty);
})
})(ExpId,paperN,patentN)
}
});
},
isActUser=function(){
oAjax("/ajax/baseUserInfo",{
"id": professorId
}, "get", function(data){
if(!data.data.activeTime){
$(".last_meg").removeClass("displayNone");
$(".message_b").on("click",function(){
$(".meg_md5").toggle();
if(data.data.email && data.data.mobilePhone){
$("#wayTel").text('尾号为 '+data.data.mobilePhone+' 的手机号或邮箱 '+data.data.email);
}else if(data.data.mobilePhone && !data.data.email){
$("#wayTel").text('尾号为 '+data.data.mobilePhone+' 的手机号');
}else if(data.data.email && !data.data.mobilePhone){
$("#wayTel").text('邮箱 '+data.data.email);
}
})
}else{
$(".last_meg").addClass("displayNone");
}
})
},
queryPubCount=function(){
oAjax("/ajax/watch/countProfessor",{//关注我的
"id": professorId,
"type":"1"
}, "GET", function(data){
$("#focusMe").text(data.data);
});
oAjax("/ajax/watch/countObject",{//我关注的
"id": professorId,
"type":"1"
}, "GET", function(data){
$("#myFocus").text(data.data);
});
oAjax("/ajax/professor/agree/sum",{//总获赞
"id": professorId,
}, "GET", function(data){
$("#agreeMecount").text(data.data);
});
oAjax("/ajax/team/count",{//团队总数
"id": professorId
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#teamCount").text(data.data);
}
if(data.data>99){
$("#teamCount").text("99+");
}
});
oAjax("/ajax/article/count/publish",{//文章总数
"owner": professorId,
"category":"1"
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#artCount").text(data.data);
}
if(data.data>99){
$("#artCount").text("99+");
}
});
oAjax("/ajax/resource/count/publish",{//资源总数
"owner": professorId,
"category":"1"
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#resCount").text(data.data);
}
if(data.data>99){
$("#resCount").text("99+");
}
});
oAjax("/ajax/ware/count/publish",{//服务总数
"owner": professorId,
"category":"1"
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#serCount").text(data.data);
}
if(data.data>99){
$("#serCount").text("99+");
}
});
oAjax("/ajax/ppatent/count/publish",{//专利总数
"owner": professorId,
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#patCount").text(data.data);
}
if(data.data>99){
$("#patCount").text("99+");
}
});
oAjax("/ajax/resResult/count/researcher",{//非专利成果总数
"id": professorId
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#unpatCount").text(data.data);
}
if(data.data>99){
$("#unpatCount").text("99+");
}
});
oAjax("/ajax/ppaper/count/publish",{//论文总数
"owner": professorId,
}, "GET", function(data){
if(data.data>0 && data.data<99){
$("#parCount").text(data.data);
}
if(data.data>99){
$("#parCount").text("99+");
}
});
},
attentMyself=function(isbind){
var aimId="attendMy",newStr="用户尚未被任何人关注"
oAjax("/ajax/watch/watchList",{//关注我的列表
"watchObject": professorId,
"createTime": watchO.beiTime,
"professorId":watchO.beiProId,
"rows":rows
}, "GET", function(res){
console.log(res)
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
watchO.beiTime = $info[$info.length - 1].createTime;
watchO.beiProId = $info[$info.length - 1].professorId;
var arr=[];
for(var i in $info) {
arr[i]=$info[i].professorId;
}
detailPro(arr,aimId);
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
attentMyself(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
collectAnswer=function(isbind){
var aimId="attendAnswer",newStr="用户还未收藏任何回答"
oAjax("/ajax/question/answer/byWatch",{
"time":watchO.WATime,
"id":watchO.WAId,
"uid":professorId,
"rows":rows
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
watchO.WATime = $info[$info.length - 1].createTime;
watchO.WAId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var listLi = $('
')
listLi.appendTo($("#"+aimId));
detailAnswer($info[i], listLi);
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
collectAnswer(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
collectQuestion=function(isbind){
var aimId="attendQuestion",newStr="用户还未关注任何问题"
oAjax("/ajax/question/watch",{
"time":watchO.WQTime,
"id":watchO.WQId,
"uid":professorId,
"rows":rows
}, "get", function(res){
var $info = res.data;
if($info.length > 0) {
$("#"+aimId).show()
watchO.WQTime = $info[$info.length - 1].createTime;
watchO.WQId = $info[$info.length - 1].id;
for(var i = 0; i < $info.length; i++) {
var listLi = $('')
listLi.appendTo($("#"+aimId));
detailQuestion($info[i], listLi);
}
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
collectQuestion(false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
collectSorts=function(type,isbind){
var aimId="",newStr=""
oAjax("/ajax/watch/proList",{//我关注的列表
"professorId": professorId,
"watchType":type,
"createTime": watchO.watchTime,
"watchObject":watchO.watchObjId,
"rows":rows
}, "GET", function(res){
var $info = res.data;
var arr=[];
if($info.length > 0) {
$("#"+aimId).show()
watchO.watchTime = $info[$info.length - 1].createTime;
watchO.watchObjId = $info[$info.length - 1].watchObject;
for(var i in $info) {
arr[i]=$info[i].watchObject;
}
}
if(type==1){
aimId="attendPro"
newStr="用户还未关注任何专家"
detailPro(arr,aimId);
}else if(type==2){
aimId="attendRes"
newStr="用户还未收藏任何资源"
detailRes(arr,aimId);
}else if(type==3){
aimId="attendArt"
newStr="用户还未收藏任何文章"
detailArt(arr,aimId);
}else if(type==4){
aimId="attendPatent"
newStr="用户还未收藏任何专利成果"
detailPat(arr,aimId);
}else if(type==5){
aimId="attendPaper"
newStr="用户还未收藏任何论文"
detailPer(arr,aimId);
}else if(type==6){
aimId="attendCmp"
newStr="用户还未关注任何企业"
detailCmp(arr,aimId);
}else if(type==7){
aimId="attendDemand"
newStr="用户还未收藏任何需求"
detailDemand(arr,aimId);
}else if(type==10){
aimId="attendSer"
newStr="用户还未收藏任何服务"
detailService(arr,aimId);
}else if(type==11){
aimId="attendProduct"
newStr="用户还未收藏任何产品"
detailProduct(arr,aimId);
}
else if(type==12){
aimId="attendUnPatent"
newStr="用户还未收藏任何非专利成果"
detailUnPat(arr,aimId);
}else if(type==13){
aimId="attendTeam"
newStr="用户还未关注任何团队"
detailTeam(arr,aimId);
}
var liLen=document.getElementById(aimId).querySelectorAll("li").length;
removeNodata(aimId);
if($info.length == 0 && liLen == 0 ){
$("#"+aimId).hide()
insertNodata(aimId,newStr);
}
if(isbind){
$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
collectSorts(type,false)
})
}
if ($info.length < rows) {
$("#"+aimId).parent().find(".js-load-more").unbind("click");
$("#"+aimId).parent().find(".js-load-more").hide();
}
},function(){
$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
$("#"+aimId).parent().find(".js-load-more").addClass("active");
},function(){
$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
$("#"+aimId).parent().find(".js-load-more").removeClass("active");
})
},
detailTeam=function(arr,obj) {
oAjax("/ajax/team/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i =0; i< dataStr.length; ++i){
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strAdd = '';
strAdd += '';
strAdd += '' + dataStr[i].name + ' 团队人数 人
';
strAdd += '
' + dataStr[i].city +' '+ dataStr[i].orgName + '
';
strAdd += '
';
strAdd += ''
var $itemlist = $(strAdd);
$("#"+obj).append($itemlist);
teamProCount(dataStr[i].id, $itemlist)
}
});
},
teamProCount=function (id, $list) {
oAjax("/ajax/team/pro/count",{
"id": id
}, 'get', function($data) {
$list.find('.teamMembers').html($data.data)
})
},
detailPro=function(arr,obj) {
oAjax("/ajax/professor/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var userType = autho(dataStr[i].authType, dataStr[i].orgAuth, dataStr[i].authStatus);
var os = "";
if(dataStr[i].title) {
if(dataStr[i].orgName) {
os = dataStr[i].title + "," + dataStr[i].orgName;
} else {
os = dataStr[i].title;
}
} else {
if(dataStr[i].office) {
if(dataStr[i].orgName) {
os = dataStr[i].office + "," + dataStr[i].orgName;
} else {
os = dataStr[i].office;
}
} else {
if(dataStr[i].orgName) {
os = dataStr[i].orgName;
}
}
}
var baImg = "../images/default-photo.jpg";
if(dataStr[i].hasHeadImage == 1) {
baImg = "/images/head/" + dataStr[i].id + "_l.jpg";
}
var strAdd = '';
strAdd += '';
strAdd += '';
strAdd += '' + dataStr[i].name + '
';
strAdd += '
' + os + '
';
strAdd += '
';
strAdd += ''
li.innerHTML = strAdd
document.getElementById(obj).appendChild(li);
}
});
},
detailCmp=function(arr,obj) {
oAjax("/ajax/org/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var li = document.createElement("li");
li.setAttribute("data-id", dataStr[i].id);
var oimg = (dataStr[i].hasOrgLogo) ?"/images/org/" + dataStr[i].id + ".jpg" : "../images/default-icon.jpg";
var oAuth = (dataStr[i].authStatus == 3) ? 'authicon-com-ok' : '';
var orgName = (dataStr[i].forShort) ? dataStr[i].forShort : dataStr[i].name;
var orgType = (dataStr[i].orgType == '2') ? "上市企业" : "";
var orgOther = (dataStr[i].industry) ? dataStr[i].industry.replace(/,/gi, " | ") : "";
li.className = "mui-table-view-cell";
var itemlist=''
itemlist += '';
itemlist += '';
itemlist += '
' + orgName + '
';
itemlist += '
' + orgType + ' ' + orgOther + '
';
itemlist += '
';
li.innerHTML = itemlist
document.getElementById(obj).appendChild(li);
}
});
},
detailPat=function(arr,obj) {
oAjax("/ajax/ppatent/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strAdd = '';
strAdd += '';
strAdd += '';
strAdd += ''+ dataStr[i].name +'
';
strAdd += '
发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'
';
strAdd += '
申请人:'+ dataStr[i].reqPerson +'
';
strAdd += '
';
strAdd += '';
li.innerHTML = strAdd
document.getElementById(obj).appendChild(li);
}
});
},
detailUnPat=function(arr,obj) {
oAjax("/ajax/resResult/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var resIM=''
if (dataStr[i].pic) {
var src = '/data/researchResult' + dataStr[i].pic.split(",")[0]
resIM = '';
}
var strAdd = '';
strAdd += '';
strAdd += resIM
strAdd += ''+ dataStr[i].name +'
';
strAdd += '
研究者:
';
if (dataStr[i].orgId){
strAdd += '
所属机构:
';
}
strAdd += '
';
strAdd += '';
li.innerHTML = strAdd
document.getElementById(obj).appendChild(li);
var $itemlist = $(li);
queryResearcher(dataStr[i].id, $itemlist)
if (dataStr[i].orgId) {
queryReseOrgName(dataStr[i].orgId, $itemlist)
}
}
});
},
queryResearcher = function (id, $list) {
if (id) {
oAjax("/ajax/resResult/researcher",{
"id": id
}, 'get', function($data) {
var arr = []
if($data.data.length) {
$list.find('.researchers').parent().removeClass('displayNone')
for (var i = 0; i < $data.data.length;i++) {
arr.push($data.data[i].name)
}
$list.find('.researchers').html(arr.join(','))
}
})
}
},
queryReseOrgName = function (id, $list) {
if (id) {
cacheModel.getCompany(id,function(sc,value){
if(sc){
if(value.forShort){
$list.find(".resOrgName").html(value.forShort)
}else{
$list.find(".resOrgName").html(value.name)
}
}
})
}
},
detailPer=function(arr,obj) {
oAjax("/ajax/ppaper/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var moreInf=""
if(!dataStr[i].cn4periodical){
dataStr[i].cn4periodical="";
}
if(!dataStr[i].en4periodical){
dataStr[i].en4periodical="";
}
if(!dataStr[i].pubDay){
dataStr[i].pubDay="";
}
moreInf = dataStr[i].cn4periodical+ " " +dataStr[i].en4periodical+ " " +dataStr[i].pubDay
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strAdd = '';
strAdd += '';
strAdd += '';
strAdd += ''+ dataStr[i].name +'
';
strAdd += '
作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'
';
strAdd += '
期刊:'+ moreInf +'
';
strAdd += '
';
strAdd += '';
li.innerHTML = strAdd
document.getElementById(obj).appendChild(li);
}
});
},
detailRes=function(arr,obj) {
oAjax("/ajax/resource/qm",{
id:arr,
},"get",function(data){
console.log(data)
var dataItem=data.data;
for(var i = 0; i < dataItem.length; i++) {
var dataStr=dataItem[i]
var rImg = "../images/default-resource.jpg";
if(dataStr.images.length) {
rImg = "/data/resource/" + dataStr.images[0].imageSrc;
}
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strAdd = '';
strAdd += '';
strAdd += '';
strAdd += ''+ dataStr.resourceName +'
';
strAdd += '
';
strAdd += '
用途:'+ dataStr.supportedServices+'
';
strAdd += '';
li.innerHTML =strAdd
var $itemlist = $(li);
document.getElementById(obj).appendChild(li);
if(dataStr.resourceType=="1"){
(function(mo){
cacheModel.getProfessor(dataStr.professorId,function(sc,value){
if(sc){
mo.find(".ownerName").html(value.name)
var userType = autho(value.authType, value.orgAuth, value.authStatus);
mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
}else{
console.log("error")
}
})
})($itemlist);
}else if(dataStr.resourceType=="2"){
(function(mo){
cacheModel.getCompany(dataStr.orgId,function(sc,value){
if(sc){
if(value.forShort){
mo.find(".ownerName").html(value.forShort)
}else{
mo.find(".ownerName").html(value.name)
}
if(value.authStatus==3) {
mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
}
}else{
console.log("error")
}
})
})($itemlist);
}
}
});
},
detailArt=function (arr,obj) {
oAjax("/ajax/article/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var dataItem=dataStr[i]
var arImg = "../images/default-artical.jpg";
if(dataItem.articleImg) {
arImg ="/data/article/" + dataItem.articleImg
}
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strAdd = '';
strAdd += '';
strAdd += '';
strAdd += ''+ dataItem.articleTitle +'
';
strAdd += '
';
strAdd += ' ';
strAdd += '- '+ commenTime(dataItem.publishTime) +'
';
strAdd += '';
strAdd += '
';
strAdd += '';
li.innerHTML =strAdd
var $itemlist = $(li);
document.getElementById(obj).appendChild(li);
if(dataItem.articleType=="1"){
(function(mo){
cacheModel.getProfessor(dataItem.ownerId,function(sc,value){
if(sc){
mo.find(".ownerName").html(value.name)
}else{
console.log("error")
}
})
})($itemlist);
}else if(dataItem.articleType=="2"){
(function(mo){
cacheModel.getCompany(dataItem.ownerId,function(sc,value){
if(sc){
if(value.forShort){
mo.find(".ownerName").html(value.forShort)
}else{
mo.find(".ownerName").html(value.name)
}
}else{
console.log("error")
}
})
})($itemlist);
}else if(dataItem.articleType=="3"){
(function(mo){
cacheModel.getPlatform(dataItem.ownerId,function(sc,value){
if(sc){
mo.find(".ownerName").html(value.name)
}else{
console.log("error")
}
})
})($itemlist);
}
}
});
},
detailDemand=function(arr,obj) {
oAjax("/ajax/demand/qm",{
id:arr,
},"get",function(data){
var dataStr=data.data;
for(var i = 0; i < dataStr.length; i++) {
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var strCon='';
strCon+=''
strCon+='
'+ dataStr[i].title +'
'
strCon+='
'
if(dataStr[i].city){ strCon+='- '+dataStr[i].city+'
' }
if(dataStr[i].duration!=0){ strCon+='- 预期 '+demandDuration[dataStr[i].duration]+'
' }
if(dataStr[i].cost!=0){ strCon+='- 预算 '+demandCost[dataStr[i].cost]+'
' }
if(dataStr[i].invalidDay){ strCon+='- 有效期至 '+TimeTr(dataStr[i].invalidDay)+'
' }
strCon+='
'
li.innerHTML = strCon
document.getElementById(obj).appendChild(li);
}
});
},
detailAnswer=function(dataStr,listLi){
var strAdd = ''+
'' +
'
' +
'
' +
'
' +
'
' + listConCut(dataStr.cnt) +'
' +
'
' +
''+commenTime(dataStr.createTime)+'' +
'' +
'' +
'
' +
'
';
var $strAdd = $(strAdd);
listLi.append( $strAdd);
if(dataStr.agree > 0) {
$strAdd.find(".agree").html("赞 "+dataStr.agree);
}
questioninfo(dataStr.qid, $strAdd);
proinfo(dataStr.uid, $strAdd);
leaveMsgCount(dataStr.id,4, $strAdd);
},
detailQuestion=function(dataStr,listLi) {
var baImg = "../images/default-q&a.jpg";
var subs = new Array();
if(dataStr.img) {
var subs=strToAry(dataStr.img)
baImg = "/data/question"+ subs[0];
}
var hd = "";
if (dataStr.replyCount > 0) {
hd = '回答 ' + dataStr.replyCount + ''
}
var strAdd = '
'
strAdd += '';
strAdd += ''+ dataStr.title +'
';
strAdd += '
'
strAdd += '- '+commenTime(dataStr.createTime)+'
'+hd+' '
strAdd += '
'
var $str = $(strAdd);
listLi.append($str);
},
detailService=function(arr,obj) {
oAjax("/ajax/ware/qm",{
id:arr,
},"get",function(data){
console.log(data)
var dataItem=data.data;
for(var i = 0; i < dataItem.length; i++) {
var dataStr=dataItem[i]
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var cnt="", rImg = "../images/default-service.jpg";
if(dataStr.images) {
var subs = strToAry(dataStr.images)
if(subs.length > 0) {
rImg="/data/ware" + subs[0]
}
}
if(dataStr.cnt){
cnt="内容:"+dataStr.cnt
}
var strAdd = '';
strAdd += '
';
strAdd += '';
strAdd += ''+ dataStr.name +'
';
strAdd += '
';
strAdd += '
'+ cnt+'
';
strAdd += '';
li.innerHTML = strAdd
var $itemlist = $(li);
document.getElementById(obj).appendChild(li);
if(dataStr.category=="1"){
(function(mo){
cacheModel.getProfessor(dataStr.owner,function(sc,value){
if(sc){
mo.find(".ownerName").html(value.name)
var userType = autho(value.authType, value.orgAuth, value.authStatus);
mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
}else{
console.log("error")
}
})
})($itemlist);
}else if(dataStr.category=="2"){
(function(mo){
cacheModel.getCompany(dataStr.owner,function(sc,value){
if(sc){
if(value.forShort){
mo.find(".ownerName").html(value.forShort)
}else{
mo.find(".ownerName").html(value.name)
}
if(value.authStatus==3) {
mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
}
}else{
console.log("error")
}
})
})($itemlist);
}
}
});
},
detailProduct=function(arr,obj) {
oAjax("/ajax/product/qm",{
id:arr,
},"get",function(data){
console.log(data)
var dataItem=data.data;
for(var i = 0; i < dataItem.length; i++) {
var dataStr=dataItem[i]
var li = document.createElement("li");
li.className = "mui-table-view-cell";
var cnt="", rImg = "../images/default-product.jpg";
if(dataStr.images) {
var subs = strToAry(dataStr.images)
if(subs.length > 0) {
rImg="/data/product" + subs[0]
}
}
if(dataStr.cnt){
cnt="简介:"+dataStr.cnt
}
var strAdd = '';
strAdd += '
';
strAdd += '';
strAdd += ''+ dataStr.name +'
';
strAdd += '
';
strAdd += '
'+ cnt+'
';
strAdd += '';
li.innerHTML = strAdd
var $itemlist = $(li);
document.getElementById(obj).appendChild(li);
(function(mo){
cacheModel.getCompany(dataStr.owner,function(sc,value){
if(sc){
if(value.forShort){
mo.find(".ownerName").html(value.forShort)
}else{
mo.find(".ownerName").html(value.name)
}
if(value.authStatus==3) {
mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
}
}else{
console.log("error")
}
})
})($itemlist);
}
});
},
proinfo=function(pid, $str) {
oAjax("/ajax/professor/baseInfo/" + pid,{}, "get", function(data){
var dataStr = data.data
var baImg = "../images/default-photo.jpg";
if (dataStr.hasHeadImage == 1) {
baImg = "/images/head/" + dataStr.id + "_l.jpg";
}
var userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
var os = "";
if (dataStr.title) {
if (dataStr.orgName) {
os = dataStr.title + "," + dataStr.orgName;
} else {
os = dataStr.title;
}
} else {
if (dataStr.office) {
if (dataStr.orgName) {
os = dataStr.office + "," + dataStr.orgName;
} else {
os = dataStr.office;
}
} else {
if (dataStr.orgName) {
os = dataStr.orgName;
}
}
}
var str = '
' +
'
' +
'
' + dataStr.name + '
' +
'
' + os + '
' +
'
'
$str.find(".qa-owner").html(str)
});
},
questioninfo=function(qid, $str) {
oAjax("/ajax/question/qo",{
id:qid
}, "get", function(data){
$str.find(".qa-question").html(data.data.title);
if(data.data.pageViews>0){
$str.find(".qaPageview").html("阅读量 "+data.data.pageViews);
}else{
$str.find(".qaPageview").hide()
}
});
},
attendCount=function(id, $str) {
oAjax("/ajax/watch/countProfessor",{
id:id,
type: "8"
}, "get", function(data){
if(data.data > 0) {
$str.find(".attendCount").html("关注 "+data.data);
}
});
},
bindClickFun=function(){
$("#myAttends").unbind("click").on("click",function(){//关注与收藏
openAttend()
})
$("#tab8user").unbind("click").on("click",function(){//点击更多
watchO={
beiTime:"",
beiProId:"",
watchTime:"",
watchObjId:"",
};
var pa=$(".moreNavUl.moreBuUl>li.liNow").attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
if(userid!=professorId){
//关注他的人
$(".moreNavUl.moreBuUl>li.attentType").hide();
$(".moreNavUl.moreBuUl>li.attendMy").addClass("liNow").text("关注他的人");
$("#item8drop5").show().siblings().hide();
attentMyself(true);
}else{
$("#item8drop1").show().siblings().hide();
collectSorts(1,true);
}
collectSorts(3,true);
})
$("#tab6user").unbind("click").on("click",function(){//点击问答
dataO = {
AnsTime:"",
AnsId:"",
QuTime:"",
QuId:"",
};
var pa=$(".moreNavUl.wendaUl>li.liNow").attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
if(userid!=professorId){
//他的回答
$(".moreNavUl.wendaUl>li").eq(0).hide().siblings().addClass("liNow").text("他的回答");
$("#item6drop2").show().siblings().hide();
answerListVal(true);
}else{
$(".wendaNav li").eq(0).addClass("liNow").siblings().removeClass("liNow");
$("#item6drop1").show().siblings().hide();
questionListVal(true);
}
})
$("#item6more").on("click","li",function(){//问答tab切换
var pa=$(this).attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
var sortN=$(this).attr("data-num");
dataO = {
AnsTime:"",
AnsId:"",
QuTime:"",
QuId:"",
};
if(sortN==1){
questionListVal(true);
}else if(sortN==2){
answerListVal(true);
}
})
$("#tab4user").unbind("click").on("click",function(){//点击成果
pageNo = 1
var pa=$(".moreNavUl.wendaUl>li.liNow").attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
unPatentListVal(true);
})
$("#item4more").on("click","li",function(){
var pa=$(this).attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
var sortN=$(this).attr("data-num");
dataO = {
patTime:"",
patId:""
};
pageNo = 1
if(sortN==1){
unPatentListVal(true);
}else if(sortN==2){
patentListVal(true);
}
})
$(".moreNavUl.moreBuUl").on("click","li.attentType:not(.rightbtn)",function(){//关注tab切换
var pa=$(this).attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
var sortN=$(this).attr("data-num");
watchO={
watchTime:"",
watchObjId:"",
WATime:"",
WAId:"",
WQTime:"",
WQId:"",
};
if(sortN==8){
collectQuestion(true)
}else if(sortN==9){
collectAnswer(true)
}else{
collectSorts(sortN,true);
}
})
$("#tabAttendMy").unbind("click").on("click",function(){//关注我的人
var pa=$(this).attr("rel")
$("#"+pa).find("ul").html("")
$("#"+pa).find(".js-load-more").show();
watchO={
beiTime:"",
beiProId:"",
}
attentMyself(true);
})
$("#attendmyGo").unbind("click").on("click",function(){
if(userid!=professorId){
$(".moreNavUl.moreBuUl>li.attentType").hide();//关注他的人
$(".moreNavUl.moreBuUl>li.attendMy").addClass("liNow").text("关注他的人");
}
$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
$(".moreNav").hide()
$("#item8more").fadeIn();
$("#item8user").show().siblings().hide();
$(".moreBuUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
$("#item8drop5").show().siblings().hide();
watchO={
beiTime:"",
beiProId:"",
}
$("#item8drop5").find("ul").html("")
$("#item8drop5").find(".js-load-more").show();
attentMyself(true);
})
/*研究方向点赞*/
var clFlag = 1;
$("#researchAreaShow").on("click", ".plus", function() {
if(userid && userid != null && userid != "null") {
//点赞变化样式
if(clFlag) {
clFlag = 0;
} else {
return;
}
if($(this).data("isagree") > -1) {
$(this).stop(true, true).animate({
backgroundPositionY: 0
}, 300); //变成未点赞样式
} else {
$(this).stop(true, true).animate({
backgroundPositionY: -26
}, 300); //变成点赞样式
}
$.ajax({
"url": $(this).data("isagree") > -1 ? "/ajax/researchArea/unAgree" : "/ajax/researchArea/agree",
"type": "POST",
"data": {
"targetId": $(this).data("pid"),
"targetCaption": oArray[$(this).data("caption")],
"opId": userid,
"uname":$.cookie("userName")
},
"contentType": "application/x-www-form-urlencoded",
"success": function(dataStr) {
if(dataStr.success) {
$.get("/ajax/professor/info/" + professorId, function(dataStr) {
if(dataStr.success) {
clFlag = 1;
var $info = dataStr.data;
if($info) {
$("#researchAreaShow").empty("")
if($info.researchAreas) {
researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
}
}
}
})
} else {
$.MsgBox.Alert("提示", dataStr.msg);
}
}
});
} else {
quickLog();
operatTab();
closeLog();
}
})
//点击每个研究方向弹出研究方向详情窗口
$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
var cap = $(this).attr("caption");
researchAlert(cap)
});
//关闭按钮
$("#workclose").click(function() {
$(".resAreaCover").fadeOut();
$("body").css("position", "");
});
//点击查看全部资源
$(".coninfobox").on("click","#seeMoreR",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab2user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item2user").show();
})
//点击查看全部服务
$(".coninfobox").on("click","#seeMoreS",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab9user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item9user").show();
})
//点击查看全部文章
$(".coninfobox").on("click","#seeMoreA",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab3user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item3user").show();
})
//点击查看全部专利
$(".coninfobox").on("click","#seeMoreP",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab4user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item4user").show();
})
//点击查看全部论文
$(".coninfobox").on("click","#seeMoreL",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab5user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item5user").show();
})
//点击查看全部问题
$(".coninfobox").on("click","#seeMoreQA",function(){
document.body.scrollTop = document.documentElement.scrollTop = 0;
$("#tab6user").addClass("liNow").siblings().removeClass("liNow");
$("#item1user").hide();
$("#item6user").show();
if(userid === professorId) {
$(".wendaNav").show();
}
$(".wendaNav li").eq(1).addClass("liNow").siblings().removeClass("liNow");
$("#item6drop2").show().siblings().hide();
})
//点击关注按钮
$("#attentBtn").on('click', function() {
if(userid && userid != null && userid != "null") {
if($(this).is('.attenedSpan')){
cancelCollectionAbout(professorId,$(this),1)
} else {
collectionAbout(professorId,$(this), 1);
}
queryPubCount();
watchO={
beiTime:"",
beiProId:"",
}
$("#item8drop5").find("ul").html("")
$("#item8drop5").find(".js-load-more").show();
attentMyself(true);
}else{
quickLog();
operatTab();
closeLog();
}
});
//点击联系按钮
$("#conbtn").on('click', function(){
if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') {
location.href="tidings.html?id="+professorId
} else {
quickLog();
operatTab();
closeLog();
}
});
//纠错反馈
$(".correctSubmit").on("click",function(){
var cntCon=$(this).siblings(".correctCon").val();
var cntUser="";
if(userid && userid != null && userid != "null") {
cntUser = userid;
}
if(cntCon.length>500){
$.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
return;
}else{
oAjax("/ajax/feedback/error/professor",{
"id": professorId,
"cnt":cntCon,
"user":cntUser
}, "POST", function(data){
backSuccessed();
});
}
})
}
if(GetQueryString("flag")) {
researchAlert(GetQueryString("flag"))
}
if(GetQueryString("iLike")){
openAttend();
}
if(userid!=professorId){
pageViewLog(professorId,1)
relevantExperts();//合作专家
relevantarticalList();//相关文章
likeExperts();//感兴趣专家
isActUser();//判断用户是否被激活
ifcollectionAbout(professorId,$(".goSpan").find(".attenSpan"), 1)
$(".goSpan").show();
}else{
$(".goSpanTo").show();
$(".myoneself").show();
}
queryPubCount();
getUserInfo(); //获取详细信息
demandListVal(true);
articalListVal(true);
teamListVal(true);
resourceListVal(true);
serviceListVal(true);
patentListVal(true);
unPatentListVal(true)
paperListVal(true);
answerListVal(true);
bindClickFun();
})