你目前没有可用的道具了,快去商城购买吧
去购买>>',width:400,height:80});i.element.find(".buy_dialog_link").on("click",function(){t.clear(),setTimeout(function(){t.showBuyDialog(t.mallurl)},200)})},showBuyDialog:function(t){var i='
道具购买成功后即可使用!
',a=new $.dialog({title:"提示",html:$.tb.format(i,{href:$.tb.unescapeHTML(t)}),width:400,height:80});a.bind("onclose",function(){$.tb.location.reload()}),a.element.find(".btn_success").on("click",function(t){t.preventDefault(),$.tb.location.reload()})}}});_.Module.define({path:"props/widget/Feedback",requires:[],sub:{initial:function(i){this.dataObj=i,this.initOptions(),this.initCallbacks(),this.initData(),this.play()},initOptions:function(){this.options={1070001:{id:"1070001",key:"worship",name:"膜拜",flashOptions:{width:250,height:220,marginLeft:120,marginTop:95}},1070002:{id:"1070002",key:"egg",name:"臭鸡蛋",flashOptions:{width:410,height:260,marginLeft:195,marginTop:30}}}},initData:function(){for(var i=this.dataObj.appraise||{},t=null,e=null,a=[],n=["1070001","1070002"],s=0;s
0&&(e=this.options[n[s]],$.extend(e,t),a.push(e));this.playList=a},play:function(){var i=this.playList;i.length>0&&(i.sort(function(i,t){return t.notice!=i.notice?t.notice-i.notice:parseInt(t.id)-parseInt(i.id)}),this.index=0,this.buildFlash(),this.clearNotice())},buildFlash:function(){if(this.index');$("body").append(i);var t=this.playList[this.index],e=this.getFlashData(t);i.css({width:e.width,height:e.height,left:e.marginLeft,top:e.marginTop,"z-index":e.zindex});{var a="/tb/static-props/swf/"+e.feedbackName+"?t=0101";new $.swf(a,{id:"props_flash_content",name:"props_flash_content",container:i,width:e.width,height:e.height,params:{wmode:"transparent"}})}t.wrap=i}},getFlashData:function(i){var t=i.flashOptions,e=0,a=0,n=0,s=0,o=PageData.product;switch(o){case"pb":case"frs":case"index":n=40,e=$("#user_info").offset().left,a=$("#user_info").offset().top;break;case"ihome":n=92,e=$("#userinfo_wrap").offset().left,a=$("#userinfo_wrap").offset().top}e=e-t.marginLeft+n,a=a-t.marginTop+s;var h=i.notice>1?"more":"single";return feedbackName="feedback_"+i.key+"_"+h+".swf",{key:i.key,feedbackName:feedbackName,width:t.width,height:t.height,marginLeft:e,marginTop:a,zindex:$.getzIndex()}},clearNotice:function(){var i="/tbmall/post/clearAppraiseNotice",t={type:0,tbs:PageData.tbs};$.tb.post(i,t,function(i){i&&0==i.no})},initCallbacks:function(){var i=this,t={};t.finishPlay=function(){i.playList[i.index].wrap.remove(),i.index++,i.buildFlash()},window.MagicProps=t}}});_.Module.define({path:"tbmall/component/NetProxy",sub:{_buyPropUrl:"/tbmall/post/buyprops",_mBuyPropUrl:"/tbmall/post/mbuyprops",_usePropUrl:"/tbmall/post/openProps",_mUsePropUrl:"/tbmall/post/mopenProps",_cancelPropUrl:"/tbmall/post/closeProps",initial:function(){},buyProp:function(t,o){var p=this;t.tbs=PageData.tbs,$.tb.post(p._buyPropUrl,t,o)},mBuyProp:function(t,o){var p=this;t.tbs=PageData.tbs,$.tb.post(p._mBuyPropUrl,t,o)},useProp:function(t,o){var p=this;$.tb.post(p._usePropUrl,{props_id:t,tbs:PageData.tbs},o)},mUseProp:function(t,o){var p=this;t.tbs=PageData.tbs,$.tb.post(p._mUsePropUrl,t,o)},cancelProp:function(t,o){var p=this;$.tb.post(p._cancelPropUrl,{props_id:t,tbs:PageData.tbs},o)}}});_.Module.define({path:"tbmall/component/UseController",requires:["tbmall/component/NetProxy","tbmall/component/Dialog","tbmall/component/util"],sub:{buy_number:0,initial:function(){this.netProxy=this.use("tbmall/component/NetProxy"),this.dialog=this.use("tbmall/component/Dialog"),this.util=this.use("tbmall/component/util")},doUse:function(a,e){var t;$.isNumeric(a)?t=a:(this.wrap=a,t=e.props_id);var o=this;$.stats.track(t,"贴吧商城",PageData.page,"点击使用"),o.netProxy.useProp(t,function(a){var e="";if(0==a.no)e="使用成功!";else switch(a.no){case 2270005:e="哎呀,T豆不足";break;case 2270001:e="已经买过啦";break;case 2270004:e="您已经拥有了更高级的勋章,无需购买本勋章!";break;case 2270006:e="本道具不可重复购买";break;default:e="哎呀,服务器抽风了。请稍等一会~~"}o.wrap&&o.wrap.data("clicked",!1),o.dialog.info('
'+e+"
"),0==a.no&&o.dialog.bind("onInfoClose",function(){$.tb.location.reload()})})},cancelUse:function(a,e){var t;$.isNumeric(a)?t=a:(this.wrap=a,t=e.props_id);var o=this;$.stats.track(t,"贴吧商城",PageData.page,"取消使用"),o.netProxy.cancelProp(t,function(a){var e="";if(0==a.no)e="取消使用成功!";else switch(a.no){case 2270005:e="哎呀,T豆不足";break;case 2270001:e="已经买过啦";break;case 2270004:e="您已经拥有了更高级的勋章,无需购买本勋章!";break;case 2270006:e="本道具不可重复购买";break;default:e="哎呀,服务器抽风了。请稍等一会~~"}o.wrap.data("clicked",!1),o.dialog.info('
'+e+"
"),0==a.no&&o.dialog.bind("onInfoClose",function(){$.tb.location.reload()})})}}});_.Module.define({path:"tbmall/component/HeadPreview",requires:["common/widget/UserHead","tbmall/component/util","props/component/Guide","tbmall/component/UseController","ihome/widget/UserVisitCard"],sub:{initial:function(){this.initUI(),this.initFlashCallbacks(),this.guide=this.use("props/component/Guide"),this.visitCard=this.use("ihome/widget/UserVisitCard"),this.useC=this.use("tbmall/component/UseController"),this.util=this.use("tbmall/component/util")},options:{pngCount:{1090001:3,1090002:5,1090003:5,1090004:4,1090005:5,1090006:5,1090007:5,1090008:4,1090009:5,1090010:5,1090011:5,1090012:4,1090013:5},propIdForProp:{101:"bub",104:"font",108:"card",116:"card",117:"card",118:"card",114:"card",103:"printer"},stylesForAllPreview:{110:"frame",109:"frame"}},_centerElement:function(e){var t=e.height(),i=e.width();e.css({width:i,height:t,top:"50%",left:"50%","margin-left":-(i/2),"margin-top":-(t/2)})},_getData:function(e){$.json.encode($(e).closest("li.item").data("field"));return $(e).closest("li.item").getData()},doPreview:function(e){{var t=this,i=$.json.encode($(e).closest("li.item").data("field")),a=t._getData(e),r=a.props_category,s=a.props_id;t.options.stylesForAllPreview[r]}switch(r){case"107":t.$loading.remove(),t.guide.showMagicGuide(s);break;case"109":t._buildPreviewUI(t.getHtmlFor109(a.props_id)),t.guide.$guideWrap.css({"margin-left":"-175px","margin-top":"-150px"}),t.hasFrame&&t.guide.$guideWrap.css({width:350,height:205,backgroundPosition:"105px 40px"});break;case"110":t._buildPreviewUI(t.getHtmlFor110(a.props_id));break;case"113":if(!PageData.user.is_login)return void _.Module.use("common/widget/LoginDialog");t._buildPreviewUI(t.getHtmlForOther(a.props_id)),t.guide.$guideWrap.css({"margin-left":"-200px"}),t.visitCard.getVisitCardContent({un:PageData.user.user_name,id:PageData.user.portrait,wrap:t.guide.$guideContent.find(".card_preview"),bg_id:a.props_id,callBack:function(){t.guide.$guideContent.find(".card_userinfo_img").one("load",function(){t._centerElement(t.guide.$guideWrap)})}});break;default:t._buildPreviewUI(t.getHtmlForOther(a.props_id))}t._buildChargeInfo(i,a),this.initToBuy(),this.initUse()},_buildChargeInfo:function(e,t){var i=this,a=("0"==t.props_type?t.free_user_level:2,i.util.getFreeInfo(t)),r=i.initBuyInfo(e);i.guide.$guideContent.append(r),"107"!=t.props_category&&i.guide.$guideContent.append(a)},_buildPreviewUI:function(e){var t=this;this.guide.initPreviewUI(),this.guide.$guideContent.html(e);var i=$(e).find(".j_resource_loading");i.length>0&&this.guide.$guideWrap.hide(),i.length>0&&i.one("load",function(){t._centerElement(t.guide.$guideWrap),t.guide.$guideWrap.show()})},initUI:function(){this.$portraitWrap=$('
'),this.$portraitFlash=$('
'),this.$loading=$('

'),this.$portraitWrap.append(this.$portraitFlash).append(this.$loading)},getHtmlForOther:function(e){var t=this,i=e.slice(0,3),a="",r="png",s={1170001:"-1~2",1170002:"0~3",1170003:"2~5",1170004:"5~8",1170005:"10~15"},o={108:'
连续签到神器。麻麻再也不用担心我漏签了!
',117:'
为楼主挽尊,被挽尊用户经验值增加('+(s[e]||"")+")。
",116:'
给女神告白,叫基友回家吃饭,让你的发言掷地有声!
',118:'
会员吧主专属金色置顶,不可隐藏,尊贵身份,立刻彰显。
'};("1040003"===e||"1040011"===e||"1080002"===e)&&(r="gif");var n=["http://tb1.bdstatic.com/tb/cms/tbmall/",t.options.propIdForProp[i],"/pc/"+e,"."+r].join("");return a+="113"===i?['
','

','
'].join(""):['
','

'].join(""),a+=o[i]||"",a+="
"},_initUserHead:function(){this.userHead||(this.userHead=this.use("common/widget/UserHead"))},getHtmlFor109:function(e){var t=this,i="portrait="+PageData.user.portrait+"&props_id="+e+"&png_count="+t.options.pngCount[e],a="/tb/static-tbmall/swf/GIFMaker.swf?t=14010902",r='
"].join(""),"0"==e.props_type?(PageData.user.setpass&&(a.buy_tpl0=a.buy_tpl0.replace("buy_tpl_set_pass","buy_tpl_set_none")),s=$.tb.format(a.buy_tpl0,{price:e.scores,price_unit:e.scores+"T豆/"+a.util.convertToDay(e.time_interval),title:e.name,imgsrc:e.imgsrc,level:e.free_user_level,TbeanCharge:n}),t=480):"1"==e.props_type&&(PageData.user.setpass&&(a.buy_tpl1=a.buy_tpl1.replace("buy_tpl_set_pass","buy_tpl_set_none")),s=$.tb.format(a.buy_tpl1,{price:e.scores,price_unit:e.scores+"T豆/1个",title:e.name,imgsrc:e.imgsrc,cur_t_dou:PageData.scores.scores_total,level:2,TbeanCharge:n}),t=560);var c=220;PageData.user.setpass&&(c=200),a._buyDialog=new $.dialog({html:s,title:"兑换道具",width:t,height:c}),PageData.user.setpass?a._buyDialog.element.find(".buy_tpl_right").append(a.util.getFreeInfo(e)):a._buyDialog.element.find(".buy_tpl_left").append(a.util.getFreeInfo(e)),"1"==e.props_type&&a.bindCountEvent(e.scores),a._buyDialog.element.one("click",".j_confirm_buy",function(){var t={props_id:e.props_id};if("1"==e.props_type&&!a.checkCountError())return void a._buyDialog.element.one("click",".j_confirm_buy",arguments.callee);"1"==e.props_type&&(t.buy_num=a._buyDialog.element.find(".j_count").val()),i>0&&$("#j_charge_checked").length&&$("#j_charge_checked")[0].checked&&(t.use_fetch_scores=$(".Tbean_num").text()),$.stats.track(e.props_id,"贴吧商城",PageData.page,"确定兑换");var s=function(n){n&&$.extend(t,n),a.netProxy.buyProp(t,function(n){var i="",o="",c=a.use("tbmall/widget/TbeanSafe",{json:n,sucCallback:s,content:a});if(!c.needCheck()){if(0==n.no){switch(e.props_category){case"107":o='在贴吧详情页点击

使用';break;case"108":"1080001"==e.props_id&&(o="在签到页面使用");break;case"101":o="你可以在这里使用你的发贴气泡";break;case"104":o="在发贴框中使用";break;case"105":o="您已成功拥有该勋章对应的道具特权,快去使用吧!";break;case"109":case"110":o="在当前页面使用";break;case"113":o="在个人中心使用"}i="1"==e.props_type?"兑换"+t.buy_num+"个
"+n.data.title+"成功!
"+o:"兑换
"+n.data.title+"成功!有效期至
"+a.util.formatDate(n.data.end_time)+""+o}else switch(n.no){case 2270005:i="哎呀,T豆不足";break;case 2270001:i="领取成功`(*∩_∩*)′";break;case 2270004:i="您已经拥有了更高级的勋章,无需兑换本勋章!";break;case 2270006:i="本道具不可重复兑换";break;case 360007:case 2150040:var l=a.use("tbmall/component/captcha_payment",{data:n});return void l.showCaptcha(s);case 2270018:case 1990005:case 2190005:n.data=n.data||{};var r=a.use("tbmall/widget/paykey_dialog",{showType:2,errType:n.no,errTime:n.data.wrongtime});return void r.showDialog(s,function(){},a);default:i="哎呀,服务器抽风了。请稍等一会~~"}0==n.no&&($.inArray(e.props_category,["109","110","114"])>-1||"1080002"==e.props_id)?a.dialog.confirm('
'+i+"
",{button:[{txt:"立即使用",extraclass:"j_nameplate_recast1",callback:function(){a.dialog.close(),"1080002"==e.props_id?a.use("tbmall/widget/ContSignCard"):"1140001"==e.props_id?$(".j_nameplate_recast").trigger("click"):a.useController.doUse(parseInt(n.data.props_id))}},{txt:"稍后使用",callback:function(){a.dialog.close(),$.tb.location.reload()}}]}):0==n.no&&$.inArray(e.props_category,["101"])>-1?(a.dialog.info('
'+i+'
设置为默认气泡
',{title:"购买成功",width:475,height:365,button:"我知道了"}),a.dialog.bind("onInfoClose",function(){$(".tip_operation .tip_check_box").tbattr("checked")?$.ajax({url:"/tbmall/submit/setBub",type:"post",dataType:"json",data:{props_id:e.props_id,tbs:PageData.tbs||PageData.user.tbs},success:function(){$.tb.location.reload()},error:function(){$.tb.location.reload()}}):$.tb.location.reload()})):(a.dialog.info('
'+i+"
"),0==n.no&&a.dialog.bind("onInfoClose",function(){$.tb.location.reload()}))}})};a._buyDialog.close(),s()})}}});_.Module.define({path:"tbmall/widget/NameplateRecast",requires:["tbmall/component/Dialog","tbmall/component/BuyController"],sub:{_cdCount:0,_dialog:null,_npContainer:null,_npId:null,_npArr:[],_timer:null,_recastData:null,initial:function(a,t){this._cdCount=a,this._recastData=t,this._bindEvent()},_bindEvent:function(){var a=this;$("body").on("click",".j_nameplate_recast",function(){var t=$(this).data("nameplate");t=a._formatNpData(t),t.cdCount=a._cdCount;var n=$.tb.format(a._tpl,t);a._dialog=new $.dialog({html:n,title:"铭牌重铸",draggable:!1,holderClassName:"np_dialog",width:550,height:265}),a._npContainer=a._dialog.element.find(".j_container"),a._bindNpEvent()}),$("body").on("click",".j_buy_recast",function(t){if(t.preventDefault(),!$(this).data("clicked")){$(this).data("clicked",!0);var n=a._recastData[0];n=$.extend(n,{name:n.title,imgsrc:n.example_url}),a._dialog.close(),a.use("tbmall/component/BuyController",$(this),n)}})},_tpl:['
"].join(""),_formatNpData:function(a){var t="",n=this,e=$.tb.unescapeHTML(a.title);a.titleArr=[],this._npId=a.props_id;for(var i=0,s=a.pattern.length;s>i;i++)switch(n._npArr[i]=e.charAt(i),parseInt(a.pattern[i],10)){case 1:t+=e.charAt(i);break;case 2:t+='
';break;case 3:t+='
'}return a.fmt_title=t,a},_checkNp:function(){var a=this,t=a._npArr.join(""),n=function(n){var e="",i=a._npContainer.find(".j_dialog_btn");switch(n.no){case 0:e='
',0!=a._cdCount?i.removeClass("disabled"):"";break;case 2270022:e='
此牌可用,去换牌>>',i.addClass("disabled");break;case 2270023:e='
此铭牌已有其他用户使用
',i.addClass("disabled");break;case 2270024:e='
用词不当,请重新输入
',i.addClass("disabled");break;case 2270025:e='
用词不当,请重新输入
',i.addClass("disabled");break;default:e='
有点卡,数据疯狂读取中...
',i.addClass("disabled")}$(".j_np_msg").html(e)};$.get("/tbmall/get/check",{id:a._npId,new_title:t,ie:"utf-8",_:(new Date).getTime()},n)},_bindNpEvent:function(){var a=this;a._npContainer.find(".j_selected").on("click",function(){var t=$(this).data("arr");if(a._npContainer.find(".j_op_container").length>0)a._npContainer.find(".j_op_container").show();else{for(var n=this,e=$(this).data("optional"),i="string"==typeof e?$.parseJSON(e):e,s=a._npContainer.offset().left,l=$(this).offset().left,o='
',r=0,c=i.length;c>r;r++)o+="- '+i[r]+"
";o+='
',a._npContainer.append(o);var d=a._npContainer.find(".j_op_container");d.css("left",l-s-d.width()/2+10),d.find(".j_op_wd").on("click",function(){var e=$(this).data(e);a._npArr[t]=e.op,$(n).text(e.op).removeClass("np_selected").addClass("np_blank"),d.hide(),a._checkNp()})}}),a._npContainer.find(".j_input").on("keyup change paste",function(){var t=$(this).data("arr"),n=$(this).val(),e=function(){$(".j_np_msg").html(""),a._npContainer.find(".j_dialog_btn").addClass("disabled")};return 0==$.trim(n).length?($(this).val(""),a._npArr[t]="",void e()):/[a-zA-Z\u4E00-\u9FA5]/.test(n)?(n=n.toLowerCase(),a._npArr[t]=n,$(this).val(n),a._timer&&clearTimeout(a._timer),void(a._timer=setTimeout(function(){a._checkNp()},500))):($(this).val(""),a._npArr[t]="",void e())}).on("click",function(){$(this).select().css({color:"#333"})}),a._npContainer.find(".j_dialog_btn").on("click",function(){var t=$(this),n=a._npArr.join("");if(!t.hasClass("disabled")){var e=a.use("tbmall/component/Dialog");e.confirm('
铭牌将被修改为: '+a._npArr.join("")+"
"),e.bind("yes",function(){var t=$(this);if(!t.data("clicked")){t.data("clicked",!0);var i={ie:"utf-8",new_title:n,id:a._npId,tbs:PageData.tbs};$.post("/tbmall/post/recast",i,function(a){t.data("clicked",!1),e.close();var n="";switch(parseInt(a.no,10)){case 0:n="铭牌重铸成功";break;default:n="哎呀,服务器抽风了。请稍等一会~~"}e.info('
'+n+"
"),0==a.no&&e.close(),e.bind("onInfoClose",function(){$.tb.location.reload()})})}}),e.bind("no",function(){e.close(),$(this).data("clicked",!1)})}}),a._npContainer.on("click",function(t){var n=t.target;if(!$(n).hasClass("np_op_container")&&!$(n).hasClass("np_selected")&&!$(n).hasClass("np_blank")){var e=a._npContainer.find(".j_op_container");e&&e.hide()}})}}});_.Module.define({path:"tbmall/widget/tshow_out_date_warn",requires:["common/widget/JoinVipDialog"],sub:{initial:function(t){var o=this;this.joinVipDialog=this.use("common/widget/JoinVipDialog"),setTimeout(function(){t.show_pre?o.buildPreHtml.call(o):t.show_suf&&o.buildSufHtml.call(o)},3e3)},buildPreHtml:function(){var t=this,o=$("#tshow_out_date_warn_pre_html").html(),e={html:o,title:"提醒",draggable:!1,width:601};this._dialog=new $.dialog(e),$.cookie("tshow_out_hide",1,{expires:1}),this._dialog.onclose(function(){$.cookie("tshow_out_hide",1,{expires:1})}),this._dialog.element.on("click",".j_join_vip",function(o){o.preventDefault(),t.joinVipDialog.getMemberDialog(),t._dialog.close()})},buildSufHtml:function(){var t=this,o=$("#tshow_out_date_warn_suf_html").html(),e=$("#com_userbar"),i=$("#com_userbar_message"),a=parseInt(e.css("top")),s=parseInt(i.css("top"));$(o).css("height",0).prependTo("body").animate({height:100},500,"swing",function(){$(window).trigger("resize")}),$.cookie("tshow_out_hide",1,{expires:1}),e.parent().hasClass("search_form")?e.parent().hasClass("core_title")&&(e.css({top:6}),i.animate({top:125},500)):(e.animate({top:100+a},500),i.animate({top:125},500)),$(window).on("scroll",function(){$.cookie("tshow_out_hide")||(setTimeout(function(){e.css(e.parent().hasClass("search_form")?{top:a}:e.parent().hasClass("core_title")?{top:6}:{top:100+a})},2),setTimeout(function(){i.hasClass("ui_bubble_wrap_fixed")||i.css({top:125})},10))}),$("#tshow_out_date_warn_close_btn").click(function(){$("#tshow_out_date_warn").animate({height:0},500,"swing",function(){$("#tshow_out_date_warn").remove(),$(window).trigger("resize")}),e.animate({top:a},500),i.animate({top:s},500),$.cookie("tshow_out_hide",1,{expires:1})}),$("#tshow_out_date_warn_btn").click(function(){t.joinVipDialog.getMemberDialog(),$("#tshow_out_date_warn").animate({height:0},500,"swing",function(){$("#tshow_out_date_warn").remove(),$(window).trigger("resize")}),e.animate({top:a},500),i.animate({top:s},500),$.cookie("tshow_out_hide",1,{expires:1})})}}});_.Module.define({path:"pb/widget/PbTrack",sub:{initial:function(){try{var t=this;$(".j_benba_search").click(function(){try{t._sendTrack("吧内搜索点击","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:7}),e}}),$(".j_search_post").click(function(){try{t._sendTrack("全吧搜索","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:8}),e}}),$(".share_thread").mouseover(function(){t._sendTrack("PB一楼分享","PB及FRS统计合项","pb")}),$(".p_sharebar").mouseover(function(){t._sendTrack("PB底部分享","PB及FRS统计合项","pb")});var e=setInterval(function(){$(".tbui_fbar_share").length&&($(".tbui_fbar_share").mouseover(function(){t._sendTrack("PB左侧分享","PB及FRS统计合项","pb")}),clearInterval(e))},200);$("#tofrs_up").click(function(){try{t._sendTrack("PB页返回FRS链接-页首","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:17}),e}}),$("#tofrs_down").click(function(){try{t._sendTrack("PB页返回FRS链接-页尾","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:18}),e}}),$(".tab_forumname").click(function(){try{t._sendTrack("PB页返回FRS主页按钮","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:19}),e}});var c=setInterval(function(){$(".j_lzl_p_sv").length&&($(".j_lzl_p_sv").click(function(){try{t._sendTrack("楼中楼语音按钮","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:22}),e}}),clearInterval(c))},200),a=setInterval(function(){$(".edui-btn-voice").length&&($(".edui-btn-voice").click(function(){try{t._sendTrack("回复框语音按钮","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:28}),e}}),clearInterval(a))},200);$(".v2_tab a").eq(3).click(function(){try{t._sendTrack("PB页精品标签","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:32}),e}}),$(".sign_title_text_bright a").click(function(){try{t._sendTrack("签到框上下的客户端推广链接","PB及FRS统计合项","pb")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:33}),e}})}catch(n){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:n.message||n.description,path:"pb:widget/pb_track/pb_track.js",method:"",ln:35}),n}},_sendTrack:function(t,e,c){$.stats.track(t,e,c,"click")}}});_.Module.define({path:"frs/widget/GuideLoginRegister",sub:{initial:function(e){try{{var t=this;$.cookie("userOfnonStrengthClose")}if(t._selector=e.selector,t._delegate=e.delegate,t._type=e.type,t._show_type=e.show_type,2==t._type)return $.cookie("userOfnonStrengthClose",0,{expires:-1}),void $.cookie("userFromPsNeedShowTab",0,{expires:-1});(0==t._type||1==t._type)&&($.cookie("userFromPsNeedShowTab",1,{expires:0}),1==t._show_type?$("#guide_fc").show(function(){$.stats.track("底部弹窗","PC登录引导","pb","view")}):($("#guide_fc").hide(),$("#guide_attrack").show(),t._initAttrack())),$(".j_guide_login").on("click",function(){try{$.stats.track("底部弹窗_登录按钮","PC登录引导","pb","click"),_.Module.use("common/widget/LoginDialog",["","userBar",function(e){e.returnValue=!1;var t=$.tb.location.getHref();$.stats.track("底部弹窗_登录成功","PC登录引导","pb","click"),-1==t.indexOf("fr_bdps_bottom_login")&&(t=t.indexOf("?")>=0?t+"&fr_bdps_bottom_login=1":t+"?fr_bdps_bottom_login=1"),$.tb.location.setHref(t)},"pctb_1"]);var e=setInterval(function(){var t=$("#passport-login-pop");t.length&&($.stats.track("底部登录弹窗","PC登录引导","pb","view"),t.find(".pass-reglink").click(function(){try{$.stats.track("底部登录弹窗_立即注册","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:62}),e}}),t.find(".pass-button-submit").click(function(){try{$.stats.track("底部登录弹窗_登录","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:66}),e}}),t.find(".pass-fgtpwd").click(function(){try{$.stats.track("底部登录弹窗_忘记密码","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:70}),e}}),t.find(".pass-sms-btn").click(function(){try{$.stats.track("底部登录弹窗_短信","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:74}),e}}),t.find(".close-btn").click(function(){try{$.stats.track("底部登录弹窗_关闭","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:78}),e}}),clearInterval(e))},200);return!1}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:83}),t}});var i="https://passport.baidu.com/v2/?reg&tpl=tb&u="+document.location.href;$(".j_guide_register").tbattr("href",i),$(".j_guide_register").on("click",function(){try{$.stats.track("底部弹窗_注册按钮","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:89}),e}})}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:90}),o}},_initAttrack:function(){$.stats.track("底部弹窗","新用户留存","pb","show"),$(".j_guide_attrack_set_like_btn").on("click",function(){try{$.stats.track("底部弹窗_关注按钮","新用户留存","pb","click"),_.Module.use("common/widget/LoginDialog",["","userBar",function(e){e.returnValue=!1;var t=$.tb.location.getHref();$.stats.track("底部弹窗_登录成功","新用户留存","pb","click"),-1==t.indexOf("fr_bdps_bottom_login")&&(t=t.indexOf("?")>=0?t+"&fr_bdps_bottom_login=1&autolike=1":t+"?fr_bdps_bottom_login=1&autolike=1"),$.tb.location.setHref(t)},"pctb_1"])}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:105}),e}}),$(".j_guide_attrack_demo .close").on("click",function(){try{$(".j_guide_attrack_demo").hide()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:108}),e}}),$(".j_guide_attrack_add_link_btn").on("click",function(){try{$.stats.track("底部弹窗_桌面快捷方式按钮","新用户留存","pb","click");var e="百度贴吧",t="http://tieba.baidu.com"+PageData.forum_url+"&fr=shortcut";try{var i,o,c=2;i=new ActiveXObject("Scripting.FileSystemObject");var n="C:\\Documents and Settings\\All Users\\桌面\\"+e+".url";i.FileExists(n)?($.stats.track("底部弹窗_桌面快捷方式_已存在","新用户留存","pb","click"),alert("快捷方式存在! ")):(o=i.OpenTextFile(n,c,!0),o.WriteLine("[DEFAULT]"),o.WriteLine("BASEURL="+t),o.WriteLine("[InternetShortcut]"),o.WriteLine("URL="+t),$.stats.track("底部弹窗_桌面快捷方式_成功","新用户留存","pb","click"),alert("添加成功! ")),$(".j_guide_attrack_add_link").hide(),$(".j_guide_attrack_split").hide(),$(".j_guide_attrack_add_done").show(),$(".j_guide_attrack_demo").show()}catch(r){alert("快捷方式创建失败,可能浏览器不支持!"),$.stats.track("底部弹窗_桌面快捷方式_失败","新用户留存","pb","click")}}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:138}),s}})},_bindFunc:function(e){var t=this;if($.cookie("userOfnonStrengthClose",1,{expires:1}),$(t._selector).off("click"),_.Module.use("common/widget/LoginDialog",["","userBar",function(e){e.returnValue=!1;var t=$.tb.location.getHref();$.stats.track("翻页弹窗_登录成功","PC登录引导","pb","click"),-1==t.indexOf("fr_bdps_middle_login")&&(t=t.indexOf("?")>=0?t+"&fr_bdps_middle_login=1":t+"?fr_bdps_middle_login=1"),$.tb.location.setHref(t)},"pctb_2"]),!($.browser.msie&&$.browser.version<=6))var i=setInterval(function(){var t=$("#passport-login-pop");if(t.length){$.stats.track("翻页登录弹窗","PC登录引导","pb","view");var o=document.documentElement.clientHeight||document.body.clientHeight,c=(o-442)/2>0?(o-442)/2:0;t.css({position:"fixed",top:c}),$(window).off("resize"),$(window).on("resize",function(){var e=document.documentElement.clientHeight||document.body.clientHeight,i=(e-442)/2>0?(e-442)/2:0;t.css({top:i})}),t.find(".pass-reglink").click(function(){try{$.stats.track("翻页登录弹窗_立即注册","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:178}),e}}),t.find(".pass-button-submit").click(function(){try{$.stats.track("翻页登录弹窗_登录","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:182}),e}}),t.find(".pass-fgtpwd").click(function(){try{$.stats.track("翻页登录弹窗_忘记密码","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:186}),e}}),t.find(".pass-sms-btn").click(function(){try{$.stats.track("翻页登录弹窗_短信","PC登录引导","pb","click")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:190}),e}}),t.find(".close-btn").on("click",function(){try{$.stats.track("翻页登录弹窗_关闭","PC登录引导","pb","click"),$.tb.location.setHref(e)}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/guide_login_register/guide_login_register.js",method:"",ln:195}),t}}),clearInterval(i)}},200)}}});_.Module.define({path:"pb/widget/threadRecommend",requires:["common/component/SlideShow"],sub:{_slideConfig:{target:"#recom_scroll_list .recom_scroll_wrap",nav:"#recom_scroll_list .recom_scroll_navs",interval:5e3,prev:"#recom_scroll_list .recom_scrol_ctrl_l",next:"#recom_scroll_list .recom_scrol_ctrl_r",slide:{speed:400}},initial:function(e){try{this.args=e,e.total>2&&(this.slideShow=this.use("common/component/SlideShow",this._slideConfig),$.stats.track("第1页模块展示量","pb内容推荐","","show",{obj_id:this.args.tid_array[0].join("_")}),$("#recom_scroll_list .recom_scrol_ctrls").show()),this.bindEvents()}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/thread_recommend/thread_recommend.js",method:"",ln:31}),t}},bindEvents:function(){var e=this,t="pb内容推荐";$(".thread_recommend [data-locate]").delegate("a","click",function(){try{var e=$(this).closest("[data-locate]").data("locate"),o=$(this).data("tid");$.stats.track(e,t,{obj_id:o})}catch(r){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:r.message||r.description,path:"pb:widget/thread_recommend/thread_recommend.js",method:"",ln:41}),r}}),$(".thread_recommend .recom_scrol_ctrl").on("click",function(){try{var o=$(this).data("locate");$.stats.track(o,t);var r=e.slideShow.current+1;r=r==e.slideShow.total?0:r;var c="第"+(r+1)+"页模块展示量",a=e.args.tid_array[r].join("_");$.stats.track(c,t,"","show",{obj_id:a})}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"pb:widget/thread_recommend/thread_recommend.js",method:"",ln:53}),s}})}}});_.Module.define({path:"common/component/InterestSmiley",requires:["common/component/PostorService","common/component/image_water","common/component/ScrollPanel"],sub:{path:"http://tb2.bdstatic.com/tb/editor/images/",_imgWaterPath:"http://tb2.bdstatic.com/tb/editor/images/",smileTip:{qw_x:["没图BS","不明觉厉","瞎了狗眼","坑爹","不会爱","躺枪","白富美","不服来辩","对不起"],qw_cat:["catsoul崩溃地说:直到我膝盖中了一箭","catsoul发疯说:我擦","catsoul坏笑地说:你懂的","catsoul奸笑说:这真是极好的","catsoul精神地说:给力!","catsoul纠结地说:你妹","catsoul哭说:感觉不会再爱了","catsoul调皮说:楼下怎么看?","catsoul淫笑说:呵呵"]},smileTextTip:{qw_x:["没图你说个xx","不明觉厉","瞎了狗眼","坑爹","感觉不会再爱了","躺着也中枪","白富美","不服来辩","对不起"],qw_cat:["直到我膝盖中了一箭","我擦","你懂的","这真是极好的","给力!","你妹","感觉不会再爱了","楼下怎么看?","呵呵"]},smileNum:{qw_x:9,qw_cat:9},smilePrev:{qw_x:"qw_x_00",qw_cat:"qw_cat_00"},smileSmallPath:{qw_x:"qw_x",qw_cat:"qw_cat_small"},smileQueen:["qw_cat","qw_x"],smileBrowse:{qw_x:"qw_x_browse",qw_cat:"qw_cat_browse"},smileTemplate:{qw_x:"qw_x_template",qw_cat:"qw_cat_template"},_dialogShow:!1,_layerShow:!1,isValueChange:!0,_isPosting:!1,_width:200,_height:200,version:"?20130427",initial:function(e){var t={type:"editor",smileClass:"t_smile_bg",scrollBar:"",scrollCss:{padding:"0px"},scrollBarHide:function(){},scrollBarShow:function(){},container:"",dataPostor:{}},i=this;this.option=$.extend(!0,t,e),this.manager(),this.postorService=this.use("common/component/PostorService"),this.wrapper=$(".wrap2"),this.bindPostor(),this._imageW=this.use("common/component/image_water"),this._imageW.bind("onComplete",function(e,t){var o=t.response,s=o.info.pic_id_encode,a=(o.info.fullpic_width,o.info.fullpic_height,o.info.pic_water,"http://imgsrc.baidu.com/forum/pic/item/"+s+".jpg");i.postorHandler(a,i._textValue,"configSmile",i._width,i._height),i._progessBar(100,140),i._isPosting=!1}),this._imageW.bind("onError",function(e,t){i._isPosting=!1;var o={image:'

',subMessage:"发贴失败",message:t.errorMessage,dialogSet:{width:410,height:95,title:"发表贴子"}};i._showErrorTip(o,function(){return!0})}),this._imageW.bind("onProgressListen",function(e,t){i.loading.show(),i.dBtn.hide(),setTimeout(function(){i._progessBar(t.percent,140)},200)})},_progessBar:function(e,t){var i=e*t/100,o=this;o.loading.find(".s_progress_bar").width(i)},bindPostor:function(){var e=this;this.postorService.bind("onCheckEroor",function(){e.trigger("onsuccess"),e.destroyLayer()}),this.postorService.bind("onError",function(){e.trigger("onsuccess"),e.destroyLayer(),e.dBtn.show(),e.loading.hide()})},manager:function(){window.InterestSmileyManager?window.InterestSmileyManager.push(this):(window.InterestSmileyManager=[],window.InterestSmileyManager.push(this))},generic:function(){this.render("qw_cat"),this.eventInit()},render:function(e){var t=this.option,i=this,o=t.container,s=i._gSmile(e);i.scrollPanel=i.use("common/component/ScrollPanel",{container:o,padding:i.option.scrollCss.padding,height:193,scrollBarHide:i.option.scrollBarHide,scrollBarShow:i.option.scrollBarShow,content:s})},_gSmile:function(e){var t=this.option,i=this,o="";if("all"==e)for(var s=i.smileQueen,a=0,n=s.length;n>a;a++)for(var r=s[a],l=i.smileNum[r],d=i.smilePrev[r],h=t.smileClass,c=1;l>=c;c++){var g=i.path+"qw_review/"+i.smileyName(d,c,"png");o+='

'}else for(var r=e,l=i.smileNum[r],d=i.smilePrev[r],h=t.smileClass,c=1;l>=c;c++){var g=i.path+"qw_review/"+i.smileyName(d,c,"png");o+='

'}return o},smileyName:function(e,t,i){var o="";return o=e,10>t&&(o+="0"),o=o+t+"."+i},shake:function(e,t,i,o){function s(){a>=0?(n.css({padding:0}),n.css(a%2==0?{paddingLeft:r.easeInOut(0,o,a,i)}:{paddingRight:r.easeInOut(0,o,a,i)}),a--,r.Timer=setTimeout(s,t)):clearTimeout(r.Timer)}var a=e,n=this.wrapper;this.Timer=setTimeout(s,t);var r=this},easeInOut:function(e,t,i,o){var s=i/o*2;return(1>s?Math.pow(s,3):(s-=2)*Math.pow(s,2)+2)*t/2+e},destroyLayer:function(){var e=this;e.layer&&1==e._layerShow&&(clearTimeout(e.Timer),$(".wrap2").css("padding",0),e.layer.stop(),e.layer.hide(),e._layerShow=!1),e.dialog&&e._dialogShow&&(e.dialog.hide(),e._dialogShow=!1),e.imageText&&(e.imageText.hide(),e.imageText.html(""))},eventInit:function(){var e=this.option,t=this.option.container,i=this;t.delegate(".s_image","click",function(){var t=$(this),o=t.data("type"),s=t.data("num"),a=i.smilePrev[o],n=i.path+i.smileBrowse[o]+"/"+i.smileyName(a,s,"gif");i.trigger("click");for(var r=($(document).height(),$(window)),l=r.height()/2-300,d=r.width()/2-500,h="fixed",c=d+270,g=window.InterestSmileyManager,m=0,p=g.length;p>m;m++)g[m].destroyLayer();$.browser.msie&&$.browser.version<7&&(l=$(window).scrollTop(),h="absolute"),i.imageText&&i.imageText.hide();var u=$.getzIndex();i.layer?(i.layer.tbattr("src",n+i.version),i.layer.css({width:1e3,height:1e3,top:l,zIndex:u,left:d,position:h,opacity:.1}),i.layer.tbattr("data-type",o),i.layer.tbattr("data-num",s),i.layer.tbattr("data-isTemplate","no"),i.layer.show(),i._layerShow=!0):(i.layer=$('

'),$("body").append(i.layer),i._layerShow=!0),i.layer.animate({width:400,height:400,opacity:1,left:c},500,function(){$.browser.msie&&$.browser.version<7||($.browser.msie?i.shake(20,30,12,3):"sougou"==$.getBrowser().name?i.shake(20,25,16,4):i.shake(20,25,12,3)),i.renderDialog(l,c)}),$.stats.sendRequest("st_mod=editor&fr=tb0_forum&st_type=interestS&st_value="+e.type)})},_fTip:{isBlock:"您已经被封禁,不能发贴",balv:'
4级头衔以上会员发贴。',old:"抱歉,本吧目前仅限吧务团队及注册满一定时间的老用户发贴",bawu:"抱歉,本吧目前仅限吧务团队发贴",law:"抱歉,根据相关法律法规和政策,本吧目前只能浏览,不能发贴",balv_undefined:"抱歉,本吧目前仅允许一定级别以上会员发帖"},cannotPost:function(e){var t=this;switch(t.trigger("onsuccess"),t.destroyLayer(),e){case"login":return void _.Module.use("common/component/LoginDialog",["","editor"]);case"noUn":return void TbCom.process("User","buildUnameFrame","填写用户名"," ")}var i="您不能进行发贴操作";""!=e&&(i=this._fTip[e]);var o={image:'

',subMessage:"发贴失败",message:i,dialogSet:{width:410,height:95,title:"发表贴子"}};t._showErrorTip(o,function(){return!0})},_showErrorTip:function(e,t){var i='
| '+e.image+' | '+e.subMessage+" |
"+e.message+"
",o=$.dialog.alert(i,e.dialogSet);o.bind("onclose",t)},postorHandler:function(e,t,i,o,s){var a=this.postorService,n=this,r=(this.option.dataPostor,n._getData(e,i,t,o,s));a.postHandler({data:r,type:"reply",success:n.successCallback,context:n,error:n.errorCallback,captchaCloseCallback:function(){n.destroyLayer()}})},_getData:function(e,t,i,o,s){var a=this.option.dataPostor,n=this.postorService,r=$.extend(!0,{},a.data);r.content=UE.utils.html2ubb(n.genericRich({type:t,src:e,width:o,height:s,text:$.tb.escapeHTML(i)})),r.anonymous=0;var l=document.getElementById("sign_id"),d=document.getElementById("useSignName");return d&&d.checked&&l&&(r.sign_id=l.value),r},successCallback:function(e,t){t.trigger("onsuccess"),t.destroyLayer(),t.showSuccessTip()},errorCallback:function(){},showSuccessTip:function(){var e=($(document).height(),$(window)),t=e.scrollTop()+e.height()/2-50,i=e.width()/2-100,o=$.getzIndex(),s=$('
发表成功!
');s.css({top:t,left:i}),s.appendTo($("body")),setTimeout(function(){s.fadeOut(300,function(){s.remove()})},1500)},addBubble:function(e){var t=this;if(!t.bubble){var i={content:"功能即将上线,
敬请期待~",arrow_dir:"down",bubble_css:{top:0,left:50,width:100},arrow_pos:{left:45},attr:" ",wrap:e,closeBtn:!1,level:1,arrowReq:!0},o=new UiBubbleTipBase(i);o.j_bubble.find(".j_content").css({backgroundColor:"white",border:"1px solid #848482",textAlign:"center"}),o.j_bubble.find(".ui_triangle_outter").css({color:"#848482"}),o.j_bubble.find(".ui_triangle_inner").css({color:"white"}),t.bubble=o}},_submit:function(){var e=this.postorService,t=this;if(!t._isPosting){t._isPosting=!0;var i=this.option.dataPostor,o=e.isCanPost(i.canPostor);if(o.canPost){var s=t.layer,a=s.tbattr("data-type"),n=s.tbattr("data-num"),r=t.textInput.val().trim();t._textValue=r;var l=t.smilePrev[a],d=t._imgWaterPath+t.smileTemplate[a]+"/"+t.smileyName(l,n,"gif");if(""==r||r==t.smileTextTip[a][n-1]){var h=t.path+t.smileSmallPath[a]+"/"+t.smileyName(l,n,"gif");t.postorHandler(h,r,"smiley",t._width,t._height),t._isPosting=!1}else t._imageWater(d,r,t.textStyle[a][n-1]),$.stats.sendRequest("st_mod=editor&fr=tb0_forum&st_type=interestS&st_value=zidingyi")}else{var a=o.type;t.cannotPost(a),t._isPosting=!1}}},_imageWater:function(e,t,i){var o=this,s=o.filterStyle(t,i),a={imageUrl:e+o.version,text:{content:t,x:i.x,y:i.y,width:i.width},font:{size:s.size,lineHeight:s.lineHeight,color:i.color,family:"微软雅黑"}};return o._imageW?void o._imageW.merge(a):void 0},textStyle:{qw_x:[{x:180,y:158,width:148,height:126,lineHeight:32,color:"#ffffff",size:14},{x:60,y:155,width:170,height:95,lineHeight:24,color:"#557E90",size:14},{x:212,y:166,width:130,height:86,lineHeight:20,color:"#ffffff",size:14},{x:246,y:127,width:90,height:125,lineHeight:19,color:"#ffffff",size:14},{x:45,y:155,width:180,height:80,lineHeight:20,color:"#557E90",size:14},{x:45,y:164,width:178,height:70,lineHeight:18,color:"#ffffff",size:14},{x:222,y:102,width:130,height:107,lineHeight:21,color:"#557E90",size:14},{x:85,y:145,width:150,height:100,lineHeight:25,color:"#ffffff",size:14},{x:51,y:122,width:160,height:90,lineHeight:25,color:"#557E90",size:14}],qw_cat:[{x:181,y:40,width:180,height:122,lineHeight:32,color:"#000000",size:24},{x:160,y:46,width:195,height:115,lineHeight:30,color:"#000000",size:24},{x:155,y:43,width:201,height:118,lineHeight:30,color:"#000000",size:24},{x:55,y:66,width:303,height:85,lineHeight:30,color:"#000000",size:24},{x:143,y:56,width:208,height:104,lineHeight:26,color:"#000000",size:24},{x:140,y:55,width:217,height:123,lineHeight:28,color:"#000000",size:24},{x:190,y:40,width:179,height:132,lineHeight:33,color:"#000000",size:24},{x:60,y:73,width:300,height:85,lineHeight:28,color:"#000000",size:24},{x:131,y:47,width:212,height:124,lineHeight:31,color:"#000000",size:24}]},filterStyle:function(e,t){var i=e.length,o=(t.lineHeight,t.size,t.width,{lineHeight:t.lineHeight,size:t.size});if(i>0){var s=t.height*t.width,a=s/i;o.lineHeight=Math.ceil(Math.pow(a,.5)),o.size=Math.ceil(1.5*o.lineHeight/2.5)}return o.lineHeight>t.height&&(o.lineHeight=t.height),o.lineHeight
'),o.imageText.html($.tb.escapeHTML(t)),o.imageText.css(e),$("body").append(o.imageText),void o.imageText.show())},g="fixed";$.browser.msie&&$.browser.version<7&&(g="absolute");var m=o.filterStyle(o.textInput.val(),h),p={position:g,zIndex:i,width:h.width,lineHeight:m.lineHeight+"px",left:h.x+t,fontSize:m.size,color:h.color,fontFamily:"微软雅黑",top:h.y+e};"yes"==l?c(p):(s.tbattr("src",d+o.version),s.tbattr("data-isTemplate","yes"),c(p))},renderDialog:function(e,t){var i=this,o=i.layer,s=o.tbattr("data-type"),a=o.tbattr("data-num"),n=i.smileTextTip[s][a-1];return i.sTop=e,i.sL=t,i.imageText&&i.imageText.hide(),i.dialog?(i.dialog.setPosition(t,e+400),i.dialog.element.css({zIndex:$.getzIndex()}),i.loading.find(".s_progress_bar").width(0),i.dBtn.show(),i.loading.hide(),i.zIndex=$.getzIndex(),i.isValueChange=!1,i.textInput.val(n),i.dialog.show(),void(i._dialogShow=!0)):(i.zIndex=$.getzIndex(),i.textInput=$('
'),i.replyBtn=$('
发表回复'),i.cancelBtn=$('
'),i.dBtn=$('
').append(i.textInput).append(i.replyBtn).append(i.cancelBtn),i.loading=$('
客官稍等下,我们正在努力为您生成图片中
'),i.dContent=$("
").append(i.dBtn).append(i.loading),i.replyBtn.click(function(e){i._submit(),e.preventDefault(),e.stopPropagation(),$.stats.sendRequest("st_mod=editor&fr=tb0_forum&st_type=interestS&st_value=send")}),i.textInput.focus(function(){var e=$(this);setTimeout(function(){i._isSelect=!0,e.select()},10)}),i.textInput.bind("mousedown",function(){i._isSelect=!1}),$.subInput(i.textInput,30),i.textInput.keydown(function(e){var t=e||window.event;if(13==t.keyCode)return i._submit(),!1;var o=$.tb.getByteLength(i.textInput.val());return i._isSelect&&o>39&&i.textInput.val(""),i._isSelect=!1,i.showSmileTemplate(i.sTop,i.sL,i.zIndex),!0}),i.textInput.bind("input",function(){return i.isValueChange&&i.showSmileTemplate(i.sTop,i.sL,i.zIndex),i.isValueChange=!0,!0}),i.textInput.bind("propertychange",function(){return i.isValueChange&&i.showSmileTemplate(i.sTop,i.sL,i.zIndex),i.isValueChange=!0,!0}),i.cancelBtn.click(function(){i.trigger("onCancel"),i.destroyLayer()}),i.dialog=new $.dialog({html:i.dContent,modal:!1,escable:!1,showTitle:!1,top:e+400,left:t,closeable:!0,fixed:!0,autoCenter:!1,width:420,height:30,draggable:!1,closeable:!1}),void(i._dialogShow=!0))}}});_.Module.define({path:"common/widget/AsideFloatBar",requires:["common/component/InterestSmiley","props/widget/MagicProps"],sub:{initial:function(t){"undefined"!=typeof PDC&&PDC.mark("c_afbavi"),this.options=t,this.$root=$('
');for(var e=0,a=t.buttons.length;a>e;e++){var i=t.buttons[e];this.addButton(i)}this.$root.appendTo("body");var r=this;r.relocate(),$(window).resize(function(){r.relocate()});var o=PageData.product;if("pb"==o&&(this.$root.find(".tbui_fbar_favor").on("mouseenter",function(){$.stats.track("PB悬浮爱逛的吧","贴吧PC页面优化","pb","click"),$(this).find(".tbui_aside_favor_list a").one("click",function(){$.stats.track("PB悬浮爱逛吧展开吧","贴吧PC页面优化","pb","click")})}),this.$root.find(".tbui_fbar_square").on("click",function(){$.stats.track("秀吧导航","pb_吧右侧导航","pb","click")})),"frs"==o&&this.$root.find(".tbui_fbar_square").on("click",function(){$.stats.track("秀吧导航","frs_吧右侧导航","frs","click")}),"frs"==o||"pb"==o||"pb_bright"==o){if("frs"==o)var s=["秀吧导航","发帖","刷新","分享","爱逛的贴吧","推荐游戏","实验室","返回顶部"];else var s=["秀吧导航","魔法道具","神来一句","分享","爱逛的贴吧","推荐游戏","实验室","返回顶部"];this.$root.delegate(".tbui_aside_fbar_button","mouseenter",function(t){var e=$(t.target),a=e.parent().index();o="pb"==o||"pb_bright"==o?"pb":"frs",$.stats.track(s[a]+"点击量","FRS/PB右侧工具栏统计",o,"click")})}},addButton:function(t){var e=$($.tb.format('
',{btnName:t})),a=this["_"+t];a&&a.call(this,e)&&this.$root.append(e)},relocate:function(){$(window).width()<1105?this.$root.addClass("tbui_afb_compact"):this.$root.removeClass("tbui_afb_compact")},_square:function(t){return t.children().tbattr("href","/show/v"),t.children().tbattr("target","_blank"),!0},_top:function(t){var e=$(window);0==e.scrollTop()&&t.css("visibility","hidden"),t.click(function(){function t(){i=Math.floor(i/2),window.scrollTo(0,i),i>2?a=setTimeout(t,40):(window.scrollTo(0,0),clearTimeout(a))}var a=null,i=e.scrollTop();$.browser.msie?window.scrollTo(0,0):t()});var a,i=!1;return e.bind("scroll",function(){a&&clearTimeout(a),a=setTimeout(function(){e.scrollTop()>0?0==i&&(t.css("visibility","visible"),i=!0):i&&(t.css("visibility","hidden"),i=!1)},500)}),!0},_refresh:function(t){return t.click(function(){return window.Path?window.Path.refresh():$.tb.location.reload(),!1}),!0},_post:function(t){var e=this;return t.children().tbattr("href","#sub"),t.click(function(t){t.preventDefault(),t.stopPropagation(),setTimeout(function(){e.fire("wanna_post")},50)}),!0},_share:function(t){var e=$("#bdshare_tb_l");return 0==e.size()?!1:(e.delayhover({enterDelay:0,leaveDelay:700,mouseenter:function(){t.clearDelayHoverTimer()},mouseleave:function(){e.fadeOut()}}),t.delayhover({enterDelay:300,leaveDelay:700,mouseenter:function(){if(e.is(":visible"))e.clearDelayHoverTimer();else{var a=t.offset();a.top-=1,a.left=a.left-e.outerWidth()+1,e.css(a).fadeIn()}},mouseleave:function(){e.fadeOut()}}).click(function(t){t.preventDefault(),t.stopPropagation()}),!0)},_radar:function(t){var e=this;return t.find("a").append('

'),t.find("a").tbattr({href:$.tb.unescapeHTML(e.options.radarData&&e.options.radarData.link),target:"_blank"}),t.on("mousedown","a",function(){$.stats.track("radar","radar_banner")}),$.browser.msie&&7==$.browser.version&&t.css("marginBottom","-4px"),$.browser.msie&&6==$.browser.version&&(t.append("
"),t.css("marginBottom","-3px")),!0},_tsukkomi:function(t){var e=this;$.browser.msie&&7==$.browser.version&&t.css("marginBottom","-4px"),$.browser.msie&&6==$.browser.version&&(t.append("
"),t.css("marginBottom","-3px"));var a=$('
');return e.interestSmile=this.use("common/component/InterestSmiley",{container:a,smileClass:"t_smile_bg",type:"toolbar",scrollCss:{padding:"9px 0px 0px 0px"},scrollBarHide:function(){a.width(296)},scrollBarShow:function(){a.width(306)},dataPostor:e.options.dataPostor}),e.interestSmile.generic(),t.append(a),t.children("a").click(function(t){t.preventDefault(),t.stopPropagation(),a.is(":visible")?a.fadeOut():(a.fadeIn(),e.interestSmile.scrollPanel&&e.interestSmile.scrollPanel.setHeight(156))}),!0},_favor:function(t){if(0==PageData.user.is_login)return!1;var e=[];if(PageData.user.user_forum_list&&PageData.user.user_forum_list.info&&(e=PageData.user.user_forum_list.info),PageData.user_forumlist&&PageData.user_forumlist.info&&(e=PageData.user_forumlist.info),0==e.length)return!1;$.browser.msie&&6==$.browser.version&&(t.append("
"),t.css("marginBottom","-3px"));var a=$('
');if(e.length>0){var i,r=e,o=!1;r.length<=8?i=r.length:(i=7,o=!0);for(var s=0;i>s;s++){var n={kw:encodeURIComponent(r[s].forum_name),forumName:$.tb.subByte(r[s].forum_name,12)};a.append($.tb.format('
#{forumName}',n))}o&&a.append('
更多>>')}return a.hide().appendTo(t),t.delayhover({enterDelay:300,leaveDelay:700,mouseenter:function(){a.fadeIn()},mouseleave:function(){a.fadeOut()}}).children("a").click(function(t){t.preventDefault(),t.stopPropagation()}),a.delegate("a","mousedown",function(){if(PageData&&PageData.forum&&PageData.product){if($(this).hasClass("ui_text_desc"))return;var t={st_mod:"aside_bar",st_type:"enterba",st_from:PageData.product,st_uid:PageData.user.user_id,st_benba:encodeURIComponent(PageData.forum.forum_name),st_goto:encodeURIComponent($(this).text())};$.tb.Stats.sendRequest("http://tb1.bdstatic.com/tb/img/hive.gif",t)}}),!0},_lab:function(t){t.children().tbattr("target","_blank").tbattr("href","http://tieba.baidu.com/mo/q/topic_page/219_1");var e=$("
");if(t.append(e),$.tb.Storage.remove("close_cm_bubble"),"1"!=$.tb.Storage.get("close_mt_bubble")&&+new Date<+new Date(2014,5,19)){var a={content:"
文字转表情功能上线啦,快来尝鲜啦~",arrow_dir:"right",bubble_css:{top:0,right:50,width:150},wrap:e,closeBtn:!0},i=new UiBubbleTipBase(a);i.bind("onclose",function(){$.tb.Storage.set("close_mt_bubble","1",(new Date).getTime()+6048e5),i.closeBubble()}),i.j_bubble.show()}return!0},_props:function(t){var e=this;return $.browser.msie&&6==$.browser.version&&(t.append("
"),t.css("marginBottom","-3px")),e.props=this.use("props/widget/MagicProps",{wrap:t,propsData:e.options.propsData}),e.props.visible}}});