你目前没有可用的道具了,快去商城购买吧
去购买>>',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 _.Module.use("common/widget/LoginDialog"),void 0;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 a._buyDialog.element.one("click",".j_confirm_buy",arguments.callee),void 0;"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 l.showCaptcha(s),void 0;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 r.showDialog(s,function(){},a),void 0;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]="",e(),void 0):/[a-zA-Z\u4E00-\u9FA5]/.test(n)?(n=n.toLowerCase(),a._npArr[t]=n,$(this).val(n),a._timer&&clearTimeout(a._timer),a._timer=setTimeout(function(){a._checkNp()},500),void 0):($(this).val(""),a._npArr[t]="",e(),void 0)}).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:"common/widget/AsideFloatBar",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.css("marginBottom","-3px").append("
");var a=$('
');return t.append(a),_.Module.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},function(i){e.interestSmile=i,e.interestSmile.generic(),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 _.Module.use("props/widget/MagicProps",{wrap:t,propsData:e.options.propsData},function(e){e.visible?$.browser.msie&&6==$.browser.version&&(t.append("
"),t.css("marginBottom","-3px")):t.css("display","none")}),!0}}});_.Module.define({path:"props/widget/MagicProps",requires:["props/widget/Residual","props/component/Guide"],sub:{initial:function(t){this.$wrap=t.wrap,this.dataObj=t.propsData,this.visible=!1,this.initOptions(),this.loadComponent(),this.buildProps()},initOptions:function(){this.propsOptions={1070001:{key:"worship",name:"魔拜",flashOptions:{width:320,height:390,marginLeft:0,marginTop:0}},1070002:{key:"egg",name:"魔蛋",flashOptions:{width:900,height:600,marginLeft:384,marginTop:70}}},this.mallurl="/tbmall/propslist?category=107",this.poolSize=5;var t=window.navigator.userAgent.match(/chrome/i);this.page=t?$(document.body):$(document.documentElement)},loadComponent:function(){this.residual=this.use("props/widget/Residual"),this.guide=this.use("props/component/Guide")},buildProps:function(){this.initPropsData(),this.propsList.length>0&&(this.visible=!0,this.initPropsUI(),this.bindPropsEvents())},initPropsData:function(){for(var t=this.dataObj.owner||{},i=null,a=null,s=[],e={},o=["1070001","1070002"],r=0;r
'),a=new Array,s=null,e=0;e'),s.count>0?a.push('
'):a.push('
'),a.push(''),a.push(""+s.name+""),s.count>0&&(a.push(''+String.fromCharCode(215)+""),a.push(''+s.count+"")),a.push("
"),a.push("");i.html(a.join("")),i.hide().appendTo(t.$wrap),t.$propsList=i},bindPropsEvents:function(){var t=this;t.$wrap.delayhover({enterDelay:300,leaveDelay:700,mouseenter:function(){t.$propsList.fadeIn(),t.guide.initMagicGuide()},mouseleave:function(){t.$propsList.fadeOut()}}).children("a").click(function(t){t.preventDefault(),t.stopPropagation()}),t.$propsList.delegate(".j_props_btn","click",function(){var i=$(this).data("id"),a=t.propsMap[i];return t.propsObj=a,a.count>0&&("pb"==PageData.product?t.buildPostArea():"ihome"==PageData.product&&t.buildIhomeArea(),t.buildMask(),t.initFlashCallbacks()),!1})},buildIhomeArea:function(){var t={jdom:$("div.userinfo_wrap"),userId:this.dataObj.home_user_id,propsData:this.dataObj.home_user_props,propsType:0},i=$("#headinfo_wrap"),a=i.offset().left,s=i.offset().top,e=a+i.width(),o={marginLeft:a,marginRight:e,marginTop:s,marginBottom:$("body").height()-28};$.extend(t,o),this.limitArea=o,this.areaList=[t]},buildPostArea:function(){for(var t=$("#j_p_postlist"),i=t.find(".l_post"),a=null,s=null,e=[],o=t.offset().left,r=t.offset().top,p=o+t.width(),n=0;n '),i=$('