|
@ -50,7 +50,7 @@ $(function() {
|
50
|
50
|
$(".searchsome").val(searchContent);
|
51
|
51
|
}
|
52
|
52
|
expertListVal(keyt,subject,industry,address,authType,20,1,true);
|
53
|
|
companyListVal(keyt,subject,industry,address,authType,20,1,true);
|
|
53
|
companyListVal(20,1,true);
|
54
|
54
|
articalListVal(20, 1,true);
|
55
|
55
|
resourceListVal(20, 1,true);
|
56
|
56
|
patentListVal(20, 1,true);
|
|
@ -409,112 +409,8 @@ function expertListVal(keyt,subject,industry,address,authType,pageSize,pageNo,is
|
409
|
409
|
});
|
410
|
410
|
}
|
411
|
411
|
//企业
|
412
|
|
function companyListVal(keyt,subject,industry,address,authType,pageSize,pageNo,isexpert) {
|
413
|
|
$.ajax({
|
414
|
|
"url": "/ajax/professor/pqBaseInfo",
|
415
|
|
"type": "get",
|
416
|
|
"data": {
|
417
|
|
"key":keyt,
|
418
|
|
"subject":subject,
|
419
|
|
"industry":industry,
|
420
|
|
"address":address,
|
421
|
|
"authType":authType,
|
422
|
|
"pageSize": pageSize,
|
423
|
|
"pageNo": pageNo
|
424
|
|
},
|
425
|
|
"beforeSend": function() {
|
426
|
|
$("#expertList").append('<img src="../images/loading.gif" class="loading" style="position: absolute;left: 50%; top: 50%;" />');
|
427
|
|
},
|
428
|
|
"success": function(data) {
|
429
|
|
console.log(data);
|
430
|
|
if(data.success) {
|
431
|
|
if(data.data.data.length > 0){
|
432
|
|
$("#expertList,.expertPageCode").show();
|
433
|
|
$(".expertPage").hide();
|
434
|
|
$("#expertList").html("");
|
435
|
|
var itemlist = '';
|
436
|
|
for(var i = 0; i < data.data.data.length; i++) {
|
437
|
|
var itemlist = '<li class="flexCenter">';
|
438
|
|
itemlist += '<a href="" class="expertUrl linkhref"><div class="lefthead userheadt userRadius" id="expertImg"></div>';
|
439
|
|
itemlist += '<div class="centercon">';
|
440
|
|
itemlist += '<p class="h1font">';
|
441
|
|
itemlist += '<span class="nameSpan" id="Name"></span>';
|
442
|
|
itemlist += '<em class="authiconNew" title="科袖认证专家"></em></p>';
|
443
|
|
itemlist += '<p class="h2font ellipsisSty" id="ellipsisSty">职称/职位,所在机构</p>';
|
444
|
|
itemlist += '<p class="h2font ellipsisSty" id="researchAreas"></p>';
|
445
|
|
itemlist += '</div></a><span class="rightop" style="display:none" id="">咨询</span>';
|
446
|
|
itemlist += '</li>';
|
447
|
|
$itemlist = $(itemlist);
|
448
|
|
$("#expertList").append($itemlist);
|
449
|
|
var datalist = data.data.data[i];
|
450
|
|
$itemlist.find(".expertUrl").attr("href", "userInforShow.html?professorId=" + datalist.id );
|
451
|
|
$itemlist.find("#Name").text(datalist.name);
|
452
|
|
$itemlist.find(".rightop").attr("id",datalist.id);
|
453
|
|
if(datalist.id != userid){
|
454
|
|
$itemlist.find(".rightop").show();
|
455
|
|
}
|
456
|
|
var userType = autho(datalist.authType, datalist.orgAuth, datalist.authStatus);
|
457
|
|
$itemlist.find(".authiconNew").attr("title", userType.title);
|
458
|
|
$itemlist.find(".authiconNew").addClass(userType.sty);
|
459
|
|
if(datalist.hasHeadImage) {
|
460
|
|
$itemlist.find("#expertImg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
|
461
|
|
}
|
462
|
|
var title = datalist.title || "";
|
463
|
|
var orgName = datalist.orgName || "";
|
464
|
|
var office = datalist.office || "";
|
465
|
|
if(title != "") {
|
466
|
|
var ttitle = title + ",";
|
467
|
|
}else{
|
468
|
|
if(office!=""){
|
469
|
|
var ttitle = office + ",";
|
470
|
|
}else{
|
471
|
|
var ttitle = office;
|
472
|
|
}
|
473
|
|
}
|
474
|
|
if(orgName != "") {
|
475
|
|
orgName = orgName;
|
476
|
|
}
|
477
|
|
$itemlist.find("#ellipsisSty").text(ttitle+orgName);
|
478
|
|
|
479
|
|
/*获取研究方向信息*/
|
480
|
|
var researchAreas = datalist.researchAreas;
|
481
|
|
if( researchAreas.length > 0){
|
482
|
|
var rlist = '研究方向:';
|
483
|
|
for(var n = 0; n < researchAreas.length; n++) {
|
484
|
|
//console.log(researchAreas[n].caption);
|
485
|
|
rlist += researchAreas[n].caption
|
486
|
|
if(n < researchAreas.length - 1) {
|
487
|
|
rlist += ";"
|
488
|
|
}
|
489
|
|
}
|
490
|
|
$itemlist.find("#researchAreas").text(rlist);
|
491
|
|
}
|
492
|
|
}
|
493
|
|
//分页
|
494
|
|
if(isexpert==true){
|
495
|
|
$(".expertPageCode").createPage({
|
496
|
|
pageCount: Math.ceil(data.data.total / 20),
|
497
|
|
current: data.data.pageNo,
|
498
|
|
backFn: function(p) {
|
499
|
|
$("#expertList").html("");
|
500
|
|
expertListVal(keyt,subject,industry,address,authType,20,p,false);
|
501
|
|
document.body.scrollTop = document.documentElement.scrollTop = 0;
|
502
|
|
}
|
503
|
|
});
|
504
|
|
}
|
505
|
|
|
506
|
|
}else{
|
507
|
|
$("#expertList,.expertPageCode").hide();
|
508
|
|
$(".expertPage").show();
|
509
|
|
}
|
510
|
|
$(".loading").remove();
|
511
|
|
}
|
512
|
|
|
513
|
|
},
|
514
|
|
"error": function() {
|
515
|
|
$.MsgBox.Alert('提示', '链接服务器超时')
|
516
|
|
}
|
517
|
|
});
|
|
412
|
function companyListVal(pageSize,pageNo,isexpert) {
|
|
413
|
|
518
|
414
|
}
|
519
|
415
|
//文章
|
520
|
416
|
function articalListVal(pageSize, pageNo,isbind) {
|
|
@ -700,10 +596,10 @@ function patentListVal(pageSize, pageNo,isbind) {
|
700
|
596
|
$("#patentList").html("");
|
701
|
597
|
for(var i = 0; i < dataStr.length; i++) {
|
702
|
598
|
var itemlist = '<li class="flexCenter">';
|
703
|
|
itemlist += '<a href="paperShow.html?paperId=' + dataStr[i].id +'" class="linkhref"><div class="lefthead articalhead"></div>';
|
|
599
|
itemlist += '<a href="patentShow.html?patentId=' + dataStr[i].id +'" class="linkhref"><div class="lefthead articalhead"></div>';
|
704
|
600
|
itemlist += '<div class="centercon centercon2">';
|
705
|
601
|
itemlist += '<p class="h1font ellipsisSty">'+ dataStr[i].name +'</p>';
|
706
|
|
itemlist += '<p class="h1font ellipsisSty">发明人:'+ dataStr[i].authors +'</p>';
|
|
602
|
itemlist += '<p class="h1font ellipsisSty">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
|
707
|
603
|
itemlist += '<p class="h2font ellipsisSty">申请人:'+ dataStr[i].reqPerson +'</p>';
|
708
|
604
|
itemlist += '</div></a></li>';
|
709
|
605
|
$itemlist = $(itemlist);
|
|
@ -775,7 +671,7 @@ function paperListVal(pageSize, pageNo,isbind) {
|
775
|
671
|
itemlist += '<a href="paperShow.html?paperId=' + dataStr[i].id +'" class="linkhref"><div class="lefthead articalhead"></div>';
|
776
|
672
|
itemlist += '<div class="centercon centercon2">';
|
777
|
673
|
itemlist += '<p class="h1font ellipsisSty">'+ dataStr[i].name +'</p>';
|
778
|
|
itemlist += '<p class="h1font ellipsisSty">作者:'+ dataStr[i].authors +'</p>';
|
|
674
|
itemlist += '<p class="h1font ellipsisSty">作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
|
779
|
675
|
itemlist += '<p class="h2font ellipsisSty">期刊:'+ moreInf +'</p>';
|
780
|
676
|
itemlist += '</div></a></li>';
|
781
|
677
|
$itemlist = $(itemlist);
|