'+a+""}}(),cmnt.tpls=function(){function e(e){return"<% this."+e+" %>"}function n(){return{formList:'',list:["","","'].join(""),cont:["\x3c!-- 头像 start --\x3e","'+e("userFace")+"
","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","',"
',"',e("userLnk"),"","'+e("area")+"",e("newsLnk"),"
","
',e("contWithReply"),"
","
","
","\x3c!-- 内容 end --\x3e"].join(""),contWithUserFrom:["\x3c!-- 头像 start --\x3e","'+e("userFace")+"
","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","',"
',"',e("userLnk"),"","'+e("area")+"",e("userFrom"),e("newsLnk"),"
","
',e("contWithReply"),"
","
","
","\x3c!-- 内容 end --\x3e"].join(""),floor:["\x3c!-- 头像 start --\x3e","'+e("userFace")+"
","\x3c!-- 头像 end --\x3e","\x3c!-- 内容 start --\x3e","',"
',"'+e("floor")+"","'+e("userLnk")+"","'+e("area")+"","
","
'+e("cont")+"
","
'+e("time")+"
',"',"",getMsg("I008"),"<% if(parseInt(this.agree)) {%>","'+e("agree")+"","<% }else{ %>","',"<%}%>","","","回复',"","
","
"].join(""),dialogItem:["\x3c!-- 内容 start --\x3e","',"
'+e("userLnk")+""+e("lastUserLnk")+e("cont")+"
","
","
"].join(""),comment:["',"',"'+getMsg("I038")+"","
","',"
","\x3c!-- 用户头像 start --\x3e","
',e("face"),"
","
','

',"
","\x3c!-- 用户头像 end --\x3e","
","',"
","
',"\x3c!-- 登录与注册 start --\x3e","
","\x3c!-- 登录与注册前 end --\x3e","
","
',""+getMsg("I018")+"","
","\x3c!-- 发布 start --\x3e","
'+getMsg("I007")+"","\x3c!-- 发布 end --\x3e","
","
"].join(""),reply:["','
','
","
',"
","
',"\x3c!-- 登录与注册 start --\x3e","
","\x3c!-- 登录与注册 end --\x3e","
',""+getMsg("I018")+"","
","
'+getMsg("I007")+"","
","
","
"].join(""),share:"#精彩评论#【"+e("title")+"】"+e("name")+":"+e("content"),popup:['"].join("")}}var t=" action-data=",a=" action-type=",i=" class=",o=" comment-type=",s=null;return{set:function(e,t){(s=s||n())[e]=t},get:function(e){return s=s||n(),typeof e==UNDEFINED?s:s[e]}}}(),cmnt.popup=function(){function o(t,n,a){function e(e){if(e=((e=e||window.event).target||e.srcElement).getAttribute("popup-type"))switch(t.style.display="none",t.parentNode.removeChild(t),e){case"action":"function"==typeof n&&n();break;case"cancel":"function"==typeof a&&a()}}"addEventListener"in t?t.addEventListener("click",e,!1):"attachEvent"in t&&t.attachEvent("onclick",e)}var s=cmnt.tpls.get("popup"),t=document.getElementsByTagName("body")[0];return function(e){var a,i=$.extend({skin:"error",type:"confirm",head:null,body:"",actionText:"确定",cancelText:"取消",parentNode:t,onAction:function(){},onCancel:function(){}},e);return{show:function(){var e,t,n;a||((a=document.createElement("div")).innerHTML=appTemplate(s,i),a=a.firstElementChild,i.parentNode.appendChild(a),o(a,i.onAction,i.onCancel)),a.style.display="block",e=a,t=i.parentNode,"absolute"!==(n=$.getStyle(t,"position"))&&"relative"!==n&&(t.style.position="relative"),e.style.marginLeft=-e.offsetWidth/2+"px",a.style.opacity="1"},hide:function(){a&&(a.style.opacity="0",a.style.display="none")}}}}(),cmnt.popupQR=function(){function o(t,n,a){function e(e){if(e=((e=e||window.event).target||e.srcElement).getAttribute("popup-type"))switch(t.style.display="none",t.parentNode.removeChild(t),e){case"action":"function"==typeof n&&n();break;case"cancel":"function"==typeof a&&a()}}"addEventListener"in t?t.addEventListener("click",e,!1):"attachEvent"in t&&t.attachEvent("onclick",e)}var s=cmnt.tpls.get("popupQR"),t=document.getElementsByTagName("body")[0];return function(e){var a,i=$.extend({skin:"error",type:"confirm",head:null,body:"",actionText:"确定",cancelText:"取消",parentNode:t,onAction:function(){},onCancel:function(){}},e);return{show:function(){var e,t,n;a||((a=document.createElement("div")).innerHTML=appTemplate(s,i),a=a.firstElementChild,i.parentNode.appendChild(a),o(a,i.onAction,i.onCancel)),a.style.display="block",e=a,t=i.parentNode,"absolute"!==(n=$.getStyle(t,"position"))&&"relative"!==n&&(t.style.position="relative"),e.style.marginLeft=-e.offsetWidth/2+"px",a.style.opacity="1"},hide:function(){a&&(a.style.opacity="0",a.style.display="none")}}}}(),cmnt.getWBName=function(e){return typeof e.config!=UNDEFINED&&(e=e.config.match(/wb_screen_name=([^&]*)/i))?e[1]:""},cmnt.getWBV=function(e){var t,n;return typeof e.config==UNDEFINED?"":(t="",n=(e=$.queryToJson(e.config)).wb_verified,e=e.wb_verified_type,typeof n!=UNDEFINED&&"1"==n?"0"==e?"y":"b":t)},cmnt.getUserLnk=function(e,t,n){t=t||"",n=n||"";var a="",i=cmnt.getWBV(e),o="新浪个人认证",i=(i&&(a='
'),cmnt.getWBName(e));return'"},cmnt.getUserFace=function(e){var t=e.config||"",t=(t=$.queryToJson(t,!0).wb_profile_img||"//www.sinaimg.cn/dy/deco/2012/1018/sina_comment_defaultface.png").replace(/^http[s]?\:(?=\/\/)/,""),n=cmnt.getWBName(e);return n&&e.nick?'
':e.uid&&"0"!=e.uid?(t="//portrait5.sinaimg.cn/"+e.uid+"/blog/50",'
'):'
'},cmnt.getUserIco=function(e){var t={wap:"name-mobile",wb:"name-weibo"},n=t[e.usertype];return n=(n=n||"")||(cmnt.getWBName(e)?t.wb:"")},cmnt.getUserFromType=function(e){var t="",e={financeapp:{txt:"新浪财经APP",url:"//finance.sina.com.cn/mobile/comfinanceweb.shtml"}}[e.usertype];return t=e?'来自'+e.txt+"":t},cmnt.getUserAgreed=function(e){var t="",n=$.login.getInfo(),n=n.sina?n.sina.uid:"unlogin_user",n=$.messageStorage.get(n)?$.messageStorage.get(n):"";return t="1"==e.is_agree||-1
查看对话