1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>找团队-科袖网</title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link rel="stylesheet" href="../css/reset.css" />
- <link rel="stylesheet" href="../css/common.css" />
- <link rel="stylesheet" href="../css/share.css" />
- <style>
- html,body{margin:0;padding:0px;background: #F4F6F8;}
- </style>
- <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- <script type="text/javascript" src="../js/public/baseUtil.js"></script>
- <script type="text/javascript" src="../js/public/shareCom.js"></script>
- <script type="text/javascript" src="../js/public/openApp.js"></script>
- <style>
- .box{
- position: relative;
- position: absolute;
- top: 30%;
- transform: translate(-50% -50%);
- height: 70px;
- width: 100%;
- text-align: center;
- }
-
- .box p{
- font-size: 15px;
- margin-top:5px;
- }
- .box h1 {
- font-size: 25px;
- }
- </style>
- </head>
- <body>
- <div class="contentBody2">
-
- <div class="cardTop">
- <div class="cardImg userCard" id="proHead"></div>
- <div class="cardInfo">
- <p><span class="h1Font" id="proName"></span><em class="authiconNew" title="" id="proAuth"></em></p>
- <p class="ellipsisSty h2Font"id="proOther"></p>
- <p class="h3Font" id="proAddress"></p>
- </div>
- </div>
- </div> -->
-
-
- <div class="showCardI" style="background: none;
- position: relative; ">
-
-
- </div> -->
- <div style="height: 221px; background: #fff">
- <div class="box">
- <h1>团队名称</h3>
- <p>所在机构</p>
- <p>所在城市</p>
- </div>
- </div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocon madiaBlock needList" style="border:none">
- <ul class="mui-table-view" id="demandShow">
-
- <div class="madiaInfo">
- <p class="h1Font ellipsisSty-2">需求主题寻求一名斯特林热机技术顾问需求主题寻求一名斯特林热机技术顾问需求主题寻求一名斯特林热机技术顾问</p>
- <p class="h2Font ellipsisSty-5">需求内容:我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
- 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
- 想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
- <div class="showli ellipsisSty">
- <span>北京市</span>
- <span>预期 1个月内</span>
- <span>预算 1万元以内</span>
- <span>有效期至 8月17日</span>
- </div>
- </div>
- </li>-->
- </ul>
- </div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">可提供服务</div>
- <div class="infocon infoconM madiaBlock">
- <ul class="mui-table-view" id="serviceShow">
-
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreService"><em>查看全部 <span id="serviceNum">0</span>个</em></div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">可共享资源</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="resourceShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreResource"><em>查看全部 <span id="resourceNum">0</span>个</em></div>
- </div>
- <div class="mainbox" style="cursor: pointer;" id="goCmpBrief">
- <div class="infocontit mui-clearfix">团队介绍 <em></em></div>
- <div class="infocon">
- <span class="breifinfo" id="breifinfo" style="display: block">
-
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing
- elit. Aenean eus mod bibendum laoreet. Proin gravida dolor sit amet lacus amet leuis mod bibendum
- laoreet. Proin gravida dolor sit amet lacusamet laccu msan et viverra justo commodo. Proin sodaled ...</p>
- </span>
- </div>
- </div>
-
- <div class="mainbox">
- <div class="infocontit">行业领域</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">学术领域</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">非专</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">专利</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">论文</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox">
- <div class="infocontit">团队专家</div>
- <div class="infocon listArea">
- <ul id="industryShow">
- 1
- </ul>
- </div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">问答</div>
- <div class="infocon infoconM madiaBlock needList">
- <ul class="mui-table-view" id="QAShow">
-
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreQA"><em>查看全部 <span id="QANum">0</span>个</em></div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">文章</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="articelShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMoreArtical"><em>查看全部 <span id="articalNum">0</span>篇</em></div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">专利</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="patentShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMorePatent"><em>查看全部 <span id="patentNum">0</span>项</em></div>
- </div>
- <div class="mainbox displayNone">
- <div class="infocontit">论文</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="paperShow">
- </ul>
- </div>
- <div class="seeMore displayNone" id="seeMorePaper"><em>查看全部 <span id="paperNum">0</span>篇</em></div>
- </div>
-
- <div class="mainbox displayNone">
- <div class="infocontit">合作专家</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="relatePro">
- </ul>
- </div>
- </div>
-
- <div class="mainbox displayNone">
- <div class="infocontit">相关文章</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="relateArt">
- </ul>
- </div>
- </div>
-
- <div class="mainbox displayNone">
- <div class="infocontit">您可能感兴趣的专家</div>
- <div class="infocon madiaBlock">
- <ul class="mui-table-view" id="likePro">
- </ul>
- </div>
- </div>
-
-
- <img class="Ecodecon" src="../images/ecordCard.jpg" />
- <div class="Ecodeinfo">
- <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
- </div> -->
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function() {
- var imgUrl = "http://www.ekexiu.com/images/logo180.png";
- var lineLink = document.location.href;
- var descContent;
- var shareTitle;
- var appid = '';
- var proId = GetQueryString("id");
-
-
- function userMessage (id) {
- $.ajax ({
- type:'get',
- url:'/ajax/professor/info/'+proId,
- async:true,
- success:function (data ) {
- var $info = data
- console.log($info);
- }
- })
- }
- function userMessage(id) {
- $.ajax({
- type:"get",
- url:"/ajax/professor/info/"+ proId,
- async:true,
- success: function(data) {
- var $info = data.data;
-
- console.log(data);
-
- if(data.success) {
-
-
-
- $("#proName").text($info.name);
- var oStyS=autho($info.authType,$info.orgAuth,$info.authStatus);
- $("#proAuth").addClass(oStyS.sty); $("#proAuth").attr("title",oStyS.title);
- if($info.address){
- $("#proAddress").html('<em class="mui-icon iconfontnew icon-address"></em> ' + $info.address);
- }
- var proOther="";
- if($info.orgName){
- if($info.department){
- if($info.title){
- proOther = $info.title + "," + $info.department + "," + $info.orgName
- }else{
- if($info.office){
- proOther = $info.office + "," + $info.department + "," + $info.orgName
- }else{
- proOther = $info.department + "," + $info.orgName
- }
- }
- }else{
- proOther = $info.orgName
- }
- }
- $("#proOther").text(proOther);
- var llqtitle=$info.name + "-" + proOther.replace(/,/gi,"-");
- document.title = llqtitle;
-
- if($info.descp) {
- $("#breifinfo").text($info.descp);
- }else{
- document.getElementById("breifinfo").parentNode.style.display = "none";
- }
-
- if($info.subject) {
- indu($info.subject, 'subjectShow')
- } else {
- document.getElementById("subjectShow").parentNode.parentNode.style.display = "none";
- }
-
- if($info.researchAreas.length) {
- researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
- } else {
- document.getElementById("reserachMess").parentNode.style.display = "none";
- }
-
- if($info.industry) {
- indu($info.industry, 'industryShow')
- } else {
- document.getElementById("industryShow").parentNode.parentNode.style.display = "none";
- }
-
- shareTitle = document.getElementById("proName").innerText;
- descContent = document.getElementById("subjectShow").innerText.substring(0,70);
-
- }
- },
- error: function() {
- }
- });
- }
-
- function getRecords($researchAreaLogs, caption) {
- var ret = [];
- var t = 0;
- for(var i = 0; i < $researchAreaLogs.length; i++) {
- if(caption == $researchAreaLogs[i].caption) {
- ret[t] = {
- id: $researchAreaLogs[i].opreteProfessorId,
- img: $researchAreaLogs[i].hasHeadImage
- }
- t++;
- }
- }
- return ret;
- }
- var resear = "";
- function researchAreaShow($datas, $datarecords) {
- if($datas != undefined && $datas.length != 0) {
- var html = [];
- for(var i = 0; i < $datas.length; ++i) {
- var $data = $datas[i];
- var $photos = [];
-
- if($datarecords.length > 0) {
- $photos = getRecords($datarecords, $data.caption);
- }
- var showDiv = "<div class='listbox'><div class='listbrowse ellipsisSty'dataCaption="+$data.caption+"><span class='like'>" + $data.count + "</span>" + $data.caption + "</div><div class='likenum' dataCaption="+$data.caption+">"
-
- if($photos.length < 4) {
- for(var j = 0; j < $photos.length; ++j) {
- if($photos[j].img) {
- showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/head/" + $photos[j].id + "_m.jpg'></span>";
- } else {
- showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
- }
- }
- } else {
- for(var j = $photos.length - 2; j < $photos.length; ++j) {
- if($photos[j].img) {
- showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/head/" + $photos[j].id + "_m.jpg'></span>";
- } else {
- showDiv += "<span class='likepeople userRadius'><img class='like-h' src='../images/default-photo.jpg'></span>";
- }
- }
- showDiv += "<span class='mui-icon iconfont icon-more likepeople likemore userRadius'></span>";
- }
- showDiv += "</div></div></div>";
- html.push(showDiv);
- resear += (i + 1) + "." + $data.caption + " ";
- }
- document.getElementById("reserachMess").innerHTML = html.join('')
- }
- }
-
- function indu(oString, oSelector) {
- var arr = oString.split(",");
- var oArr = new Array();
- var i;
- for(i in arr) {
- oArr.push('<li>' + arr[i] + '</li>');
- }
- document.getElementById(oSelector).innerHTML = oArr.join("");
- }
- var rows = 1
- var oAjax = function(url, dataS, otype, oFun) {
- $.ajax({
- url:url,
- dataType: 'json',
- type: otype,
- data: dataS,
- traditional: true,
- success: function(res) {
- if(res.success) {
- oFun(res)
- }
- }
- });
- },
- demandListVal=function() {
- var aimId="demandShow"
- oAjax("/ajax/demand/pq",{
- "state":[1],
- "uid":proId,
- "pageSize":5
- }, "get", function(res){
- var obj = res.data.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var li = document.createElement("li");
- li.setAttribute("data-id",obj[i].id);
- var needDate=obj[i].invalidDay;
- var lastDate=TimeTr(needDate);
- li.className = "mui-table-view-cell";
- var oString = '<div class="madiaInfo">'
- oString += '<p class="h1Font ellipsisSty-2">'+obj[i].title+'</p>';
- oString += '<p class="h2Font ellipsisSty-5">'+obj[i].descp+'</p>'
- oString += '<div class="showli ellipsisSty h3Font">'
- oString += '<span>'+obj[i].province+'</span>'
- if(obj[i].duration!=0){oString += '<span>预期 '+demandDuration[obj[i].duration]+'</span>'}
- if(obj[i].cost!=0){oString += '<span>预算 '+demandCost[obj[i].cost]+'</span>'}
- oString += '<span>有效期至'+lastDate+' </span>'
- oString += '</div>'
- oString += '</div>'
- li.innerHTML=oString
- document.getElementById(aimId).appendChild(li);
- }
- }
- })
- },
- articalListVal=function(){
- var aimId="articelShow"
- oAjax("/ajax/article/publish",{
- "category": "1",
- "owner":proId,
- "rows": rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
-
- for(var i = 0; i < obj.length; i++) {
- var hasImg="../images/default-artical.jpg"
- if(obj[i].articleImg) {
- hasImg="/data/article/" + obj[i].articleImg
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].articleId);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- '<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + obj[i].articleTitle + '</p>' +
- '<p class="h2Font ellipsisSty"><span class="time">'+commenTime(obj[i].publishTime)+'</span></p>'+
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- }
- }
- })
- },
- resourceListVal=function(){
- var aimId="resourceShow"
- oAjax("/ajax/resource/publish",{
- "category": "1",
- "owner":proId,
- "rows": rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var cnt="", hasImg="../images/default-resource.jpg"
- if(obj[i].images.length) {
- hasImg='/data/resource/' + obj[i].images[0].imageSrc
- }
- if(obj[i].supportedServices){
- cnt="用途:"+ obj[i].supportedServices
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].resourceId);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- '<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + obj[i].resourceName + '</p>' +
- '<p class="ellipsisSty h2Font">' + cnt+ '</p>' +
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- }
- }
- })
- },
- serviceListVal=function(){
- var aimId="serviceShow"
- oAjax("/ajax/ware/publish",{
- "category":"1",
- "owner":proId,
- "rows": rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var cnt="", hasImg="../images/default-service.jpg"
- if(obj[i].images) {
- var subs = strToAry(obj[i].images)
- if(subs.length > 0) {
- hasImg="/data/ware" + subs[0]
- }
- }
- if(obj[i].cnt){
- cnt="内容:"+obj[i].cnt
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- '<div class="madiaHead resouseHead" style="background-image:url(' + hasImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
- '<p class="ellipsisSty h2Font">' + cnt+ '</p>' +
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- }
- }
- })
- },
- patentListVal=function(){
- var aimId="patentShow"
- oAjax("/ajax/ppatent/professor",{
- "owner":proId,
- "rows": rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- '<div class="madiaHead patentHead"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
- '<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- }
- }
- })
- },
- paperListVal=function(){
- var aimId="paperShow"
- oAjax("/ajax/ppaper/professor",{
- "owner":proId,
- "rows": rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- '<div class="madiaHead paperHead"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + obj[i].name + '</p>' +
- '<p class="ellipsisSty h2Font">' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- }
- }
-
- })
- },
- answerListVal=function(){
- var aimId="QAShow"
- oAjax("/ajax/question/answer/bySelf",{
- "uid":proId,
- "rows":rows
- }, "get", function(res){
- var obj = res.data;
- if(obj.length > 0) {
- document.getElementById(aimId).parentNode.parentNode.classList.remove("displayNone");
- for(var i = 0; i < obj.length; i++) {
- var hd = "";
- if (obj[i].agree > 0) {
- hd = '<span>赞 ' + obj[i].agree + '</span>'
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", obj[i].id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="madiaInfo">' +
- '<p class="h1Font ellipsisSty-2 qa-question"></p>' +
- '<div class="flexCenter qa-owner"></div>' +
- '<div class="qa-con ellipsisSty-5">' + listConCut(obj[i].cnt) + '</div>' +
- '<div class="showliSpan ellipsisSty">' +
- '<span>' + commenTime(obj[i].createTime) + '</span>' + hd +'<span class="leaveMsgCount"></span>'+
- '</div>' +
- '</div>'
- document.getElementById(aimId).appendChild(li);
- var $str = $(li);
- questioninfo(obj[i].qid, $str);
- proinfo(obj[i].uid, $str);
- leaveMsgCount(obj[i].id,"4", $str);
- }
- }
- })
- },
- 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 = '<div class="owner-head useHead" style="background-image:url(' + baImg + ')"></div>' +
- '<div class="owner-info">' +
- '<div class="owner-name"><span class="h1Font">' + dataStr.name + '</span><em class="authiconNew ' + userType.sty + '" title="' + userType.title + '"></em></div>' +
- '<div class="owner-tit ellipsisSty h2Font">' + os + '</div>' +
- '</div>'
- $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()
- }
- });
- },
- queryPubCount=function(){
- oAjax("/ajax/article/count/publish",{
- "owner": proId,
- "category":"1"
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMoreArtical").removeClass("displayNone")
- $("#articalNum").text(data.data);
- }
- });
- oAjax("/ajax/resource/count/publish",{
- "owner": proId,
- "category":"1"
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMoreResource").removeClass("displayNone")
- $("#resourceNum").text(data.data);
- }
- });
- oAjax("/ajax/ware/count/publish",{
- "owner": proId,
- "category":"1"
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMoreService").removeClass("displayNone")
- $("#serviceNum").text(data.data);
- }
- });
- oAjax("/ajax/ppatent/count/publish",{
- "owner": proId,
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMorePatent").removeClass("displayNone")
- $("#patentNum").text(data.data);
- }
- });
- oAjax("/ajax/ppaper/count/publish",{
- "owner": proId,
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMorePaper").removeClass("displayNone")
- $("#paperNum").text(data.data);
- }
- });
- oAjax("/ajax/question/answer/bySelf/count",{
- "uid": proId,
- }, "GET", function(data){
- if(data.data>rows){
- $("#seeMoreQA").removeClass("displayNone")
- $("#QANum").text(data.data);
- }
- });
- },
- bindClickFun=function(){
- var this_="../html/userInforShow.html?proid="+proId;
- wcFresh(this_);
- $("body").on("click",".seeMore,#goCmpBrief",function(){
- isInstalled(this_,true);
- $(this).addClass("activeThis");
- })
- $('#articelShow,#relateArt').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/a.html?id=" + id;
- $(this).addClass("activeThis");
- })
- $('#resourceShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/r.html?id=" + id;
- $(this).addClass("activeThis");
- })
- $('#paperShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/l.html?id=" + id;
- $(this).addClass("activeThis");
- })
- $('#patentShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/z.html?id=" + id;
- $(this).addClass("activeThis");
- })
- $('#demandShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/d.html?id=" + id;
- $(this).addClass("activeThis");
- })
- $('#serviceShow').on('click', 'li', function() {
- var id = this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/s.html?id=" + id;
- $(this).addClass("activeThis");
- })
- }
-
- userMessage(proId);
- demandListVal()
- serviceListVal()
- resourceListVal()
- articalListVal()
- patentListVal()
- paperListVal()
- answerListVal()
- relevantExperts();
- relevantarticalList();
- likeExperts();
- bindClickFun()
- queryPubCount();
- pageViewLog(proId,1);
-
-
- function relevantExperts(){
- $.ajax({
- "url": "/ajax/professor/coadjutant",
- "type": "get",
- "dataType" : "json",
- "data" :{"id":proId},
- "success": function(data) {
- if(data.success && data.data) {
- console.log(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;
- var liItem=document.createElement("li");
- liItem.className="mui-table-view-cell flexCenter";
- document.getElementById("relatePro").appendChild(liItem);
- relExpertsList(ExpId,paperN,patentN,liItem);
- }
-
- }
- },
- "error": function() {
- $.MsgBox.Alert('提示', '链接服务器超时')
- }
- });
- }
- function relExpertsList(Id,numL,numZ,liItem){
- $.ajax({
- "url" : "/ajax/professor/info/"+Id,
- "type" : "GET" ,
- "dataType" : "json",
- "success" : function(data) {
- if (data.success && data.data!=""){
- document.getElementById("relatePro").parentNode.parentNode.classList.remove("displayNone");
- var thisTit,thisImg,copNum=""
- if(data.data.hasHeadImage == 1) {
- thisImg="/images/head/" + data.data.id + "_l.jpg);"
- }else{
- thisImg="../images/default-photo.jpg);"
- }
- if(numL){
- if(numZ){
- copNum="合作:"+numZ+"项专利,"+numL+"篇论文"
- }else{
- copNum="合作:"+numL+"篇论文"
- }
- }else{
- if(numZ){
- copNum="合作:"+numZ+"项专利"
- }else{
-
- }
- }
-
- if(data.data.title) {
- if(data.data.orgName) {
- thisTit=data.data.title +","+ data.data.orgName;
- }else{
- thisTit=data.data.title;
- }
- }else{
- if(data.data.office) {
- if(data.data.orgName) {
- thisTit=data.data.office +","+ data.data.orgName;
- }else{
- thisTit=data.data.office;
- }
- }else{
- if(data.data.orgName) {
- thisTit=data.data.orgName;
- }
- }
- }
- var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
- var itemlist = '<a href="p.html?id='+data.data.id+'" class="urlgo"><div class="madiaHead useHead" style="background-image:url('+thisImg+')"></div>';
- itemlist += '<div class="madiaInfo">';
- itemlist += '<p class="ellipsisSty"><span class="h1Font" id="userName">'+data.data.name+'</span><em class="authiconNew '+userType.sty+'" title="'+userType.title+'"></em></p>';
- itemlist += '<p class="ellipsisSty h2Font">'+thisTit+'</p>';
- itemlist += '<p class="h2Font ellipsisSty">'+copNum+'</p>';
- itemlist += '</div></a>';
- liItem.innerHTML = itemlist
- liItem.setAttribute("data-id",data.data.id)
- }
- },
- "error":function(){
- $.MsgBox.Alert('提示','链接服务器超时')
- }
- });
- }
-
- function relevantarticalList(){
- $.ajax({
- "url" : "/ajax/article/byAssProfessor",
- "type" : "GET" ,
- "dataType" : "json",
- "data" :{"id":proId},
- "async":"false",
- "traditional": true,
- "success" : function(data) {
- console.log(data);
- if (data.success && data.data!=""){
- document.getElementById("relateArt").parentNode.parentNode.classList.remove("displayNone");
- document.getElementById("relateArt").innerHTML="";
- var StrData = data.data
- var lengthT;
- if(data.data.length>5){
- lengthT=5;
- }else{
- lengthT=data.data.length
- }
- for(var i = 0; i < lengthT; i++) {
- (function(n) {
- var imgL="../images/default-artical.jpg";
- if(StrData[i].articleImg){
- imgL='../data/article/' + StrData[i].articleImg
- }
- var oURL;
- if(StrData[i].articleType==1) {
- oURL="/ajax/professor/baseInfo/"+StrData[i].ownerId;
- }else if(StrData[i].articleType==2){
- oURL="/ajax/org/" + StrData[i].ownerId;
- }else if(StrData[i].articleType==3){
- oURL="/ajax/platform/info";
- }
- $.ajax({
- "url":oURL,
- "data":{id:StrData[i].ownerId},
- "type": "GET",
- 'dataType': "json",
- "success": function(data) {
- var thisName,userType,thisAuth,thisTitle
- if(data.data.forShort){
- thisName=data.data.forShort;
- }else{
- thisName=data.data.name;
- }
- if(StrData[n].articleType==1) {
- userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
- thisTitle = userType.title;
- thisAuth = userType.sty;
- }else if(StrData[n].articleType==2){
- if(data.data.authStatus==3) {
- thisTitle = "科袖认证企业";
- thisAuth = "authicon-com-ok";
- }
- }else if(StrData[n].articleType==3){
- }
- var add = document.createElement("li");
- add.className = "mui-table-view-cell flexCenter OflexCenter";
- add.setAttribute("data-id",StrData[n].articleId);
- var itemlist = '<div class="madiaHead artHead" style="background-image:url('+imgL+')"></div>';
- itemlist += '<div class="madiaInfo OmadiaInfo">';
- itemlist += '<p class="ellipsisSty-2 h1Font" id="usertitle">'+StrData[n].articleTitle+'</p>';
- itemlist += '<p><span class="h2Font" style="margin-right:10px">'+thisName+'</span><span class="time">'+commenTime(StrData[n].publishTime)+'</span></p>';
- itemlist += '</div>';
-
- add.innerHTML=itemlist;
- document.getElementById("relateArt").appendChild(add);
- },
- 'error': function() {
- $.MsgBox.Alert('提示', '服务器连接超时!');
- }
- });
- })(i);
- }
- }
- },
- "error":function(){
- $.MsgBox.Alert('提示','链接服务器超时')
- }
- });
- }
-
- function likeExperts(){
- $.ajax({
- "url": "/ajax/professor/ralateProfessors",
- "type": "get",
- "dataType" : "json",
- "data" :{"professorId":proId},
- "success": function(data) {
- if(data.success && data.data) {
- console.log(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;
- likeExpertsList(ExpId);
- }
- }
- },
- "error": function() {
- $.MsgBox.Alert('提示', '链接服务器超时')
- }
- });
- }
- function likeExpertsList(Id){
- $.ajax({
- "url" : "/ajax/professor/info/"+Id,
- "type" : "GET" ,
- "dataType" : "json",
- "success" : function(data) {
- if (data.success && data.data!=""){
- console.log(data)
- document.getElementById("likePro").parentNode.parentNode.classList.remove("displayNone");
- var itemlist = '<li class="flexCenter"><a href="" class="urlgo">';
- itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
- itemlist += '<div class="madiaInfo">';
- itemlist += '<p><span class="h1Font" id="userName"></span><em class="authiconNew" title=""></em></p>';
- itemlist += '<p class="ellipsisSty h2Font" id="usertitle"></p>';
- itemlist += '</div></a></li>';
- $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", "p.html?id="+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);
- }
- },
- "error":function(){
- $.MsgBox.Alert('提示','链接服务器超时')
- }
- });
- }
-
-
- $.ajax({
- url: "../ajax/weixin/jsapiTicket",
- type: 'get',
- dataType: 'json',
- contentType: "application/x-www-form-urlencoded; charset=utf-8",
- data: {
- 'url': location.href.split('#')[0]
- },
- success: function(data) {
- if(data.data) {
- wx.config({
- debug: false,
- appId: data.data.appId,
- timestamp: data.data.timestamp,
- nonceStr: data.data.nonceStr,
- signature: data.data.signature,
- jsApiList: [
- "onMenuShareAppMessage",
- "onMenuShareTimeline",
- "onMenuShareQQ",
- "onMenuShareQZone",
- "scanQRCode",
- ]
- });
- wx.ready(function() {
-
- wx.onMenuShareAppMessage({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareTimeline({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareQQ({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareQZone({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- });
-
- function share_success_callback() {}
-
- function share_cancel_callback() {}
- }
- }
- });
- })
- function sevrResource($data) {
- var namepo, userType;
- if($data.resourceType == 1) {
- namepo = $data.editProfessor.name;
- userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
- } else {
- userType = {};
- if($data.organization.forShort) {
- namepo = $data.organization.forShort;
- } else {
- namepo = $data.organization.name;
- }
- if($data.organization.authStatus == 3) {
- userType.sty = "authicon-com-ok"
- }
- }
- var rImg = "../images/default-resource.jpg";
- if($data.images.length > 0) {
- rImg = "/data/resource/" + $data.images[0].imageSrc;
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.resourceId);
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
- '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
- '<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById("resourceList").appendChild(li);
- }
- function sevrResource($data) {
- var namepo, userType;
- if($data.resourceType == 1) {
- namepo = $data.editProfessor.name;
- userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
- } else {
- userType = {};
- if($data.organization.forShort) {
- namepo = $data.organization.forShort;
- } else {
- namepo = $data.organization.name;
- }
- if($data.organization.authStatus == 3) {
- userType.sty = "authicon-com-ok"
- }
- }
- var rImg = "../images/default-resource.jpg";
- if($data.images.length > 0) {
- rImg = "/data/resource/" + $data.images[0].imageSrc;
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.resourceId);
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
- '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
- '<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById("resourceList").appendChild(li);
- }
- function sevrResource($data) {
- var namepo, userType;
- if($data.resourceType == 1) {
- namepo = $data.editProfessor.name;
- userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
- } else {
- userType = {};
- if($data.organization.forShort) {
- namepo = $data.organization.forShort;
- } else {
- namepo = $data.organization.name;
- }
- if($data.organization.authStatus == 3) {
- userType.sty = "authicon-com-ok"
- }
- }
- var rImg = "../images/default-resource.jpg";
- if($data.images.length > 0) {
- rImg = "/data/resource/" + $data.images[0].imageSrc;
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.resourceId);
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
- '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
- '<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById("resourceList").appendChild(li);
- }
- </script>
- </body>
- </html>
|