"+t+""+v+"码龄"+_+"年"+d+h+" ";if(n("body").append(w),f.realPos){var y=n("#csdn-userTooltip"),T=y.height(),C=f.realPos.left,x=f.realPos.top-T-35;y.css({left:C,top:x})}}function l(){n("#csdn-userTooltip").length&&n("#csdn-userTooltip").remove(),m=u.attr("username");var s,l,c,d,T,C,x,U,b,k,j,B,P="";if(!(p.closest("#csdn-userTooltip").length<=0))return!1;n("#csdn-userTooltip").remove(),v[m]?(s=v[m].followClass,l=v[m].followStr,c=v[m].avatarurl,d=v[m].nickname,T=v[m].isVip,C=v[m].hasDomain,x=v[m].isBlogWriter,U=v[m].favsCount,b=v[m].interestname,k=v[m].huistr,B=v[m].age,P=r(u),f=T?"
"+i.vip+"":"",f+=x?"
"+i.writer+"":"",g=C?"
"+i.domain+""+C+".blog.csdn.net":"
"+i.domainGrey+"暂未设置自定义域名",g="
"+g+"",y?(s&&l&&(j="
"+l+""),y===m&&(j=""),t(c,b,d,T,x,U,s,l,k,void 0,_,P,g,f,j,B),o()):(t(c,b,d,T,x,U,s,l,k,void 0,_,P,g,f,j,B),n("#csdn-userTooltip .person_deliver").click(function(){e.location.href="https://passport.csdn.net/"}))):n.ajax({type:"get",url:a.getUserProfileUrl+"?username="+m,contentType:"application/json",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,success:function(s){var l,c,d,p,m,T,C,x,U,b,k,B,F,D="",N="",S="",V="",I=!1;if(200===Number(s.code,10)){if(l=s.data||a.defaultUserProfile,!(B=l.username))return!1;if(c=l.avatarurl,d=l.nickname||B,F=l.years,p=l.fans_num,m=l.vip,T=l.domain,C=l.expert,x=l.medal?l.medal:[],U=x.length,U>0&&(I=!0),f=m?"
"+i.vip+"":"",f+=C?"
"+i.writer+"":"",g=T?"
"+i.domain+""+T+".blog.csdn.net":"
"+i.domainGrey+"暂未设置自定义域名",g="
"+g+"",I){x.length>99999?(b=99999,k=!0):b=x.length;for(var E=0;E
";k&&(S+=''+w+x.length+""),S=""}else S="一个勋章都没有...",S="";if(null!=l.identity)for(var G=0;G|":V+=l.identity[G].name)}if(y){var L=a.checkFollowUrl+"?follows="+B;n.ajax({type:"get",url:L,xhrFields:{withCredentials:!0},dataType:"json",success:function(e){var s;200===e.code&&e.data&&(0===e.data[B]?(D="person_deliver person_deliver_letter_un",N="关注",_=!1):(D="person_deliver person_deliver_letter",N="已关注",_=!0)),P=r(u),D&&D&&(s=""+N+""),y===B&&(s=""),t(c,V,d,m,C,p,D,N,S,U,_,P,g,f,s,F),h[B]={},h[B].avatarurl=c,h[B].nickname=d,h[B].isVip=m,h[B].hasDomain=T,h[B].isBlogWriter=C,h[B].favsCount=p,h[B].interestname=V,h[B].followClass=D,h[B].followStr=N,h[B].huistr=S,h[B].huicount=U,h[B].flag=_,h[B].age=F,v[B]=h[B],o()}})}else P=r(u),t(c,V,d,m,C,p,D,N,S,U,_,P,g,f,j,F),n("#csdn-userTooltip .person_deliver").click(function(){e.location.href="https://passport.csdn.net/"}),h[B]={},h[B].avatarurl=c,h[B].nickname=d,h[B].isVip=m,h[B].hasDomain=T,h[B].isBlogWriter=C,h[B].favsCount=p,h[B].interestname=V,h[B].huistr=S,h[B].huicount=U,h[B].age=F,v[B]=h[B]}},error:function(e){console.warn(e)}})}var s=s||e.event;return p=n(s.target||s.srcElement),u=n(this),clearTimeout(d),clearTimeout(c),null!=n(this).attr("username")&&(c=setTimeout(l,200)),!1}),n(s).on("mouseleave","img[username]",function(e){return clearTimeout(c),d=setTimeout(l,200),!1}),n(s).on("mouseleave","#csdn-userTooltip",function(e){return clearTimeout(d),l(),!1})}}(window,document,jQuery),$(function(){window.csdn.userTooltip()});