_.Module.define({path:"tbmall/widget/TbeanSafeAjax",requires:["tbmall/widget/TbeanSafe"],sub:{initial:function(){},ajax:function(a){var e=this,t=a.success||function(){},n=a.data||{},s=function(s){var u=e.use("tbmall/widget/TbeanSafe",{json:s,sucCallback:function(t){var s=$.extend({},n,t),u=$.extend({},a);u.data=s,e.ajax(u)}});u.needCheck()||t(s)};return a.success=s,a.type=a.type||"post",a.dataType=a.dataType||"json",$.ajax(a)},post:function(a,e,t){var n={url:a,data:e,success:t};return this.ajax(n)}}});_.Module.define({path:"tbmall/widget/forumMemberDialog",requires:["tbmall/widget/tbean_safe_ajax"],sub:{opts:{},initial:function(e){var t=this,s={is_show_features:!0,is_show_forum:!0,current_time_order:1,current_option:null,current_time_unit:3,current_forum_id:"",current_forum_name:""};this.opts=$.extend({},s,e),this.tpl_data.forums=this.opts.forums,this.opts.scores=this.opts.scores||PageData.scores,this.safeAjax=this.use("tbmall/widget/tbean_safe_ajax"),this.showDialog({showTitle:!1,width:886,height:t.opts.cnt_height||295,html:t.buildInitHtml()}),t.opts.current_option=$($(".sel_time .j_pertime_unit")[t.opts.current_time_order]),t.opts.current_option.addClass("current_time_unit"),t.bindEvents()},bindEvents:function(){var e=this,t=$(".excharge_bd"),s=$("#customForum");t.delegate(".j_charge_tdou","click",function(t){var o=e.getTimeValue(),a=e.opts.scores,i=a.scores_money+a.scores_other,r=parseInt(5e3*o),n=$("#customTime").val();return t.preventDefault(),e.opts.is_show_forum?e.util._isEmpty($("#customForum").val())?(e.showErrorForum("empty"),void 0):$.trim(n).length>0&&!e.util._isPositiveDigital(n)?(e._printTimeErrorInfo("请输入正确的数值"),void 0):parseInt($.trim(n),10)>120?(e._printTimeErrorInfo("最多充值120个月"),$(this).val(120),void 0):e.opts.isClickByUser?r>i?(e.initTdouNotEnough(i,r),void 0):(e.initBuyMember(),void 0):(e.checkHasForum(s.val(),function(t){e.opts.current_forum_id=t.data.forum_id,e.opts.current_forum_name=t.data.forum_name,r>i?e.initTdouNotEnough(i,r):e.initBuyMember()}),void 0):r>i?(e.initTdouNotEnough(i,r),void 0):(e.initBuyMember(),void 0)}),$(".j_close_excharge").on("click",function(t){t.preventDefault(),e.closeDialog()}),$(".excharge_bd").delegate(".j_pertime_unit","click",function(t){t.preventDefault(),e.changeCurrentOpt($(this),"current_time_unit"),e._close_tip_bubble(),e.changeTdouNum(),$("#customTime").val("")}),$(".excharge_bd").delegate("#customTime","focus",function(){e.changeCurrentOpt($(this).closest(".j_customTime_unit"),"current_time_unit"),e.changeTdouNum()}),$(".excharge_bd").delegate("#customTime","keyup",function(){var t=$(this).val();return $.trim(t).length>0&&!e.util._isPositiveDigital(t)?(e._printTimeErrorInfo("请输入正确的数值"),void 0):parseInt($.trim(t),10)>120?(e._printTimeErrorInfo("最多充值120个月"),$(this).val(120),e.changeTdouNum(),void 0):(e._close_tip_bubble(),e.changeTdouNum(),void 0)}),$(".sel_forum").delegate(".j_forum_unit","click",function(t){t.preventDefault();var o=$(this),a=o.data("forumid"),i=decodeURIComponent(o.text());e.hideErrorForum(),e.opts.current_forum_id=a,e.opts.current_forum_name=i,e.opts.isClickByUser=!0,s.val(i),$(".j_show_more").hasClass("show_more_forums_list")&&$(".j_show_more").removeClass("show_more_forums_list")}),$(".sel_forum").delegate("#customForum","keyup",function(){var t=e.opts.current_forum_name,o=$.trim(s.val());t!==o&&(e.opts.isClickByUser=!1),""===o&&e.hideErrorForum()}),$(".sel_forum").delegate("#customForum","blur",function(){var t=s.val();return e.util._isEmpty(t)?(e.showErrorForum("empty"),void 0):$.trim(t).length>0&&!e.util._isPositiveDigital(t)?(e._printTimeErrorInfo("请输入正确的数值"),void 0):parseInt($.trim(t),10)>120?(e._printTimeErrorInfo("最多充值120个月"),$(this).val(120),void 0):(e._close_tip_bubble(),e.checkHasForum(t),void 0)}),$(".sel_forum").delegate(".j_get_more_f","click",function(e){e.preventDefault(),$(".j_show_more").toggleClass("show_more_forums_list")}),$(".excharge_bd").delegate(".j_get_tdou","click",function(t){t.preventDefault(),e.closeDialog(),_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()})})},initTdouNotEnough:function(e,t){var s=this,o=s.getTimeValue(),a={month:o,baidu_charge:t,tdou_num:e};s.closeDialog(),s.chargeFailFn($.extend({},a,{f_name:s.opts.current_forum_name}))},initBuyMember:function(){var e=this,t=e.getTimeValue(),s=PageData.user?PageData.user.mParr_props?PageData.user.mParr_props.forum_member?PageData.user.mParr_props.forum_member[e.opts.current_forum_id]:null:null:null,o=function(){e.safeAjax.ajax({url:"/tbmall/mall/buyForumMember",data:{tbs:PageData.tbs,forum_id:e.opts.current_forum_id,buy_num:t},success:function(t){e.closeDialog(),e.chargeSuccessFn(t)}})},a=PageData.user?PageData.user.mParr_props?PageData.user.mParr_props.level?2===PageData.user.mParr_props.level.props_id?PageData.user.mParr_props.level.end_time:0:null:null:null,i=s?s.end_time:0,r=i||a,r=Math.max(Math.max(i,a),1*new Date/1e3);if(t>=24||r&&parseInt(r)+31*t*24*60*60-1*new Date/1e3>=64281600){var n=new $.dialog({html:['','
','

开通【'+e.opts.current_forum_name+"吧特权包】

",'

特权时长最多连续兑换24个月,超出部分只赠送经验和道具。

','

本次兑换需要'+5e3*t+"

",'
','取 消','确 认',"
","
"].join(""),width:460,height:170,showTitle:!1}),u=n.element;u.on("click",".j_close_excharge",function(e){e.preventDefault(),n.close()}).on("click",".j_accept_excharge",function(e){e.preventDefault(),o(),n.close()})}else o()},changeCurrentOpt:function(e,t){var s=this;s.opts.current_option&&s.opts.current_option.removeClass(t),s.opts.current_option=e,s.opts.current_option.addClass(t)},changeTdouNum:function(){var e=this;$(".sel_tdou .tdou_num").text(5e3*e.getTimeValue())},getTimeValue:function(){var e=$.trim($("#customTime").val());return this.opts.current_option&&this.opts.current_option.data("value")?this.opts.current_option.data("value"):0===e.length&&""===e?0:e},chargeSuccessFn:function(e){var t=this,s={0:{html:t.buildSuccessHtml(e.data),height:456},2270046:{html:t.buildEnoughHtml(),height:216}};0==e.no&&(t.opts.scores=$.extend(t.opts.scores,e.data.left_scores)),t.showDialog({width:537,height:s[e.no].height,showTitle:!1,html:s[e.no].html}),$(".j_close_excharge, .j_excharge_confirm").on("click",function(e){e.preventDefault(),t.closeDialog(),$.tb.location.reload()})},chargeFailFn:function(e){var t=this;t.showDialog({width:537,height:226,showTitle:!1,html:t.buildFailHtml(e)}),$(".j_close_excharge").on("click",function(e){e.preventDefault(),t.closeDialog()}),$(".j_get_tdou").on("click",function(e){e.preventDefault(),t.closeDialog(),_.Module.use("common/widget/tcharge_dialog")})},buildInitHtml:function(){var e=this,t=baidu.template,s=e.opts.is_show_forum?"兑换特权包":"兑换【"+e.opts.current_forum_name+"吧】特权包";return['','
',$.tb.format(e.tpl.hd,{title:s}),"
",'
','
',e.tpl.bd_lp_t,e.opts.is_show_features?t(e.tpl.features,e.tpl_data):"","
",'
',e.opts.is_show_forum?t(e.tpl.bd_rp_forum,e.tpl_data):"",t(e.tpl.bd_rp_time,e.tpl_data),'

特权包时长(累计超级会员)最多连续24个月,超出部分只赠送经验和道具。

',$.tb.format(e.tpl.bd_rp_tdou,{tdou_num:5e3*e.opts.current_time_unit}),e.tpl.bd_rp_btn,"
","
"].join("")},buildSuccessHtml:function(e){{var t=this;baidu.template}return['','
',$.tb.format(t.tpl.hd,{title:"兑换【"+t.opts.current_forum_name+"吧】特权包"}),"
",'
',$.tb.format(t.tpl.charge_success,$.extend(e,{end_time:t.util._getDate(e.end_time)})),"
"].join("")},buildEnoughHtml:function(){return['','
','

您已开通25个吧的特权包,达到特权包数量上限

','

立即开通贴吧会员,尽享贴吧特权无上限

','开通超级会员',"
"].join("")},buildFailHtml:function(e){var t=this;return['','
',$.tb.format(t.tpl.hd,{title:"兑换【"+t.opts.current_forum_name+"吧】特权包"}),"
",'
','
',t.tpl.bd_lp_t,"

时长:"+e.month+"个月

","
",'
',$.tb.format(t.tpl.charge_fail,e),"
","
"].join("")},tpl_data:{forums:null,features:[{type:"红色标题"},{type:"经验加速"},{type:"直送经验"},{type:"补签卡",num:"1"},{type:"魔拜",num:"1"},{type:"魔蛋",num:"1"}],bd_rp_time:[1,3,6,12]},tpl:{hd:'

#{title}

',bd_lp_t:['
',"
【特权包】
",'','

5000/月

',"
"].join(""),features:['"].join(""),bd_rp_forum:['
','请选择吧:','
','吧','请选择一个吧','该吧不存在',"
",'
',"<%if (forums.length <= 6) {%>","<%for(var i = 0; i < forums.length; i++) {%>",'<%=forums[i]["f_name"]%>',"<%}%>","<%}else {%>",'','更多','关闭',"","<%for(var i = 0; i < 6; i++) {%>",'<%=forums[i]["f_name"]%>',"<%}%>",'
',"<%for(var i = 6; i < forums.length; i++) {%>",'<%=forums[i].f_name%>',"<%}%>","
","<%}%>","
","
"].join(""),bd_rp_time:['
','请选择时长:','',"<%for(var i = 0; i< bd_rp_time.length; i++){%>",'',"<%=bd_rp_time[i]%>个月",'',"","<%}%>",'','个月','',"","","
"].join(""),bd_rp_tdou:['
','需要T豆:','#{tdou_num}',"
"].join(""),bd_rp_btn:['立即兑换','

超级会员免费使用特权

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

您已经成功兑换【#{forum_name}吧特权包】

','

有效期至#{end_time}

',"
",'",'

','详细了解特权','关闭',"

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

开通【#{f_name}】#{month}个月

','

该特权需要#{baidu_charge}

','

当前您仅有#{tdou_num}

',"
",'获取T豆'].join("")},showErrorForum:function(e){$(".error_forum_tip").hide(),$("."+e+"_forum_tip").css("display","inline-block")},hideErrorForum:function(){$(".error_forum_tip").hide()},checkHasForum:function(e,t){var s=this;$.post("../get/checkForum",{forum_name:encodeURIComponent(e),tbs:PageData.tbs}).done(function(e){0===e.no&&(0===e.data.forum_id&&null===e.data.forum_name?s.showErrorForum("hasNot"):(s.hideErrorForum(),$.isFunction(t)&&t(e)))})},showDialog:function(e){this._dialog=new $.dialog(e)},closeDialog:function(){this._dialog&&this._dialog.close()},_build_tip_bubble:function(e){var t=this,s={content:e,arrow_dir:"up",bubble_css:{top:t.opts.is_show_forum?124:52,right:45,width:130,"z-index":9999},arrow_pos:{left:10},attr:"",wrap:$(".sel_time"),closeBtn:!0};this.opts.tip_bubble=new UiBubbleTipBase(s);var o=this.opts.tip_bubble;o.showBubble(),o.bind("onclose",function(){t._close_tip_bubble()})},_close_tip_bubble:function(){this.opts.tip_bubble&&$(".ui_bubble_wrap").hide()},_show_tip_bubble:function(){this.opts.tip_bubble&&$(".ui_bubble_wrap").show()},_printTimeErrorInfo:function(e){this.opts.tip_bubble?this._show_tip_bubble():this._build_tip_bubble(e)},util:{_isEmpty:function(e){return 0===$.trim(e).length},_isPositiveDigital:function(e){return/^[1-9]+[0-9]*]*$/.test(e)},_getDate:function(e){var t=new Date(1e3*e),s=t.getFullYear(),o=t.getMonth()+1,a=t.getDate();return s+"年"+o+"月"+a+"日"}}}});_.Module.define({path:"user/widget/myCurrentForum",requires:["common/widget/JoinVipDialog","tbmall/widget/forumMemberDialog"],sub:{initial:function(){this.joinVipDialogInstance=this.use("common/widget/JoinVipDialog"),this.user=PageData.user,this.forum=PageData.forum,this.bindEvents()},bindEvents:function(){var e=this;$(".user_level .badge, .user_level .badge_block").bind("click",function(){return window.open("/f/like/level?kw="+PageData.forum.name_url+"&lv_t=lv_nav_intro"),!1}),$(".user_level .exp_bar").bind("click",function(){return window.open("/f/like/level?kw="+PageData.forum.name_url+"&lv_t=lv_nav_who"),!1}),$(".user_level").on("click",".j_exp_speedup",function(n){if(n&&n.preventDefault(),e.user.mParr_props&&e.user.mParr_props.level&&e.user.mParr_props.level.props_id>0&&1e3*e.user.mParr_props.level.end_time>+new Date)return e.joinVipDialogInstance.getMemberDialog(),!1;new $.dialog({html:'

开通高级会员,获签到6倍经验!

立即开通了解会员
',title:"提示",width:500});return $(".j_join_vip").click(function(n){n&&n.preventDefault(),e.joinVipDialogInstance.getMemberDialog()}),!1}),$(".j_beFMember").on("click",function(n){n.preventDefault();var r=($(this),{scores_money:0,scores_other:0});e.use("tbmall/widget/forumMemberDialog",{is_show_features:!1,is_show_forum:!1,current_forum_id:e.forum.forum_id,current_forum_name:e.forum.forum_name,scores:e.user.Parr_scores?e.user.Parr_scores:r,cnt_height:225,callback:function(){$.tb.location.reload()}})}),$(".fMember_cnt").on("mouseover",function(){$(".feature_panel").is(":visible")||$(".feature_panel").show()}).on("mouseout",function(){$(".feature_panel").hide()})}}});_.Module.define({path:"common/widget/wallet_dialog",requires:["common/component/Card","common/component/JsPager"],sub:{_dialog:null,_html:null,_pushPager:null,_popPager:null,_otherPopPager:null,_options:null,_pager_option:{container:null,amount:3,current:1,total:0,mode:0,showDisableItem:!0,template:{prev:'<',next:'>',prev_disable:'<',next_disable:'>',head:"",tail:"",head_disable:"",tail_disable:""},classname:{wrapper:"tbui_js_pager wallet_js_pager",normal:"normal",current:"current",prev:"prev j_wallet_list_prev",next:"next j_wallet_next_prev",status:"status",prev_disable:"prev_disable",next_disable:"next_disable"}},initial:function(){},show:function(a){var l=this;l._options=a||{},l._buildCard()},hide:function(){this._dialog&&this._dialog.close()},_buildCard:function(){var a=this;$.ajax({url:"/tbmall/history?ie=utf8&c=1&pn=1&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(l){if(0===l.no){a._buildInitHtml(l.data.user);var t={html:a._html,title:"我的T豆钱包",draggable:!1,width:700,hideOnclose:!1};a._dialog=new $.dialog(t),a._buildPager(1,$("#wallet_dialog_msg_tbmall_pop_pager"),a._popPager,a._popChange,l),a._buildPager(1,$("#wallet_dialog_msg_other_pop_pager"),a._otherPopPager,a._otherPopChange),a._buildPager(1,$("#wallet_dialog_msg_push_pager"),a._pushPager,a._pushChange),$("#wallet_dialog_tab").on("click",".j_wallet_dialog_tab_item",function(a){var l=$(a.currentTarget);$(".j_wallet_dialog_tab_item").removeClass("wallet_dialog_tab_current"),l.addClass("wallet_dialog_tab_current");var t=l.tbattr("attr-show");$(".j_wallet_dialog_msg_list").hide(),$(t).show()}),$("#wallet_dialog_return").on("click",function(a){a.preventDefault(),$("#wallet_dialog_main").show(),$("#wallet_dialog_rules").hide()}),$("#wallet_dialog_medal").on("click",".j_wallet_dialog_medal_btn",function(l){l.preventDefault(),_.Module.use("common/widget/JoinVipDialog",[],function(a){a.getMemberDialog()}),a.hide()}),$("#j_wallet_tcharge_dialog").on("click",function(){a.hide(),_.Module.use("common/widget/tcharge_dialog")})}}})},_getOrderStatus:function(a){var l={0:"支付未完成!",1:"支付成功,商品兑换中!",2:"兑换成功",3:"兑换失败,T豆已退还",4:'兑换超时,联系管理员'};return l[a]},_otherPopChange:function(a,l){var t=this,e=5;$.ajax({url:"/tbmall/getThirdOrder?ie=utf8&c="+e+"&pn="+a+"&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(s){0===s.no&&(t._buildOtherPopPage.call(t,s,a),l(Math.ceil(s.data.total_count/e)))}})},_buildOtherPopPage:function(a,l){for(var t=a.data.order_info||[],e=[],s=0;s'),e.push('
订单号:'+_.order_id+","+this._getOrderStatus(o)+"
"),e.push('
您获取【'+$.tb.subByte(_.goods_name,24,"")+"】商品,"),e.push('消费了'+_.tdou_num+"T豆
"),e.push(''+n+""),e.push("")}0==t.length&&1==l&&(e.push('
'),e.push("您还没购买过东西哦~,
贴吧新玩法从酷炫特权道具开始。
"),e.push('进入商城购买>>'),e.push("
")),e=e.join(""),$("#wallet_other_pop_list_main").html(e)},_popChange:function(a,l,t){var e=this,s=10;return t?(e._buildPopPage.call(e,t),void l(Math.ceil(t.data.total_count/s))):void $.ajax({url:"/tbmall/history?ie=utf8&c="+s+"&pn="+a+"&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(t){0===t.no&&(e._buildPopPage.call(e,t,a),l(Math.ceil(t.data.total_count/s)))}})},_formatDateTime:function(a){var l=a||Date.now(),t=[];return t.push(l.getFullYear()+"年"),t.push(parseInt(l.getMonth()+1)+"月"),t.push(l.getDate()+"日 "),t.push(l.getHours()+":"),t.push(l.getMinutes()),t=t.join("")},_buildPopPage:function(a,l){for(var t=a.data.order_info||[],e=[],s=0;s'),e.push('您消费了'+_.scores+"T豆,");var o=0==_.props_id.indexOf("105")?"购买":"兑换";e.push(o+'了道具'+_.props_name+""),e.push(''+n+""),e.push("")}0==t.length&&1==l&&(e.push('
'),e.push("您还没购买过东西哦~,
贴吧新玩法从酷炫特权道具开始。
"),e.push('进入商城购买>>'),e.push("
")),e=e.join(""),$("#wallet_tbmall_pop_list_main").html(e)},_pushChange:function(a,l){var t=this,e=5;$.ajax({url:"/tbmall/bwsdubiorder?ie=utf8&c="+e+"&pn="+a+"&_t="+(new Date).valueOf(),type:"get",dateType:"json",success:function(s){0===s.no&&(t._buildPushPage.call(t,s,a),l(Math.ceil(s.data.total_num/e)))}})},_buildPushPage:function(a,l){for(var t=a.data.order||[],e=[],s=0;s'),e.push('
订单号:'+_.order_id+"
"),e.push('消费'+_.db_money/100+"百度点券"),e.push("购买【贴吧印记】"),parseInt(_.given_scores)&&e.push('获赠'+o+"T豆"),e.push(''+n+""),e.push("")}0==t.length&&1==l&&(e.push('
'),e.push("您还没有T豆充值记录,
T豆可以购买贴吧会员以及众多酷炫特权道具。
"),e.push('查看特权道具>>'),e.push("
")),e=e.join(""),$("#wallet_push_list_main").html(e)},_buildPager:function(a,l,t,e){var s=this;"function"==typeof e&&e.call(s,a,function(_){if(!(1>=_)){t=s.use("common/component/JsPager",$.extend(s._pager_option,{current:a,total:_,container:l})),t.bind("pageChange",function(a,_){s._buildPager.call(s,_,l,t,e)});var i=['
','','跳转',"
"].join(""),n='
共'+_+"页
";$(n).prependTo(l);var o=$(i);o.on("click",".j_wallet_pager_skip_btn",function(i){i.preventDefault();var n=parseInt(o.find(".j_wallet_pager_skip_text").val());return n>_||0>=n?void o.find(".j_wallet_pager_skip_text").val(a):void s._buildPager.call(s,n,l,t,e)})}})},_buildInitHtml:function(a){var l=this,t=a.Parr_scores||[],e=a.Parr_props&&a.Parr_props.level?a.Parr_props.level:[],s=e.end_time?parseInt((new Date).valueOf()/1e3)>e.end_time?0:e.props_id:0,_=a.setpass,i=[];i.push('
'),s?1==e.props_id?(i.push('会员专属特权'),i.push('续费')):(i.push('会员专属特权'),i.push('续费')):(i.push('开通会员'),i.push('尊享特权')),i.push("
"),i=i.join("");var n=this._getInfoHtml(t,_),o=this._getIntroHtml(),r=this._getMsgHtml(),d=this._getRuleHtml(),p=['
','
',n,'
',i,o,"
","
",r,"
",d];l._html=p.join("")},_getIntroHtml:function(){var a=['"].join("");return a},_parseInt:function(a){return a=parseInt(a),a>0?a:0>=a?a:0},_getInfoHtml:function(a,l){var t=this._parseInt(a.scores_money),e=this._parseInt(a.scores_other),s=this._parseInt(t+e),_=['"].join("");return _},_getMsgHtml:function(){var a=['
','",'
','
','
    ',"
",'
','
',"
",'
','
    ',"
",'
','
',"
",'
','
    ',"
",'
','
',"
","
","
"].join("");return a},_getRuleHtml:function(){var a=['
','返回我的T豆钱包>',"

","

1.豆票说明


","

豆票可以购买部分贴吧T豆商城商品,具体可见商城购买时提示。


","

豆票可作为部分贴吧商品(包括贴吧会员)的抵价券。


","

2.在线时间


","

用户在贴吧正常在线(有浏览器行为),即可按在线的时长获得对应的豆票


","","",'',"","",'','',"","","",'',"","","",'',"","","",'',"","","
在线时长豆票获取数量豆票获取日上限
10分钟10100
30分钟20
50分钟30
90分钟40

",'

说明:在关注的吧内,右侧个人信息栏中开启在线礼包,即可获得奖励豆票。


','
',"

3.随机彩蛋



","

浏览贴吧或浏览其他会员的主页,都有机会获得豆票彩蛋,每日上限170豆票。


","

4.发贴回贴


","

用户每天的发贴/回贴行为都可获得一定的豆票


","","",'',"","",'','',"","","",'',"","","",'','',"","","
发贴/回贴获得豆票豆票获取日上限
PC首次发贴1015
PC首次回贴5
多次发贴1/贴(PC)
2/贴(移动端)
10

",'

说明:每天发贴的计算起止时间为00:00--23:59


',"

5.热门贴奖励


","

用户所发主题贴达到热门贴要求,可获得奖励豆票,最高可达20豆票。


",'

热门贴说明:有效回复达到一定数量,具体数量由所在吧的活跃用户数决定。


','

(即大型贴吧的热门贴所需回复数大于小型贴吧)


',"

5.移动端发贴回贴


","

在移动端登录后活跃(发贴,回贴)即可获得15豆票/天,此项与第3项奖励不冲突。


","

豆票上限说明


","

1.活跃获取豆票每日总获取上限为330豆票/天


","

2.活跃豆票获取上限为8000,若无消耗将不再获得活跃豆票

","
"].join("");return a}}});_.Module.define({path:"common/widget/LoginDialog",sub:{_config:{apiOpt:{staticPage:"http://"+$.tb.location.getHost()+"/tb/static-common/html/pass/v3Jump.html",product:"tb",charset:"GBK",u:"",memberPass:!0,safeFlag:0},cache:!1,img:"",onLoginSuccess:function(t){t.returnValue=!1,$.stats.sendRequest("st_type=login_succeed&fr=tb0&st_pos="),$.tb.location.reload()},onSubmitStart:function(){$.stats.sendRequest("st_type=login_click&fr=tb0&st_pos=")},registerLink:"https://passport.baidu.com/v2/?reg&tpl=tb&u=http://tieba.baidu.com",tangram:!0},initial:function(t,s,i){var o=this,a=1;if(o._config.apiOpt.u="string"==typeof t&&""!=t?t:$.tb.location.getHref(),"string"==typeof s){switch(s){case"userBar":a=1;break;case"editor1":case"lzl":a=2;break;case"editor":a=3;break;case"lzonly":a=4;break;case"ilike":a=5;break;default:a=1}o._config.img="http://tb2.bdstatic.com/tb/static-common/img/passport/logindlg_pic"+a+".png"}else o._config.img="http://tb2.bdstatic.com/tb/static-common/img/passport/logindlg_pic"+a+".png";PageData&&(o._config.apiOpt.isQuickUser=PageData.is_quick_user||0),i&&(o._config.onLoginSuccess=i),function(t){var s="undefined"!=typeof Env&&Env.server_time?Env.server_time:(new Date).getTime();t.JsLoadManager.use(["http://passport.bdimg.com/passApi/js/uni_login_wrapper.js?cdnversion="+Math.floor(s/6e4),"http://passport.bdimg.com/passApi/js/wrapper.js?cdnversion="+Math.floor(s/6e4)],function(){t.passPopInstance||(t.passPopInstance=passport.pop.init(o._config)),t("#passport-login-pop").find(".pass-login-pop-img img").tbattr("src",o._config.img),t.passPopInstance.show(),setTimeout(function(){t("#passport-login-pop").find("input.pass-button-submit").tbattr("alog-alias","login")},1e3)},!0,"utf-8")}(window.jQuery)}}});_.Module.define({path:"common/widget/Tdou",requires:["common/widget/Tdou/TdouView","common/widget/Tdou/TdouViewAutoRedirect"],sub:{initial:function(){this.view=this.use("common/widget/Tdou/TdouView"),this.autoDirect=this.use("common/widget/Tdou/TdouViewAutoRedirect")},factory:function(e,t){var o="",i="",u=0,c=0,d=6,n=0;switch(e){case"get_icon":o=t.consumption_path,i=t.desc,u=t.current_need_tdou,this.view.createMain(o,i,u);break;case"auto_direct":o=t.consumption_path,i=t.desc,u=t.current_need_tdou,c=t.goods_cost_tdou||0,d=t.pay_type,n=t.tbs,this.autoDirect.createMain(o,i,u,c,d,n);break;case"payment":}}}});_.Module.define({path:"common/widget/tchargeDialog",requires:["common/widget/Tdou"],sub:{initial:function(t){var e=this,i=this.use("common/widget/Tdou");t&&t.chargeType&&"platform"==t.chargeType?i.factory("payment",t):(t&&(e.consumption_path=t.consumption_path,e.desc=t.desc,e.current_need_tdou=t.current_need_tdou,e.is_direct_cashier=t.is_direct_cashier),t&&e.is_direct_cashier?i.factory("auto_direct",t):i.factory("get_icon",e.consumption_path||""))},_tbmallCashier:function(){var t=window.open("");$.get("/tbmall/getPayUrl?terminal=pc&pay_type=2",function(e){e.data&&(t.location.href=e.data)})}}});_.Module.define({path:"user/widget/tbSpam",requires:[],sub:{initial:function(){$("body").append($("#tb_spam_notice_html").html())}}});_.Module.define({path:"user/widget/myTieba",requires:["common/widget/wallet_dialog","common/widget/Card","common/widget/tcharge_dialog"],sub:{config:{url:{dolike:"/f/like/commit/add",undolike:"/f/like/commit/delete",closetip:"/f/like/commit/notice/delete"}},initial:function(e){var i=this;i.user=PageData.user,i.forum=PageData.forum,i.balvInfo=e.balvInfo,i.style=e.style||"",i.isBySys=e.isBySys||!0,i.scoreTip=null,i.daysTofree=0,i.block_bubble=null,i.product=e.product||null},init:function(){var e=this;e.user.forbidden?e.daysTofree=e.user.forbidden.days_to_free:e.user.balv&&(e.daysTofree=e.user.balv.days_tofree),-1!=$.inArray(e.product,["frs","pb"])&&(_.Module.use("ueglibs/widget/Ban",[],function(i){e.BanLib=i}),this.user.is_login&&e.showOfflineCard()),this.user.is_login&&(this.bindEvents(),$(".user_profile .sign_highlight").length>0&&this.show_orange_tip(),this.showNewpropsTip()),this.dolikeEvent()},showOfflineCard:function(){var e=this,i=1*new Date;i>1408032e6||$.tb.Storage.get("balv_tdou_update")>i||(this.offline_card=this.use("common/widget/Card",{content:'',clazz:"doupiao_offline",arrow_dir:"left",card_css:{width:172,"z-index":1010,left:198,top:9},arrow_pos:{left:-7,top:20},wrap:$(".user_profile"),card_leave_display:!0}),this.offline_card._j_card.on("click",".j_close",function(){$.tb.Storage.set("balv_tdou_update",i+864e5),e.offline_card._j_card.remove()}).on("click",".j_link",function(){$.tb.Storage.set("balv_tdou_update",i+864e5),e.offline_card._j_card.remove()}),this.offline_card.showCard())},bindEvents:function(){var e=this;$("#user_info").on("click",".j_score_num",function(i){i.preventDefault(),e.getInstance("common/widget/wallet_dialog").show()}),$(".userliked_ban_content").on("click.bawuAppealLink",".j_appealLink",function(){$.stats.track("balvAppealLink","uegCount","bawuAppeal","click")}),$(".userlike_blacked").bind("mouseover",function(){e.show_black_tip($(this))}),$(".userlike_prisoned").bind("mouseover",function(){e.daysTofree>0&&e.daysTofree<360?e.show_shortblock_tip($(this),e.daysTofree,e.isBySys?"系统":"吧主",e.isBySys?"system":"bawu"):e.show_block_tip($(this))}),$("body").delegate(".tbmall_tip_close","click",function(){return $("#tbmall_tip_card").remove(),e.tbmallTip=null,$.cookie("close_tbmall_tip","1",{expires:365}),!1}),$("#j_tcharge_dialog").on("click",function(){e.use("common/widget/tcharge_dialog")}),(this.user.balv&&this.user.balv.has_liked||this.user.is_like)&&(PageData.is_ipad?$("a.p_balv_btnmanager").show():$(".balv_mod").hover(function(){$(".p_balv_btnmanager").show()},function(){$(".p_balv_btnmanager").hide()}))},dolikeEvent:function(){var e=this;$(".balv_dolike_comforum,.balv_dolike_star").bind("click",function(){return e.user.is_login?e.user.balv&&e.user.balv.is_block||e.user.forbidden&&e.user.forbidden.isForbid?e.showAlert(e.BanLib.render("balvLike")):e.user.balv&&e.user.balv.is_black||e.user.is_black?e.showAlert("你被吧主加入本吧黑名单,暂时不能进行操作"):e.dolike():_.Module.use("common/widget/LoginDialog",["","ilike"]),!1})},showAlert:function(e){var i='
'+e+"
";$.dialog.open(i,{title:"操作失败",width:380})},howtojoin:function(){$.dialog.alert("
点击右侧上方“”
即可加入本吧,点亮头衔,从初级粉丝开始成长!
",{title:"如何加入",width:325})},dolike:function(){var e=this;if(this.user.is_login&&this.user.no_un)return TbCom.process("User","buildUnameFrame","填写用户名","有用户名才能点亮“我关注”,赶快给自己起一个吧~"),!1;var i={fid:this.forum.forum_id,fname:this.forum.forum_name,uid:this.user.name_url,ie:"gbk",tbs:PageData.tbs};$.post(this.config.url.dolike,i,function(i){if(i&&0==i.no)_.Module.use("ucenter/widget/LikeTip",["",!1,{index:i.data.ret.index,like_no:i.like_no}]);else{var t="";t=8==i.no||9==i.no?e.BanLib.render("balvLike"):220==i.no?"你被吧主加入黑名单,暂时不能进行操作":221==i.no?"你已like了本吧,请不要重复操作":"抱歉,异常错误,建议刷新页面重试一下",e.showAlert(t)}},"json")},undolike:function(){var e={fid:this.forum.forum_id,fname:this.forum.name_url,uid:this.user.name_url,ie:"utf-8",tbs:PageData.tbs};$.tb.post(this.config.url.undolike,e,function(e){e&&0==e.no&&$.tb.location.reload(!0)})},show_shortblock_tip:function(e){this.block_render(e,this.BanLib.render("balvAside"))},show_block_tip:function(e){this.block_render(e,this.BanLib.render("balvAside"))},show_black_tip:function(e){var i=new Array;i.push("
"),i.push("你已被吧主拉入黑名单,
你在本吧的头衔和权限也被收回。"),i.push("
"),this.block_render(e,i.join(""))},show_lvup_tip:function(e,i){var t=this,o=new Array;if(o.push("
"),o.push("
升级啦!你已拥有本吧"+e+"级头衔!
"),o.push('
'+i+"
"),"加油~继续攒经验!"==i)o.push("查看升级秘笈");else{var s='Stats.sendRequest("fr=tb0_forum&st_mod=frs&st_type=balvupguide&lv='+e+'")';o.push("现在去试试~~")}o.push("
");var l=o.join(""),n={content:l,arrow_dir:"up",bubble_css:{top:4,right:-5,width:232,"z-index":9999},arrow_pos:{left:209},attr:"lvup_tip_table",wrap:$("#userlike_info_tip"),closeBtn:!0},r=new UiBubbleTipBase(n);r.j_bubble.find(".j_content").css("padding","2px").addClass("lvup_tip_table"),r.showBubble(),r.bind("onclose",function(){t.close_lvup_tip()},!0),this.user.is_block||setTimeout(function(){r.closeBubble(),t.close_lvup_tip()},8e3)},block_render:function(e,i){if(!this.block_bubble){var t=this,o={content:i,arrow_dir:"up",bubble_css:{top:36,right:4,width:232,"z-index":9999},arrow_pos:{left:209},attr:"",wrap:e,closeBtn:!0};this.block_bubble=new UiBubbleTipBase(o),this.block_bubble.j_bubble.find(".j_content").css("padding","2px"),this.block_bubble.showBubble(),this.block_bubble.bind("onclose",function(){t.block_bubble.closeBubble(),t.block_bubble=null});{setTimeout(function(){t.block_bubble&&(t.block_bubble.closeBubble(),t.block_bubble=null)},5e3)}}},close_lvup_tip:function(){var e={fid:this.forum.forum_id,fname:this.forum.name_url,uid:this.user.name_url,ie:"utf-8",tbs:PageData.tbs,type:2};$.tb.post(this.config.url.closetip,e,function(e){e&&0==e.no})},show_orange_tip:function(){if("false"!=$.cookie("close_sign_tip_o")){$.cookie("close_sign_tip_o",!0,{expires:14});var e={content:"连续签到30天ID即可高亮展示,一起闪耀吧!",arrow_dir:"down",bubble_css:{top:3,right:25,width:145,"z-index":9999},arrow_pos:{left:88},attr:" ",wrap:$(".user_profile .user_name"),closeBtn:!0},i=new UiBubbleTipBase(e);i.j_bubble.find(".j_body").css("padding-right","3px"),i.showBubble(),i.bind("onclose",function(){$.cookie("close_sign_tip_o",!1,{expires:14})},!0);{setTimeout(function(){$(".j_wrap .j_close").click()},8e3)}}},showNewpropsTip:function(){var e=$.cookie("NEWS_PROPS_NOTICE"),i=this.user.global&&this.user.global.tbmall_newprops||"";(!e&&i>0||e&&i>e)&&this.buildNewpropsTip()},buildNewpropsTip:function(){var e=this,i={content:'有新道具上线哦~',arrow_dir:"up",arrow_pos:{left:40},bubble_css:{top:-35,left:100,width:100},wrap:$("#j_profile_pop"),closeBtn:!0},t=new UiBubbleTipBase(i),o="";t.bind("onclose",function(){t.closeBubble(),o=e.user.global&&e.user.global.tbmall_newprops||"",$.cookie("NEWS_PROPS_NOTICE",o,{expires:30,path:"/"})}),t.showBubble(),t.j_bubble.find(".j_newprops_tip").on("click",function(){$.post("/tbmall/post/addpropstoucenter",null,function(){}),t.closeBubble(),o=e.user.global&&e.user.global.tbmall_newprops||"",$.cookie("NEWS_PROPS_NOTICE",o,{expires:30,path:"/"})})},hasLevel:function(){var e=Math.floor((new Date).getTime()/1e3);return this.user.Parr_props&&this.user.Parr_props.level&&this.user.Parr_props.level.end_time>e}}});_.Module.define({path:"encourage/widget/encourageEntry",sub:{initial:function(){this._root=$("#encourage_entry"),this._stats()},_stats:function(){this._root.on("click","a",function(){var t=$(this).data("log");$.stats.track(t,"用户激励右侧入口")})}}});_.Module.define({path:"common/component/LoginForm",sub:{_formKey:"",_formType:0,_jq_wrapper:null,_loginInstance:null,_pageLoginIndex:0,_userInputTip:{_jq_input:null,_jq_tip:null,_jq_newtip:null,type:"normal",init:function(){}},initial:function(n,e,t){this._formKey=e,this._formType=t?t:this._formType,this._jq_wrapper=n;var o=this,i="undefined"!=typeof Env&&Env.server_time?Env.server_time:(new Date).getTime();$.JsLoadManager.use("http://passport.bdimg.com/passApi/js/wrapper.js?cdnversion="+Math.floor(i/6e4),function(){o._initLoginApi()})},_initLoginApi:function(){var n=this;passport.use("login",{tangram:!0},function(e){n._loginInstance=new e.passport.login({product:"tb",loginType:1,defaultCss:!1,loginMerge:!0,hasRegUrl:!0,memberPass:!0,autosuggest:!1,hasPlaceholder:!0,sms:!1,u:$.tb.location.getHref(),isPhone:!1,safeFlag:0,staticPage:"http://tieba.baidu.com/tb/static-common/html/pass/v3Jump.html"});var t=n._jq_wrapper.find(".login_form")[0];n._loginInstance.render(t),n._loginInstance.on("loginSuccess",function(e){Stats.sendRequest("fr=tb0_forum&st_mod="+n._formKey+"&st_type=login_succeed"),$.tb.location.reload(),e.returnValue=!1}),n._loginInstance.on("beforeSubmit",function(){Stats.sendRequest("fr=tb0_forum&st_mod="+n._formKey+"&st_type=login_click")})})}}});_.Module.define({path:"comforum/widget/HistoryGame",sub:{initial:function(){this._bindEvents(),this._showTrack()},_showTrack:function(){var t="";"frs"===PageData.product?t="FRS页":"pb"===PageData.product&&(t="PB页");var a=$(".game_content .game_h .game_link");if(a.length>0){var e=[];a.each(function(){e.push($(this).tbattr("title"))}),$.stats.track(t+"_我的游戏","PC端商业化游戏统计",PageData.product||"","展现",{obj_name:e.join(","),obj_type:"我的游戏"})}var n=$(".game_content .game_s .game_link");if(n.length>0){var i=[];n.each(function(){i.push($(this).tbattr("title"))}),$.stats.track(t+"_推荐游戏","PC端商业化游戏统计",PageData.product||"","展现",{obj_name:i.join(","),obj_type:"推荐游戏"})}},_bindEvents:function(){var t="",a=$(".game_tab"),e=$(".game_content");"frs"===PageData.product?t="FRS页":"pb"===PageData.product&&(t="PB页"),a.on("click","li",function(){var n=$(this).data("game"),i="game_h"==n?"我的游戏":"推荐游戏";a.children("li").removeClass("sel"),$(this).addClass("sel"),e.children("ul").removeClass("sel").end().children("ul."+n).addClass("sel"),$.stats.track(t+"_"+i+"_tab","PC端商业化游戏统计",PageData.product||"","点击",{obj_type:i})}),e.on("click",".j_stats",function(){var a=$(this).data("category"),e="h"==a?"我的游戏":"推荐游戏",n=$(this).find("img").tbattr("src"),i=$(this).tbattr("title");"undefined"==typeof n&&(n=""),$.stats.track(t+"_"+e,"PC端商业化游戏统计",PageData.product||"","点击",{obj_url:n,obj_name:i,obj_type:e})}),$("#game_login_btn").on("click",function(){return PageData.user.is_login||_.Module.use("common/widget/LoginDialog",[],function(){}),!1}),$(".j_privilege_btn").on("click",function(){$.stats.track("游戏特权","游戏特权","","点击",{obj_type:"游戏特权",obj_name:"游戏特权",obj_url:"-"})})}}});_.Module.define({path:"comforum/widget/u9Aside",requires:[],sub:{initial:function(e){this.gameName=e.game_name||"",this.gameType=e.game_type||"",this.viewData=e.view_data||[],this.bindEvents()},bindEvents:function(){if(this.gameType){var e=this,a=0,i=this.viewData.length,t=[],s=1==this.gameType?"U9定制版":"U9通用版";if(i>0)for(this.gameName=this.viewData[0].summary,a;i>a;a++)t.push(this.viewData[a].summary);$.stats.track("右侧",s,"","view",{obj_type:"U9",obj_name:e.gameName,obj_game:t}),$(".u9_aside").on("click",".u9_aside_list a",function(){$.stats.track("礼包","U9通用版","","click",{obj_type:"U9",obj_name:$(this).data("code")})})}}}});_.Module.define({path:"encourage/widget/scoreGain",requires:["common/widget/Card","encourage/widget/scoreOnlineTime","encourage/widget/scoreRandEgg","encourage/widget/scoreCustomEgg","encourage/widget/scoreProvideEgg","encourage/widget/scoreMonthIcon"],sub:{NEW_DEAD_LINE:13962816e5,URL:{postHeartBeat:"/tbscore/timebeat",fetchGift:"/tbscore/fetchtg",openGift:"/tbscore/opengift",aquireScore:"/tbmall/eggs/eggslist",findScore:"/tbmall/eggs/searcheggs",provideScore:"/tbmall/eggs/userSendPrivateEgg",myAquireScore:"/tbmall/eggs/mygeteggs",myProvideScore:"/tbmall/eggs/mysendeggs",initEggAndDynamic:"/tbmall/eggs/feedlist",initVIPEgg:"/tbscore/eggsvip",openVIPScore:"/tbmall/eggs/userGetVipEgg",openCustomScore:"/tbmall/eggs/userGetPrivateEgg",followUser:"/home/post/follow"},initial:function(e){this.tbs=PageData.tbs||"0",this.fr=PageData.product||"frs",this.forum_id=PageData.forum.forum_id||0,this.controlCenter=$("#tbmall_score_control_center"),this.opt=$.extend(e,{controlCenter:this.controlCenter}),this.scoreEncWrap=$(".score_encourage"),this.bindEvents(),this.scoreEncourage(),this.randEgg=this.use("encourage/widget/scoreRandEgg",this.opt),this.customEgg=this.use("encourage/widget/scoreCustomEgg",this.opt),this.provideEgg=this.use("encourage/widget/scoreProvideEgg",this.opt),this.animateEgg=this.use("encourage/widget/scoreAnimation",this.opt),this.monthIcon=this.use("encourage/widget/scoreMonthIcon")},showOfflineCard:function(){var e=this,t=(new Date).getTime();$.tb.Storage.get("score_doupiao_offline")>t-864e5||(this.offline_card=this.use("common/widget/Card",{content:'',clazz:"doupiao_offline",arrow_dir:"down",card_css:{width:170,"z-index":1e3,left:12,top:-35},wrap:$(".online_time"),card_leave_display:!0}),this.offline_card._j_card.on("click",".j_close",function(){$.tb.Storage.set("score_doupiao_offline",t),e.offline_card._j_card.remove()}).on("click",".j_link",function(){$.tb.Storage.set("score_doupiao_offline",t+1296e6),e.offline_card._j_card.remove()}),this.offline_card.showCard())},scoreEncourage:function(){var e=this;this.scoreEncWrap.on("click",".provide_score_btn a.score_btn",function(){{var t=e.opt.wrapper.find(".score_slide");e.opt.wrapper.find(".score_list")}t.hasClass("score_slide_down")||t.trigger("click"),e.controlCenter.off("score.finishEggAndDynamic").one("score.finishEggAndDynamic",function(){var t=e.opt.wrapper.find(".score_provide .provide_score_btn a.score_btn");t.trigger("click")});var o=e.opt.wrapper.find(".score_provide .provide_score_btn a.score_btn");return o.trigger("click"),!1})},bindEvents:function(){var e=this,t=this.opt.wrapper.find(".score_slide"),o=this.opt.wrapper.find(".score_wrapper");t.on("click",function(){o.slideToggle(),e.scoreEncWrap.slideToggle(),$(this).toggleClass("score_slide_down")}).one("click",function(t,o){o||e.customEgg.initScore("aquireScore"),e.provideEgg.initList()}),e.controlCenter.bind("score.openScore",function(t,o,i){e.openGift(o,i)}).bind("score.openVIPScore",function(t,o,i){e.openVIPScore(o,i)}).bind("score.openCustomScore",function(t,o,i){e.openCustomScore(o,i)}).bind("score.heartBeat",function(t,o){e.heartBeatHandler(o)}).bind("score.fetchScore",function(){e.fetchGift()}).bind("score.aquireScore",function(t,o,i){e.updateScore(o,i)}).bind("score.findScore",function(t,o,i){e.updateScore(o,i)}).bind("score.provideScore",function(t,o){e.provideScore(o)}).bind("score.myAquireScore",function(t,o,i){e.updateScore(o,i)}).bind("score.myProvideScore",function(t,o,i){e.updateScore(o,i)}).bind("score.initEggAndDynamic",function(t,o){e.initEggAndDynamic(o)}).bind("score.initVIPEgg",function(t,o){e.initVIPEgg(o)}).bind("score.followUser",function(t,o,i){e.followUser(o,i)})},heartBeatHandler:function(e){var t,o,i="noGift",r=e.data.gift_info;this.onlineTime.timeBarInit(e.data.time_stat);for(t in r)if(o=r[t],2==o.gift_type){var n=e.data.eggs_style;this.randEgg.initRandGift(o,n)}else 1==o.gift_type&&(i=o);this.onlineTime.timeGiftInit(i,e.data.time_stat)},posterTextInit:function(e){window.repeat_has_score=e.data.time_stat.repeat_has_score},postHeartBeat:function(){var e=this;e.reqCtrl("postHeartBeat",function(t){0==t.no&&e.posterTextInit(t)})},fetchGift:function(){var e=this;e.reqCtrl("fetchGift",function(t){0==t.no&&e.heartBeatHandler(t)})},openGift:function(e,t){var o=this;o.reqCtrl("openGift",e,function(i){0!=i.no&&$.isEmptyObject(i.data.gift_got)?("time"===e.type&&o.onlineTime.showTips("overTime"),o.heartBeatHandler(i)):("time"===e.type?o.onlineTime.addScore(i,e,t):o.animateEgg.startAnimate(i,t),$.cookie("monthicon_tip")||o.monthIcon.showMonthIconTip())})},provideScore:function(e){var t=this;t.reqCtrl("provideScore",e,function(e){t.provideEgg.handleRes(e.no),t.provideEgg.handleTip(e)})},openVIPScore:function(e,t){var o=this;return PageData.user&&PageData.user.Parr_props&&PageData.user.Parr_props.level&&2==PageData.user.Parr_props.level.props_id&&1e3*PageData.user.Parr_props.level.end_time>(new Date).getTime()?(o.reqCtrl("openVIPScore",e,function(i){if("2270012"==i.no)o.randEgg.authError(t);else{var r=new Date;r.setDate(r.getDate()+1),r.setHours(0),r.setMinutes(0),r.setSeconds(0),"vip1"==e.vip_type?$.cookie("has_vip1_egg",1,{expires:r}):$.cookie("has_vip2_egg",1,{expires:r}),o.animateEgg.startAnimate(i,t)}}),void 0):(o.randEgg.authError(t),void 0)},openCustomScore:function(e,t,o){var i=this;$.extend(e,o),i.reqCtrl("openCustomScore",e,function(o){"2270012"==o.no?i.customEgg.authError(t):40==o.no?i._validVCode(o,function(o){i.openCustomScore(e,t,o)},function(){}):(i.animateEgg.startAnimate(o,t),i.customEgg.closeOpened(t))})},_validVCode:function(e,t,o){_.Module.use("common/component/CaptchaDialog",{message:e.data.vcode.str_reason,vCode:e.data.vcode.captcha_vcode_str,vCodeType:e.data.vcode.captcha_code_type,exceptionalAccount:1==e.data.vcode.userstatevcode,forumName:PageData.forum.forum_name,forumId:PageData.forum.forum_id,title:"领彩蛋",forumName:PageData.forum.forum_name,forumId:PageData.forum.forum_id,checkUrl:"/tbmall/vcode/checkvcode?tbs="+PageData.tbs,vCodeUrl:"/tbmall/vcode/getvcode",paramsCallback:function(){return{app:"getEgg",tbs:PageData.tbs,forum_id:PageData.forum.forum_id}}},function(e){e.bind("onclose",function(){return e.hide(),o(),!1}),e.bind("onaccept",function(){var o={};o.vcode=e.getInputValue(),o.vcode_md5=e.getVCode(),"function"==typeof t&&t(o)}),e.show()})},updateScore:function(e,t){var o=this;o.reqCtrl(e,t,function(t){0==t.no?o.customEgg.updateList(e,t.data):o.customEgg.handError()})},initEggAndDynamic:function(e){var t=this;t.reqCtrl(e,function(e){0==e.no&&t.provideEgg.initEggAndDynamic(e.data)})},initVIPEgg:function(e){var t=this;t.reqCtrl(e,function(e){0==e.no&&t.randEgg.getVIPEgg(e.data)})},followUser:function(e,t){var o=this;o.reqCtrl(e,t,function(e){o.customEgg.followError(e.no)})},reqCtrl:function(e,t,o){var i,r,n=this,a=n.URL[e],c={tbs:n.tbs,fr:n.fr,forum_id:n.forum_id,ie:"utf8"};arguments.length>2?(r=o,i="provideScore"==e?t+"&tbs="+PageData.tbs+"&forum_id="+PageData.forum.forum_id:$.extend(c,t)):(r=t,i=c),$.post(a,i,function(e){"function"==typeof r&&r(e)})}}}); ;_.Module.define({path:"encourage/widget/scoreOnlineTime",requires:[],sub:{timeGiftHTML:['
','','','
','
    ',"
  • ",'
    ','
    0\'
    ','
    10\'
    ','
    ',"
  • ","
  • ",'
    30\'
    ','
    ',"
  • ","
  • ",'
    50\'
    ','
    ',"
  • ","
  • ",'
    90\'
    ','
    ',"
  • ","
","
"].join(""),blockRanges:{0:0,1:600,2:1800,3:3e3},currentDomLen:68,tips:["点击领取奖励","保持在线可获得一袋豆票"],initial:function(t){this.timeGiftWrapper=t.wrapper.find(".online_time"),this.scoreIncre=t.scoreIncre,this.controlCenter=t.controlCenter,this.timeKeeper=$(this.timeGiftHTML).appendTo(this.timeGiftWrapper),this.giftTips=null,this.timeInterval=null,this.criticalLen=0,this.timeRange=0,this.timeStep=0,this.activeRange=0,this.currentLen=null,this.activeLen=this.timeKeeper.find(".active_len"),this.timeGift=this.timeKeeper.find(".time_gift"),this.bindEvents()},bindEvents:function(){var t=this,i={};this.timeKeeper.delegate(".unopen_gift","click",function(){i={type:"time",gift_key:$(this).getData().gift_key},t.controlCenter.trigger("score.openScore",[i,$(this).addClass("bomb_gift")])}),$("body").delegate(".time_gift_tip_close","click",function(){return $("#time_gift_tip_card .all_gift_got").length>0&&$.cookie("all_time_gift_got","close"),$("#time_gift_tip_card").remove(),t.giftTips=null,!1})},timeGiftInit:function(t,i){var e=this,s=i.time_has_score,n=i.interval_type,a=i.time_len;this.timeGift.tbattr({"class":"time_gift",style:""}),s!==!1&&4!=n&&("noGift"==t?(this.activeRange=this.currentDomLen*(i.now_time-i.interval_begin_time)/a,this.currentLen.append(this.timeGift.addClass("next_gift").tbattr("title",this.tips[1])),this.timeEnd-this.timeRange<=this.criticalLen&&(this.activeRange=this.currentDomLen*(a-this.criticalLen)/a),this.activeLen.width(parseInt(this.activeRange)),this.timeInterval=setInterval(function(){return e.timeCounter()},1e3)):(this.activeLen.width(this.currentDomLen),this.currentLen.append(this.timeGift.addClass("unopen_gift").bindData(t).tbattr("title",this.tips[0]))))},timeBarInit:function(t){this.timeKeeper.show();var i=this.timeKeeper.find(".time_bar"),e=this.timeKeeper.find(".time_bar li").removeClass(),s=t.time_len,n=t.now_time-t.interval_begin_time,a=t.time_has_score,r=t.interval_type;if(clearInterval(this.timeInterval),this.timeKeeper.find(".time_keeper_tip").hide(),this.timeInterval=null,4==r)return e.addClass("allpass"),i.addClass("allGiftGot"),this.activeLen.width(0),this.timeKeeper.find(".time_keeper_tip").show(),this.showTips("allGiftGot"),void 0;if(a===!1)return e.addClass("allunpass"),i.addClass("overScore"),this.activeLen.width(0),this.showTips("overScore"),void 0;for(var l=0;4>l;l++)r>l?e.eq(l).addClass("pass_len"):l==r?this.currentLen=e.eq(l).addClass("curren_len").append(this.activeLen):e.eq(l).addClass("unpass_len");this.timeEnd=this.blockRanges[r]+s,this.criticalLen=t.critical_len,this.timeRange=this.blockRanges[r]+n,this.timeRange=this.timeEnd-this.timeRange>this.criticalLen?this.timeRange:this.timeEnd-this.criticalLen,this.timeStep=this.currentDomLen/s},timeCounter:function(){if(this.timeRange>=this.timeEnd)clearInterval(this.timeInterval),this.timeInterval=null,this.controlCenter.trigger("score.fetchScore");else{this.timeRange+=1;var t=this.timeEnd-this.timeRange;t<=this.criticalLen&&this.timeGift.addClass("red_to_grey"),this.activeRange+=this.timeStep,this.activeLen.width(parseInt(this.activeRange))}},addScore:function(t,i,e){var s={type:"time",len:6,pos:["0 30px","0 -90px","0 -120px","0 -150px","0 -180px","0 -210px","0 30px"]};e.bindData(t.data.gift_got),this.burstAnimate(t,s,e,0)},burstAnimate:function(t,i,e,s){var n=this;setTimeout(function(){e.css("backgroundPosition",i.pos[s]),s+'+s+"豆票").css({top:e.top+5,left:e.left}).appendTo("body").animate({top:"-=100",left:"+=50",opacity:.4},2e3,function(){$(this).remove()})},showTips:function(t){var i=this,e={overScore:'
您的【豆票】已达到上限!豆票上限说明
',overTime:'
礼包已经过期,下次请尽快领取!(礼包彩蛋当日有效。)
',allGiftGot:'
今日在线活跃奖励已经领取完成
'};i.giftTips&&(i.giftTips.closeCard(),i.giftTips=null),"allGiftGot"!=t&&(i.giftTips=i.use("common/widget/Card",{wrap:i.timeKeeper,content:e[t],card_css:{width:180,height:50,top:-28,left:6,zIndex:9999},card_leave_display:/^(overScore|allGiftGot)$/.test(t)?!0:!1,attr:"id = 'time_gift_tip_card'"}),i.giftTips.showCard())}}}); ;_.Module.define({path:"encourage/widget/scoreRandEgg",requires:["encourage/widget/scoreAnimation","common/widget/JoinVipDialog"],sub:{randGiftHTML:['','',""].join(""),giftGuide:!1,initial:function(e){this.fr=PageData.product,this.wrapperDom=e.wrapper,this.slideDom=e.wrapper.find(".score_slide"),this.eggDom=e.wrapper.find(".score_show"),this.controlCenter=e.controlCenter,this.randGift=$(this.randGiftHTML),this.initEggBlock(),this.initVIPEgg(),this.bindEvents()},initEggBlock:function(){var e=['

有枚福利彩蛋 【快来抢】

',""].join("");this.eggDom.append(e)},bindEvents:function(){var e=this,i={};e.randGift.one("click",function(){i={type:"rand",gift_key:$(this).getData().gift_key},e.controlCenter.trigger("score.openScore",[i,$(this)]),e.slideDom.trigger("click")}),e.wrapperDom.on("click",".j_VIP_score",function(){return e.slideDom.hasClass("score_slide_down")||e.slideDom.trigger("click"),i=$(this).getData(),i.vip_type=$(this).data("vip"),e.controlCenter.trigger("score.openVIPScore",[i,$(this)]),!1}).on("mouseleave",".j_VIP_score",function(){return e.vip_card&&e.vip_card.closeCard({type:"delayClose",time:200}),e.vip_card=null,!1}).on("click",".j_score_open",function(){e.slideDom.hasClass("score_slide_down")||e.slideDom.trigger("click")})},initRandGift:function(e,i){if(null!=this.randGift){var t=this.eggDom.find(".block_middle"),n=$.extend({},e,i);this.randGift.find("img").tbattr("src",n.image),this.randGift.bindData(n).appendTo(t)}},initVIPEgg:function(){this.controlCenter.trigger("score.initVIPEgg",["initVIPEgg"])},getVIPEgg:function(e){var i=0,t="",n=null,o=this.eggDom.find(".score_total_left");delete e.vip1;for(t in e)if(n=e[t])if("left_number"!=t){if(i>1)return;++i}else o.html(n)},authError:function(e){var i=e.data("vip");if(i&&"vip2"===i){var t=new Date;t.setDate(t.getDate()+1),t.setHours(0),t.setMinutes(0),t.setSeconds(0),$.cookie("has_vip2_egg",1,{expires:t})}_.Module.use("encourage/widget/scoreAnimation",[{wrapperDom:this.wrapperDom,controlCenter:this.controlCenter}],function(i){i.startAnimate({},e)}),_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()})}}}); ;_.Module.define({path:"encourage/widget/scoreCustomEgg",requires:["common/component/JsPager"],sub:{initial:function(e){this.fr=PageData.product,this.scoreWrapper=e.wrapper.find(".score_wrapper"),this.slideDom=e.wrapper.find(".score_slide"),this.scoreTab=e.wrapper.find(".score_tab"),this.scoreList=e.wrapper.find(".score_list"),this.scorePager=e.wrapper.find(".score_pager"),this.scoreProvide=e.wrapper.find(".score_provide"),this.guideDom=e.wrapper.find(".score_guide"),this.eggBlockDom=e.wrapper.find(".score_show .egg_block"),this.controlCenter=e.controlCenter,this.pager=null,this.bindEvents()},bindEvents:function(){var e=this;$("#tbmall_score_region").on("click",".tbmall_score_op, .tip_to_find",function(){e.slideDom.hasClass("score_slide_down")||e.slideDom.trigger("click",[!0]),e.eggBlockDom.slideUp(),e.initScore("findScore",!0)}),this.scoreTab.on("click",".find_score_tab .tab_btn",function(){e.initScore("findScore")}).on("click",".find_score_tab .tab_close",function(){e.eggBlockDom.slideDown(),e.initScore("aquireScore")}).on("click",".my_score_tab li",function(){var i=$(this).tbattr("data-type"),t=$(this).closest(".my_score_tab").find("li");t.removeClass("sel"),$(this).addClass("sel"),e.initScore(i)}),this.scoreList.on("click",".aquire_score_item .info_btn",function(){if(!$(this).hasClass("info_btn_disable")){e.scoreList.find(".item_info").slideUp();var i=$(this).closest(".aquire_score_item"),t=i.find(".item_info"),r=i.find(".item_detail");e.scoreList.find(".item_detail").not(r).slideUp(),t.slideUp(),r.slideDown(),e.scoreProvide.slideUp()}return!1}).on("click",".aquire_score_item .detail_close",function(){var i=$(this).closest(".aquire_score_item"),t=i.find(".item_info"),r=i.find(".item_detail");e.scoreList.find(".item_info").not(t).slideDown(),t.slideDown(),r.slideUp(),e.scoreProvide.slideDown()}).on("click",".my_provide_item .info_btn",function(){e.scoreList.find(".item_info").slideDown();var i=$(this).closest(".my_provide_item"),t=i.find(".item_detail");t.slideDown(),e.scoreList.find(".item_detail").not(t).slideUp()}).on("click",".j_custom_score",function(){return opt=$(this).getData(),e.controlCenter.trigger("score.openCustomScore",[opt,$(this)]),!1}).on("click",".j_user_attention",function(){e.followUser($(this))}),this.guideDom.on("click",".j_my_score",function(){return e.initScore("myProvideScore"),e.scoreProvide.find(".provide_score_btn").tbattr("class","aquire_score_btn"),!1}),this.scoreProvide.on("click",".aquire_score_btn a",function(){e.eggBlockDom.slideDown(),e.initScore("aquireScore"),$(this).parent(".aquire_score_btn").tbattr("class","provide_score_btn")})},initScore:function(e,i){var t=1;return this.scorePager.empty(),this.pager=null,this.initTab(e),i?(this.scoreList.empty(),void 0):(this.getList(e,{pn:t}),void 0)},initTab:function(e){var i={aquireScore:"",findScore:['
','

消耗 50 T豆在全吧找福利彩蛋

','

','',"
"].join(""),myProvideScore:['
','
    ','
  • 我发的彩蛋
  • ','
  • 我领取的彩蛋
  • ',"
","

彩蛋额度","领取次数","领取人","

","
"].join(""),myAquireScore:['
','
    ','
  • 我发的彩蛋
  • ','
  • 我领取的彩蛋
  • ',"
","

发福利的人","领取的吧","领取额度","

","
"].join("")};"aquireScore"==e?this.scoreTab.slideUp().html(i[e]):this.scoreTab.html(i[e]).slideDown()},aquireScore:function(e){for(var i=0,t=e.length,r=null,a="",s={},n=['
','
','
','

',"#{user_name}的福利

",'

福利总额#{total_score}T豆

',"
",'',"
",'
','
','','用户头像',"",'
','

',"#{user_name}的福利

",'

','关注Ta',"

","
","
",'
','','',"","
",'
','

领取条件:','',"#{forum_name}吧 LV#{level}以上

",'

福利总额:#{total_score} T豆

',"
",'',"
","
"].join("");t>i&&5!==i;i++)r=e[i],s={data:$.tb.dataField(r),image:r.image,user_data:$.tb.dataField({un:r.user_name}),user_name:$.tb.subByte(r.user_name,12),user_name_enty:r.user_name,user_link:"/home/main/?ie=utf8&un="+r.user_name+"&fr="+this.fr,user_portrait:r.portrait,left_num:r.left_number,forum_data:$.tb.dataField({forum_name:r.cond_forum_name,forum_link:"/f?kw="+r.cond_forum_name,level:r.cond_user_level}),forum_name:$.tb.subByte(r.cond_forum_name,12),forum_name_enty:r.cond_forum_name,forum_link:"/f?kw="+r.cond_forum_name,level:r.cond_user_level,score_data:$.tb.dataField(r),score_image:r.image,info_disable:r.get_status?"info_btn_disable":"",total_score:r.score},a+=$.tb.format(n,s);return a},findScore:function(e){for(var i=0,t=e.length,r=null,a="",s={},n=['
','
','吧头像','
','

',"#{forum_name}吧

",'

还剩个#{left_num}

',"
",'',"
","
"].join("");t>i&&5!==i;++i)r=e[i],s={image:r.portrait,forum_name:$.tb.subByte(r.forum_name,14),forum_name_enty:r.forum_name,forum_link:"/f?kw="+r.forum_name,left_num:r.left_num},a+=$.tb.format(n,s);return a},myProvideScore:function(e){for(var i=0,t=e.length,r=null,a="",s={},n=['
','
','#{info_val}','#{info_num}次','',"
",'
',"#{details}","
","
"].join("");t>i&&5!==i;i++)r=e[i],s={image:r.image,info_val:$.tb.subByte(r.score,6),info_val_enty:r.score,info_num:r.number,details:this.initInfo(r.user_list)},a+=$.tb.format(n,s);return a},initInfo:function(e){var i="",t=0,r=0,a=null,s={},n=['

#{user_name}领取了#{get_score}T豆

'].join("");if($.isArray(e))for(r=e.length;r>t;++t)a=e[t],s={user_name:$.tb.subByte(a.user_name,12),user_name_enty:a.user_name,get_score:a.get_score},i+=$.tb.format(n,s);return i},myAquireScore:function(e){for(var i=0,t=e.length,r=null,a="",s={},n=['
','#{from_user_name}','#{forum_name}吧',"#{get_score}T豆","
"].join("");t>i&&10!==i;i++)r=e[i],s={forum_name:r.forum_name,from_user_name:r.from_user_name,get_score:r.get_score},a+=$.tb.format(n,s);return a},updateList:function(e,i){if(!i.list||0===i.list.length)return this.handError("emptyData"),void 0;var t=this;null==this.pager&&parseInt(i.count)>0&&(this.pager=t.use("common/component/JsPager",{container:t.scorePager,current:1,amount:10,total:Math.ceil(i.count/5)||0,template:{head:"",tail:""},classname:{wrapper:"tbui_js_pager",current:"current grey_border",normal:"",prev:"prev",next:"next",head:"head",tail:"tail",status:"status",prev_disable:"prev_disable",next_disable:"next_disable",head_disable:"head_disable",tail_disable:"tail_disable"}}),this.pager.bind("pageChange",function(i,r){t.getList(e,{pn:r}),t.pager.initial({current:r}),t.scoreProvide.slideDown()}));var r=this[e](i.list);this.scoreList.empty().html(r)},getList:function(e,i){var t=this;t.controlCenter.trigger("score."+e,[e,i])},closeOpened:function(e){var i=e.closest(".aquire_score_item"),t=i.find(".item_info"),r=i.find(".item_detail");r.slideUp(),t.slideDown().find(".info_btn").addClass("info_btn_disable")},followUser:function(e){var i=this,t=e.getData();i.controlCenter.trigger("score.followUser",["followUser",t])},followError:function(e){var i={0:"关注成功",1130036:"此用户禁止被关注","else":"服务器打了个盹,刷新一下吧"},t=e in i?i[e]:i["else"],r=new $.dialog({html:'

'+t+"

",width:300,height:30});r.bind("onclose",function(){})},handError:function(e){var i={emptyData:'本吧没有福利彩蛋
开始寻找彩蛋!',"else":"服务器打了个盹,刷新一下吧!"},t=e in i?i[e]:i["else"];this.scoreList.html('

'+t+"

")},authError:function(e){var i=e.closest(".item_detail").find(".detail_condition"),t=i.find(".j_limit_error"),r=i.find(".j_limit_total"),a=0,s=(t.html(),t.getData()),n='需要在'+s.forum_name+"吧达到"+s.level+"级以上";t.html(n).addClass("limit_center"),r.remove();var o=setInterval(function(){4==a?(t.addClass("limit_error"),clearInterval(o),o=null):(t.toggleClass("limit_error"),++a)},200)}}}); ;_.Module.define({path:"encourage/widget/scoreProvideEgg",requires:[],sub:{initial:function(e){this.fr=e.fr,this.visibleNum=3,this.scoreNum=0,this.wrapperDom=e.wrapper,this.provideDom=e.wrapper.find(".score_provide"),this.dynamicDom=e.wrapper.find(".score_dynamic"),this.guideDom=e.wrapper.find(".score_guide"),this.eggBlockDom=e.wrapper.find(".egg_block"),this.scoreWrapper=e.wrapper.find(".score_wrapper"),this.controlCenter=e.controlCenter,this.scoreStyles="",this.scoreForums="",this.provideFlag=!0,this.tipDom=null,this.selEgg=null,this.initGuide()},bindEvents:function(){var e=this,i=this.provideDom,o=i.find(".provide_score_btn"),s=i.find(".provide_score_item"),r=this.scoreWrapper.find(".score_list"),t=this.scoreWrapper.find(".score_pager");this.tipDom=s.find(".provide_tip"),i.on("click",".provide_score_btn a.score_btn",function(){return o.slideUp(),s.slideDown(),r.slideUp(),t.slideUp(),e.eggBlockDom.slideUp(),e.dynamicDom.slideUp(),e.initCarouse(),!1}).on("click",".provide_close",function(){s.slideUp(),o.slideDown(),r.slideDown(),t.slideDown(),e.eggBlockDom.slideDown(),e.dynamicDom.slideDown()}).on("submit","form.score_form",function(i){return i.preventDefault(),e.provideScore($(this)),!1}).on("keyup",".score_total",function(){e.checkProvide($(this))}).on("focus",".score_total, .egg_total",function(){var i=$(this);$(this).hasClass("score_total")||(i=$(this).closest(".score_form").find(".score_total")),e.checkProvide(i)}).on("click",".score_to_charge",function(){_.Module.use("common/widget/TchargeDialog")})},initList:function(){var e=this;e.controlCenter.trigger("score.initEggAndDynamic",["initEggAndDynamic"])},initEggAndDynamic:function(e){var i=this;$.isArray(e.feed_list)&&this.initDynamic(e.feed_list),$.isArray(e.egg_list)&&this.initScore(e.egg_list),$.isArray(e.forum_list)&&this.initForum(e.forum_list),this.initProvide(),this.bindEvents(),i.controlCenter.trigger("score.finishEggAndDynamic")},initProvide:function(){var e="",i={},o=['",'
','
在#{forum_name}吧发福利
','
#{score_info}
','
','

T豆总量:T豆

','

彩蛋数:个

',"

","领取条件:",'','','","

",'

将消耗21000T豆
(每日扣除1000T豆福利余额)

','

',"
",'',"
"].join("");i={forum_id:PageData.forum.forum_id,forum_name:PageData.forum.forum_name,forum_link:"/f?kw="+PageData.forum.forum_name,forum_info:this.scoreForums||"",score_info:this.scoreStyles||""},e+=$.tb.format(o,i),this.provideDom.append(e)},initForum:function(e){var i=0,o=e.length,s=[];if(o>0)for(;o>i;++i)s.push('");else s.push('");this.scoreForums=s.join("")},initScore:function(e){var i=0,o=e.length,s=null,r="",t="";for(this.scoreNum=o;o>i;++i)s=e[i],r+=["
  • ",'','',"","
  • "].join("");t=['",'','',"",'','',"",'
    '].join(""),this.scoreStyles=t},initCarouse:function(){this.selEgg=null;var e=this,i=this.provideDom.find(".score_info");i.find(".info_carousel").jCarouselLite({btnNext:i.find(".info_next"),btnPrev:i.find(".info_prev"),visible:this.visibleNum,circular:!0,afterEnd:function(i){e.selEgg=$(i[1])}}),_.Module.use("common/widget/Placeholder",["#tbmall_score_control_center .score_provide .score_total","20000"],function(){}),_.Module.use("common/widget/Placeholder",["#tbmall_score_control_center .score_provide .egg_total","150"],function(){})},initDynamic:function(e){for(var i=0,o="",s=e.length,r=null,t=null,a=['

    ','','',"","抢了",'','',"","的彩蛋获得","#{get_score}","T豆","

    "].join("");s>i&&!(i>10);++i)r=e[i],t={user_link:"/home/main/?ie=utf8&un="+r.user_name,user_name:r.user_name,user_portrait:r.portrait,user_data:$.tb.dataField({un:r.user_name}),from_user_link:"/home/main/?ie=utf8&un="+r.from_user_name,from_user_name:r.from_user_name,from_user_portrait:r.from_portrait,from_user_data:$.tb.dataField({un:r.from_user_name}),get_score:r.get_score},o+=$.tb.format(a,t);this.dynamicDom.append('
    '+o+"
    "),1>s&&this.dynamicDom.hide();{var n=this.dynamicDom.find(".dynamic_wrapper");setInterval(function(){n.find(".dynamic_item").first().slideUp(function(){$(this).appendTo(n).show()})},3e3)}},initGuide:function(){},provideScore:function(e){if(this.provideFlag&&this.formValid()){var i="";if(this.selEgg)i=this.selEgg.getData().sid;else{var o=this.provideDom.find(".info_carousel li"),s=this.scoreNum-this.visibleNum+1;i=o.eq(s).getData().sid}e.find("input.score_id").val(i),this.controlCenter.trigger("score.provideScore",[e.serialize()]),self.provideFlag=!1}},formValid:function(){var e=this.provideDom.find(".provide_score_item"),i=e.find(".score_total").val(),o=e.find(".egg_total").val();return this.scoreValid(i)&&this.eggValid(o,i)},scoreValid:function(e){var i=PageData.user.Parr_scores?PageData.user.Parr_scores.scores_money+PageData.user.Parr_scores.scores_other:0;return/^\d+$/.test(e)?1e4>e?(this.handleRes(111e4),!1):e>i?(this.handleRes(2270005),!1):!0:(this.handleRes(1001),!1)},eggValid:function(e,i){var o=parseInt(i/100-50);return/^\d+$/.test(e)?10>e?(this.handleRes(1110002),!1):e>o?(this.handleRes(1110003,o),!1):!0:(this.handleRes(1001),!1)},checkProvide:function(e){var i=e.val(),o=parseInt(i)+1e3;this.tipDom&&(/^\d+$/.test(i)?this.tipDom.html("将消耗"+o+"T豆
    (每日扣除1000T豆福利余额)"):this.tipDom.html(""))},handleRes:function(e,i){this.provideFlag=!0;var i=i&&!isNaN(parseInt(i))?parseInt(i):0,o={0:"提交成功!",1001:"请输入数字",1110000:"T豆数不能小于10000",1110001:"您在吧内等级不能小于1或大于7",1110002:"彩蛋数不能小于10",1110003:"所发T豆的彩蛋数不能多于"+i,2270005:'您的T豆余额不足,去充值>>',2251009:"发放的吧不存在","else":"服务器打了个盹,刷新试试吧"},s=e in o?o[e]:o["else"];this.tipDom&&this.tipDom.html(s)},handleTip:function(e){if(0==e.no&&e.data&&e.data.get_icon){var i=$('

    恭喜你获得了

    【福利印记】
    ');$("body").append(i),i.on("click",".score_alert_close",function(){return i.remove(),$.tb.location.reload(),!1})}else if(0==e.no){setTimeout(function(){$.tb.location.reload()},1e3)}}}}); ;_.Module.define({path:"encourage/widget/scoreAnimation",requires:[],sub:{initial:function(e){this.wrapperDom=e.wrapper,this.controlCenter=e.controlCenter,this.bindEvents()},bindEvents:function(){$("body").on("click",".score_close_gif",function(){$(this).closest(".score_open_gif").remove()})},startAnimate:function(e,o){var t="custom",n=null;if(e.data){var r=e.data.gift_got;r?(n={props_num:r.gift_score,props_name:""},t="rand"):n=e.data}else n={props_num:"0",props_name:""};n=$.extend(o.getData(),n||{props_num:"0",props_name:""},!0),o.bindData(n),o.fadeOut(),this._addScore(t,o,e)},_addScore:function(e,o,t){var n={len:5,pos:["0 -66px","0 -132px","0 -198px","0 -264px","0 0"]};this._showGif(o),this._burstAnimate(e,n,o,0,t)},_burstAnimate:function(e,o,t,n,r){var s=this;setTimeout(function(){t.css("backgroundPosition",o.pos[n]),n','','',"",'',""].join(""),i={link:s,gif:r};o=$.tb.format(a,i),$(o).css({top:n.top-48,left:n.left-48}).appendTo("body").fadeIn(2e3)}},_scoreAnimate:function(e,o){var t=e.getData().props_name||"",n=e.getData().props_num||0,r="",s=t?"prop":"egg",a=o||"",i=['
    #{scoreShow}
    '].join(""),c=e.offset();r="prop"==s?t+"×"+n:"+"+n+("rand"==a?"豆票":""),r={scoreShow:r,scoreStyle:s,scoreType:a},fly_dom=$($.tb.format(i,r)),fly_dom.css({top:c.top+26,left:c.left+20}).appendTo("body"),fly_dom.animate({top:"-=100",left:"+=50",opacity:.4},3e3,function(){$(this).remove(),e.remove(),e=null})}}}); ;_.Module.define({path:"encourage/widget/scoreBuy",requires:[],sub:{URL:{provideScore:"/tbmall/eggs/userSendPrivateEgg",checkScore:"/tbmall/checkorder"},callBack:null,initial:function(){this._dialog=null,this._bindEvents()},buyScore:function(e,a){"function"==typeof a&&(this.callBack=a),this._getOrderId(e),this._chargingDialog()},_bindEvents:function(){$("body").delegate(".j_charge_success_btn","click",function(){self._closeDialog(self._dialog),self._confirmChargeState()}).delegate(".j_charge_fail_btn","click",function(){self._closeDialog(self._dialog),$.tb.location.setHref(h)})},_getOrderId:function(e){var a=this,s=e+"&tbs="+PageData.tbs+"&forum_id="+PageData.forum.forum_id;$.ajax({type:"POST",url:a.URL.provideScore,dataType:"json",data:s,success:function(e){switch(e.no){case 0:"88888888"==e.data.order_id?(a._closeDialog(a._dialog),a._closeBubble(a._bubble),a._bubble=a._showBubble("已成功充值 "+e.data.scores+"T豆",1500,"canClose"),windowOpen&&windowOpen.close()):(a._order_id=e.data.order_id,window.open(e.data.dubi_url))}}})},_confirmChargeState:function(){var e=this,a=6;this._bubble=this._showBubble("正在验证支付中,请稍候"+a+"秒...");var s=setInterval(function(){if(a--,e._bubble.html("正在验证支付中,请稍候"+a+"秒..."),a%2==0){var l={ie:"utf-8",tbs:PageData.tbs,order_id:e._order_id};$.ajax({type:"POST",url:e.URL.checkScore,dataType:"json",dataType:"json",data:l,success:function(l){switch(l.no){case 0:1e4==l.data.result_code&&(e._closeBubble(e._bubble),e._bubble=e._showBubble("已成功充值 "+l.data.scores+"T豆",1500,"canClose",function(){$.tb.location.setHref($.tb.location.getHref().replace("&showsend=1","").replace("&showmask=1",""))}),clearInterval(s)),0>=a&&(e._closeBubble(e._bubble),e._bubble=e._showBubble("抱歉,T豆没有充值成功",1500,"canClose"),clearInterval(s));break;case 1:case 2:default:0>=a&&(e._closeBubble(e._bubble),e._bubble=e._showBubble("抱歉,T豆没有充值成功",1500,"canClose"),clearInterval(s))}},error:function(){e._bubble.html("

    未知错误

    "),clearInterval(s)}})}0>=a&&clearInterval(s)},1e3)},_showBubble:function(e,a,s,l){var n=$("
    ");return n.append(e),$("body").append(n),n.css({left:$(window).width()/2-n.width()/2,top:$(window).height()/2}),$(window).resize(function(){n.css({left:$(window).width()/2-n.width()/2,top:$(window).height()/2})}),"function"==typeof l&&l(),s&&n.click(function(){$(this).remove()}),a?(this._closeBubble(n,a),void 0):n},_closeBubble:function(e,a){a&&a>0?setTimeout(function(){e&&e.fadeOut("normal",function(){e.remove()})},a):e&&e.fadeOut("normal",function(){e.remove()})},_chargingDialog:function(){var e="

    请在新打开的页面上完成支付

    支付完成前    请勿关闭窗口

    ";this._showDialog("充值T豆",e,500)},_showDialog:function(e,a,s){this._dialog=new $.dialog({html:a,title:e,width:s,draggable:!1,closeable:!0})},_closeDialog:function(e){e&&e.close(),e=null}}}); ;_.Module.define({path:"encourage/widget/scoreMonthIcon",requires:[],sub:{initial:function(){},showMonthIconTip:function(){function t(t){return t>9?t:"0"+t.toString()}var n=PageUnit.load("score_gain_txt"),e=PageUnit.load("score_gain_button"),i=PageUnit.load("score_gain_title"),o=PageUnit.load("score_gain_link"),a=PageUnit.load("score_gain_constellation");if(n){var l=new Date(Env.server_time),r=l.getFullYear(),_=t(l.getMonth()+2),c=new $.dialog({html:'

    '+n+'

    '+e+'不再提醒

    ',title:i,width:400,show:!1});"1"!=a&&PageData.user.tbmall_month_icon&&PageData.user.tbmall_month_icon[r+""+_]||c.show(),$.cookie("monthicon_tip","1",{path:"/",expires:1/6}),$(c.getElement()).on("click","#month_icon_tip",function(){c.close()}).on("click",".j_dont_remind",function(t){t.preventDefault(),$.cookie("monthicon_tip","1",{path:"/",expires:1}),c.close()})}}}});var Observe=Observe||{};!function(n,t,e){"use strict";var r="function"==typeof define,o="undefined"!=typeof module&&module.exports;r?define(t):o?module.exports=t():e[n]=t()}("observe",function(){var n=[],t=[],e=function(n){function t(){e(),a=n}function e(){o(c.generic,function(t){t(n,a)})}function r(n,t){o(c.create,function(e){e(n,t)})}function i(n,t,e){o(c.update,function(t){t(n,old_item,e)})}function u(n,t){o(c["delete"],function(e){e(n,t)})}function f(){var e=a.length,o=n.length;if(e!==o||$.json.encode(a)!==$.json.encode(n))for(var f=Math.max(o,e),c=f;c>=0;c--){var p=a[c],s=n[c];c>e-1?r(s,c):c>o-1?u(p,c):s!==p&&i(s,p,c)}t()}var a=[],c={generic:[],create:[],update:[],"delete":[]};return n.pop=function(){f();var n=Array.prototype.pop.call(this,arguments),e=this.length;return u(n,e),t(),n},n.push=function(){f();var n=arguments[0],e=Array.prototype.push.apply(this,arguments);return r(n,e-1),t(),e},n.splice=function(n){f();for(var e=Array.prototype.slice.call(arguments,2),i=Array.prototype.splice.apply(this,arguments),a=i.length-1;a>=0;a--)u(i[a],n+a);return o(e,function(t,e){r(t,n+e)}),t(),i},{bind:function(n,t){if("undefined"==typeof c[n])throw"type is not allow";c[n].push(t)},unbind:function(){}}},r=function(n,t){return Object.prototype.toString.call(n)==="[object "+t+"]"},o=function(n,t){for(var e,r=0,o=n.length;o>r&&(e=t.call(n[r],n[r],r),e!==!1);r++);},i=function(n,t){var e=0;if(Array.prototype.indexOf)return n.indexOf(t);for(;ei;i++)e[i].scale_home.toString().length>5&&(e[i].scale_home=e[i].scale_home.toPrecision(4)),e[i].scale_away.toString().length>5&&(e[i].scale_away=e[i].scale_away.toPrecision(4));return e},_formatTime:function(t){if(0>t)return"00:00:00";var e=new Date(1e3*t),i=function(t){return 10>t?"0"+t:t},n=i(Math.floor(t/3600))+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds());return n},_bindEvents:function(){var t=this;t._container.on("keydown",".j_quick_ipt",function(e){return t._lotteryHelper.numberKeyOnly(e)}).on("change",".j_quick_ipt",function(){var t=$(this).val();t||$(this).val(1)}).on("keyup",".j_quick_ipt",function(){var t=$(this).val();t&&(t=t.replace(/\D/g,"")),0===parseInt(t,10)&&(t=1),$(this).val(t)}),Observe.observe(t._selected,"create",function(e){var i=t._container.find(".lottery_basket_"+e),n=t._container.find(".j_quick_tz");i.addClass("lottery_select"),t._bubble&&t._bubble.hideBubble(),t._setBtnTips(),n.toggleClass("disable",0===t._selected.length)}),Observe.observe(t._selected,"delete",function(e){var i=t._container.find(".lottery_basket_"+e),n=t._container.find(".j_quick_tz");i.removeClass("lottery_select"),t._setBtnTips(),n.toggleClass("disable",0===t._selected.length)}),t._container.on("click",".j_lottery_select",function(){var e=$(this).data("rel");$(this).hasClass("lottery_select")?t._selected.splice($.inArray(e,t._selected),1):t._selected.push(e)}),t._container.on("click",".j_quick_tz",function(){return $(this).hasClass("disable")?(t._bubble||(t._bubble=t._showBubble({content:"至少选择一种比赛结果",wrap:t._container.find(".j_lottery_bubble")})),void t._bubble.showBubble()):void window.open(t._buildUrl())}),t._container.on("click",".j_quick_refresh",function(){t._index++,t._selected.length=0,t._index===t._singleLottery.length&&(t._index=0);var e=t._singleLottery[t._index];e.format_lotttery_end=t._formatTime(e.lottery_end_time-Math.floor((new Date).getTime()/1e3));var i=$.tb.format(t._tpl1,e),n=$.tb.format(t._tpl2,e);t._container.find(".j_quick_rpl1").replaceWith(i),t._container.find(".j_quick_rpl2").replaceWith(n),t._selected.push(3);var o=t._container.find(".j_bottom_tip");o.length&&o.remove(),clearInterval(t._t),t._t=t._countTime()})},_setBtnTips:function(){var t=this._singleLottery[this._index],e=this._container.find(".j_quick_tz"),i=e.children("span");1===this._selected.length?(3==this._selected[0]&&i.text("支持"+t.home+" 立即投注"),0==this._selected[0]&&i.text("支持"+t.away+" 立即投注")):i.text("眼光不错 立即投注")},_tpl1:['"].join(""),_tpl2:['
    ','
    主胜#{scale_home}
    ','
    客胜#{scale_away}
    ',"
    "].join(""),_buildUrl:function(){var t=this,e="http://tieba.lecai.com/user/cooperator/baidu/bet_confirm.php?lottery_type=70",i="7001:7002%",n=parseInt($(".j_quick_ipt").val(),10);return i+=t._singleLottery[t._index].match_num+"("+t._selected.join(";")+")",e+"&content="+encodeURIComponent(i)+"&multiple="+n},_countTime:function(){var t=this,e=t._container.find(".j_lottery_deadline"),i=parseInt(e.data("end"))-Math.floor((new Date).getTime()/1e3),n=function(t){return 10>t?"0"+t:t},o=setInterval(function(){var l,_;return 0>=i?(t._container.find(".j_quick_tz").addClass("disable"),$(t._bottomTip("本场比赛投注已截止")).insertAfter(t._container.find(".j_quick_options")),t._singleLottery[t._index].isEnd=!0,void clearInterval(o)):(i-=1,l=new Date(1e3*i),_=n(Math.floor(i/3600))+":"+n(l.getUTCMinutes())+":"+n(l.getUTCSeconds()),void e.text(_))},1e3);return o},_bottomTip:function(t){var e='
    '+t+"
    ";return e},_showBubble:function(t){var e={content:'
    '+t.content+"
    ",arrow_dir:"down",bubble_css:{top:-20,right:10,width:t.width||150},arrow_pos:{right:0},attr:" id='tb_message_tip_n' ",wrap:t.wrap,closeBtn:!1,level:1,arrowReq:!0},i=new UiBubbleTipBase(e);return i},_stats:function(){var t=this;t._container.on("click",function(e){var i=e.target||e.srcElement,n=$(i).data("log");n&&$.stats.track(n,"竞彩蓝球",t._page,"click")})}}});_.Module.define({path:"comforum/widget/LotteryHelper",sub:{initial:function(){},permute:function(r,n){for(var t=1,e=0;n>e;e++)t*=r-e;return parseInt(t,10)},combine:function(r,n){var t=this,e=t.permute(r,n);return e/=t.permute(n,n),parseInt(e,10)},fullCombination:function(r,n){for(var t=[],e=r.length,o=[],a=0;n>=a;a++)o.push(a-1);for(var u=n,i=!0;-1==o[0];){if(i){for(var f=[],a=1;n>=a;a++)f.push(r[o[a]]);t.push(f),i=!1}o[u]++,o[u]!=e?n>u?(u++,o[u]=o[u-1]):u==n&&(i=!0):(o[u]=0,u--)}return t},fullCombinationDantuo:function(r,n,t){var e=this,o=0;n&&(o=n.length);var a=t.length;if(r>o+a)return!1;for(var u=r-o,i=e.fullCombination(t,u),f=0,h=i.length;h>f;f++)i[f]=i[f].concat(n);return i},countCombinationDantuo:function(r,n,t){var e=this;n="undefined"==typeof n?0:n;var o=r-n;return e.combine(t,o)},arrayFullCombination:function(r){for(var n=this,t=function(r,n){for(var t=r,e=[];n.length>0;){for(var o=0;of;f++)e[f]=r[f].length,i*=e[f],o[f]=0;for(var f=0;i>f;f++)a[f]=[];for(var h=0;;){for(var f=0;t>f;f++)a[h][f]=o[f]+1,u[f]=r[f][a[h][f]-1];if(n.arrayIsNoRepeat(u))return!0;h++;for(var f=t-1;f>=0&&o[f]==e[f]-1;f--)o[f]=0;if(0>f)break;o[f]++}return!1},generateRandom:function(r,n,t){if(t>n-r)return[];for(var e=[],o=0;t>o;){var a=Math.round(Math.random()*(n-1)+r);-1===$.inArray(a,e)&&(e.push(a),o++)}return e},numberKeyOnly:function(r){var n=r.which,t=!1;return r.shiftKey&&(9==n&&(t=!0),t=!1),(57>=n&&n>=48||37==n||39==n||8==n||9==n||46==n||105>=n&&n>=96||229==n)&&(t=!0),t}}});var Observe=Observe||{};!function(n,t,e){"use strict";var r="function"==typeof define,o="undefined"!=typeof module&&module.exports;r?define(t):o?module.exports=t():e[n]=t()}("observe",function(){var n=[],t=[],e=function(n){function t(){e(),a=n}function e(){o(c.generic,function(t){t(n,a)})}function r(n,t){o(c.create,function(e){e(n,t)})}function i(n,t,e){o(c.update,function(t){t(n,old_item,e)})}function u(n,t){o(c["delete"],function(e){e(n,t)})}function f(){var e=a.length,o=n.length;if(e!==o||$.json.encode(a)!==$.json.encode(n))for(var f=Math.max(o,e),c=f;c>=0;c--){var p=a[c],s=n[c];c>e-1?r(s,c):c>o-1?u(p,c):s!==p&&i(s,p,c)}t()}var a=[],c={generic:[],create:[],update:[],"delete":[]};return n.pop=function(){f();var n=Array.prototype.pop.call(this,arguments),e=this.length;return u(n,e),t(),n},n.push=function(){f();var n=arguments[0],e=Array.prototype.push.apply(this,arguments);return r(n,e-1),t(),e},n.splice=function(n){f();for(var e=Array.prototype.slice.call(arguments,2),i=Array.prototype.splice.apply(this,arguments),a=i.length-1;a>=0;a--)u(i[a],n+a);return o(e,function(t,e){r(t,n+e)}),t(),i},{bind:function(n,t){if("undefined"==typeof c[n])throw"type is not allow";c[n].push(t)},unbind:function(){}}},r=function(n,t){return Object.prototype.toString.call(n)==="[object "+t+"]"},o=function(n,t){for(var e,r=0,o=n.length;o>r&&(e=t.call(n[r],n[r],r),e!==!1);r++);},i=function(n,t){var e=0;if(Array.prototype.indexOf)return n.indexOf(t);for(;ei;i++)e[i].scale_home.toString().length>5&&(e[i].scale_home=e[i].scale_home.toPrecision(4)),e[i].scale_away.toString().length>5&&(e[i].scale_away=e[i].scale_away.toPrecision(4)),e[i].scale_equal.toString().length>5&&(e[i].scale_equal=e[i].scale_equal.toPrecision(4));return e},_formatTime:function(t){if(0>t)return"00:00:00";var e=new Date(1e3*t),i=function(t){return 10>t?"0"+t:t},n=i(Math.floor(t/3600))+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds());return n},_bindEvents:function(){var t=this;t._container.on("keydown",".j_quick_ipt",function(e){return t._lotteryHelper.numberKeyOnly(e)}).on("change",".j_quick_ipt",function(){var t=$(this).val();t||$(this).val(1)}).on("keyup",".j_quick_ipt",function(){var t=$(this).val();t&&(t=t.replace(/\D/g,"")),0===parseInt(t,10)&&(t=1),$(this).val(t)}),Observe.observe(t._selected,"create",function(e){var i=t._container.find(".lottery_icon_btn_"+e),n=t._container.find(".j_quick_tz");i.addClass("select"),t._bubble&&t._bubble.hideBubble(),t._setBtnTips(),n.toggleClass("disable",0===t._selected.length)}),Observe.observe(t._selected,"delete",function(e){var i=t._container.find(".lottery_icon_btn_"+e),n=t._container.find(".j_quick_tz");i.removeClass("select"),t._setBtnTips(),n.toggleClass("disable",0===t._selected.length)}),t._container.on("click",".j_lottery_select",function(){var e=$(this).data("rel");$(this).hasClass("select")?t._selected.splice($.inArray(e,t._selected),1):t._selected.push(e)}),t._container.on("click",".j_quick_tz",function(){return $(this).hasClass("disable")?(t._bubble||(t._bubble=t._showBubble({content:"至少选择一种比赛结果",wrap:t._container.find(".j_lottery_bubble")})),void t._bubble.showBubble()):void window.open(t._buildUrl())}),t._container.on("click",".j_quick_refresh",function(){t._index++,t._selected.length=0,t._index===t._singleLottery.length&&(t._index=0);var e=t._singleLottery[t._index];e.format_lotttery_end=t._formatTime(e.lottery_end_time-Math.floor((new Date).getTime()/1e3));var i=$.tb.format(t._tpl1,e),n=$.tb.format(t._tpl2,e);t._container.find(".j_quick_rpl1").replaceWith(i),t._container.find(".j_quick_rpl2").replaceWith(n),t._selected.push(3);var o=t._container.find(".j_bottom_tip");o.length&&o.remove(),clearInterval(t._t),t._t=t._countTime()})},_setBtnTips:function(){var t=this._singleLottery[this._index],e=this._container.find(".j_quick_tz"),i=e.children("span");1===this._selected.length?(3==this._selected[0]&&i.text("支持"+t.home+" 立即投注"),1==this._selected[0]&&i.text("眼光不错 立即投注"),0==this._selected[0]&&i.text("支持"+t.away+" 立即投注")):i.text("眼光不错 立即投注")},_tpl1:['"].join(""),_tpl2:['
    ','
    主胜#{scale_home}
    ','
    平局#{scale_equal}
    ','
    客胜#{scale_away}
    ',"
    "].join(""),_buildUrl:function(){var t=this,e="http://tieba.lecai.com/user/cooperator/baidu/bet_confirm.php?lottery_type=85",i="8501:8502%",n=parseInt($(".j_quick_ipt").val(),10);return i+=t._singleLottery[t._index].match_num+"("+t._selected.join(";")+")",e+"&content="+encodeURIComponent(i)+"&multiple="+n},_countTime:function(){var t=this,e=t._container.find(".j_lottery_deadline"),i=parseInt(e.data("end"))-Math.floor((new Date).getTime()/1e3),n=function(t){return 10>t?"0"+t:t},o=setInterval(function(){var _,l;return 0>=i?(t._container.find(".j_quick_tz").addClass("disable"),$(t._bottomTip("本场比赛投注已截止")).insertAfter(t._container.find(".j_quick_options")),t._singleLottery[t._index].isEnd=!0,void clearInterval(o)):(i-=1,_=new Date(1e3*i),l=n(Math.floor(i/3600))+":"+n(_.getUTCMinutes())+":"+n(_.getUTCSeconds()),void e.text(l))},1e3);return o},_bottomTip:function(t){var e='
    '+t+"
    ";return e},_showBubble:function(t){var e={content:'
    '+t.content+"
    ",arrow_dir:"down",bubble_css:{top:-20,right:10,width:t.width||150},arrow_pos:{right:0},attr:" id='tb_message_tip_n' ",wrap:t.wrap,closeBtn:!1,level:1,arrowReq:!0},i=new UiBubbleTipBase(e);return i},_stats:function(t){var e=this;e._container.on("click",function(i){var n=i.target||i.srcElement,o=$(n).data("log");o&&($.stats.sendRequest("fr=tb0_forum&st_page="+e._page+"&st_mod=lottery_footer_new&st_fid="+t.forum.id+"&first_class="+encodeURIComponent(t.forum.first_class)+"&second_class="+encodeURIComponent(t.forum.second_class)+"&enfirst_class="+t.forum.first_class+"&ensecond_class="+t.forum.second_class+"&st_type="+o),$.stats.track(o,"新版足彩样式",e._page,"click"))})}}});_.Module.define({path:"comforum/widget/SsqLottery",requires:["comforum/widget/LotteryHelper"],sub:{_container:null,_red:[],_blue:[],_lotteryHelper:null,_redTpl:'
  • #{red}
  • ',_blueTpl:'
  • #{blue}
  • ',initial:function(t,e,n){this._container=$("#ssq_lottery"),this._red=t,this._blue=e,this._lotteryHelper=this.use("comforum/widget/LotteryHelper"),this._countTime(n),this._bindEvent(),this._stats()},_countTime:function(t){var e=this,n=e._container.find(".j_count_time"),r=function(t){return 10>t?"0"+t:t},i=setInterval(function(){if(t--,0>=t)clearInterval(i),n.text("00:00:00");else{var e=new Date(1e3*t),o=r(Math.floor(t/3600)),l=r(e.getUTCMinutes()),s=r(e.getUTCSeconds());n.text(o+":"+l+":"+s)}},1e3)},_bindEvent:function(){var t=this,e=function(t){return 10>t?"0"+t:t};t._container.on("click",".j_ssq_go",function(){for(var n="http://tieba.lecai.com/user/cooperator/baidu/bet_confirm.php?lottery_type=50",r="5001%",i=0,o=t._red.length;o>i;i++)r+=e(t._red[i])+",";r=r.slice(0,-1),r+="|"+t._blue,n+="&content="+encodeURIComponent(r)+"&mutiple=1",window.open(n)}),t._container.on("click",".j_ssq_refresh",function(){var e=t._lotteryHelper.generateRandom(1,33,6),n=t._lotteryHelper.generateRandom(1,16,1),r="",i=function(t){return 10>t?"0"+t:t};e.sort(function(t,e){return t-e}),t._red=e,t._blue=n;for(var o=0,l=e.length;l>o;o++)r+=$.tb.format(t._redTpl,{red:i(e[o])});r+=$.tb.format(t._blueTpl,{blue:i(n[0])}),t._container.find(".j_ssq_lists").html(r)})},_stats:function(){this._container.on("click",function(t){var e=t.target||t.srcElement,n=$(e).data("log");n&&$.stats.track(n,"双色球","frs","click")})}}});_.Module.define({path:"comforum/widget/LotteryWrapper",requires:[],sub:{initial:function(t){var i=1==t.type?"lot_football":"lot_ssq";this.lotHead=$(".lot_wrap_head"),this.lotBody=$(".lot_wrap_body"),this.bindEvents(),this.lotHead.find("span."+i).trigger("click")},bindEvents:function(){var t=this;this.lotHead.on("click","span",function(){t.selBlock($(this))})},selBlock:function(t){if(!t.hasClass("sel")){var i=t.data("lot");this.lotHead.find("span").removeClass("sel"),t.addClass("sel"),this.lotBody.children("div").hide().end().children("."+i).show()}}}});_.Module.define({path:"frs/widget/PlatformAsideIknow",sub:{initial:function(){try{this.bindTracks(),this.bindEvents()}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:7}),o}},bindTracks:function(){$(".platform_aside_iknow").on("click",".platform_iknow_search_btn",function(o){try{$.stats.track("ModuleSearchBtnClcik","coopwithiknow")}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:11}),o}}).on("click",".platform_iknow_question",function(o){try{$.stats.track("ModuleQuestionClick","coopwithiknow")}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:13}),o}}).on("click",".platform_iknow_askofficial",function(o){try{$.stats.track("ModuleAskBtnClick","coopwithiknow")}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:15}),o}}).on("click",".platform_inkow_seemore",function(o){try{$.stats.track("ModuleMoreBtnClcik","coopwithiknow")}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:17}),o}})},bindEvents:function(){1!=$.cookie("piabc")&&$("#j_pibubble").on("click",".j_piclose",function(o){try{o&&o.preventDefault(),$.cookie("piabc",1,{expires:365,domian:"/"}),$("#j_pibubble").remove()}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"frs:widget/platform_aside_iknow/platform_aside_iknow.js",method:"",ln:27}),o}}).show()}}});_.Module.define({path:"frs/widget/PlatformAsideSwitch",sub:{_positions:null,_tpl:["
    ","
    "].join(""),initial:function(t){try{this._positions=t.positions,this.is_star_official=t.is_star_official,$("#aside").on("click",".j_aside_switch_op",$.proxy(this.showDialog,this))}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"frs:widget/platform_aside_switch/platform_aside_switch.js",method:"",ln:14}),i}},showDialog:function(t){var i=this;t&&t.preventDefault();{var s=baidu.template("platform_aside_switch_tpl",{list:i._positions}),o=$(s);new $.dialog({html:o,title:"模块顺序调整",draggable:!0,width:418})}o.on("click",".j_paside_switch_down",i.turnDown).on("click",".j_paside_switch_up",i.turnUp).on("click",".j_paside_switch_submit",{is_star_official:i.is_star_official},i.submit)},turnDown:function(){var t=$(this).closest("tr"),i=t.find(".j_paside_switch_mod"),s=i.html(),o=t.next().find(".j_paside_switch_mod");i.html(o.html()),o.html(s)},turnUp:function(){var t=$(this).closest("tr"),i=t.find(".j_paside_switch_mod"),s=i.html(),o=t.prev().find(".j_paside_switch_mod");i.html(o.html()),o.html(s)},submit:function(t){if(t&&t.preventDefault(),t.data.is_star_official){var i=$(this).closest("tbody").find(".j_paside_switch_mod"),s={forum_id:PageData.forum.forum_id,tbs:PageData.tbs},o=[];i.each(function(){o.push($(this).find("span").tbattr("mod_id"))}),s.msort=o.join(","),$.tb.post("/official/commit/setOrder?ie=utf-8",s,function(t){0==t.no?($.dialog.close(),$.tb.location.reload()):$tip.html("调整失败,请重试")},"json")}else{var i=$(this).closest("tbody").find(".j_paside_switch_mod"),s={forum_id:PageData.forum.forum_id,tbs:PageData.tbs},o=[];i.each(function(){o.push($(this).find("span").tbattr("mod_id"))}),s.msort=o.join(","),$.tb.post("/gcf/msort?ie=utf-8",s,function(t){0==t.no?($.dialog.close(),$.tb.location.reload()):$tip.html("调整失败,请重试")},"json")}}}});_.Module.define({path:"common/component/SlideShow",sub:{defaultOptions:{delayLoadPic:!1,effect:"slide",activeClass:"tbui_slideshow_active",baseZIndex:0,interval:5e3,slide:{speed:500},fade:{speed:500},triggerHandler:"click"},initial:function(t){t=$.extend({},this.defaultOptions,t);var i=this;this.options=t,this.animating=!1,this.current=0,this.vendorPrefix=!1,this.$nav=$(t.nav),this.$navItem=this.$nav.children(),this.total=this.$navItem.size()||t.total,this.$container=$(t.target),this.$list=this.$container.children(".tbui_slideshow_list"),this.$tokens=this.$list.children(),t.width||(t.width=this.$container.width()),t.height||(t.height=this.$container.height()),this.$container.add(this.$list).css({width:t.width,height:t.height}),this.interval=t.interval||5e3,this.picLoadedIndex={},this.$navItem.first().addClass(t.activeClass),this.$tokens.first().show(),this.showOriPic(0),"click"==t.triggerHandler?this.$navItem.click(function(){var e=this;t.auto&&i.stop(),this.delayHandler=setTimeout(function(){i.delayHandler=null,i.setActive($(e).index())},10)}).bind("mouseout",function(){t.auto&&i.play(),this.delayHandler&&clearTimeout(this.delayHandler)}):"hover"==t.triggerHandler&&this.$navItem.hover(function(){var e=this;t.auto&&i.stop(),this.delayHandler=setTimeout(function(){i.delayHandler=null,i.setActive($(e).index())},200)},function(){t.auto&&i.play(),this.delayHandler&&clearTimeout(this.delayHandler)}),this.effectHandler=this["_"+t.effect],t.auto&&(this.play(),this.$list.hover(function(){i.stop()},function(){i.play()})),t.next&&$(t.next).click(function(t){t.preventDefault(),t.stopPropagation(),i.next()}),t.prev&&$(t.prev).click(function(t){t.preventDefault(),t.stopPropagation(),i.prev()})},setActive:function(t){return this.animating||t===this.current?!1:(this.$navItem.removeClass(this.options.activeClass).eq(t).addClass(this.options.activeClass),this.effectHandler(t),this.showOriPic(t),!0)},next:function(){var t=this.current+1;t==this.total&&(t=0),this.setActive(t)},prev:function(){var t=this.current-1;-1==t&&(t=this.total-1),this.setActive(t)},play:function(){var t=this;null==this.autoHandler&&(this.autoHandler=setInterval(function(){t.next()},this.options.interval))},showOriPic:function(t){if(this.options.delayLoadPic&&!this.picLoadedIndex["_"+t]){for(var i,e=this.$tokens.eq(t).find("img"),n=e.length,s=0;n>s;s++){i=$(e[s]);var a=i.tbattr("orisrc");a&&i.tbattr("src",a)}this.picLoadedIndex["_"+t]=1}},stop:function(){clearInterval(this.autoHandler),this.autoHandler=null},_slide:function(t){var i,e,n,s,a,o,r,h=this;this.animating=!0,i=this.current,r=t>i?1:-1,e=t>i?-this.options.width:this.options.width,s=t,this.$tokens.eq(i).siblings().css({display:"none",left:0,zIndex:0+this.options.baseZIndex}),this.$tokens.eq(s).css({display:"block",left:r*this.options.width,zIndex:10+this.options.baseZIndex}),this.vendorPrefix?(a=this.vendorPrefix,o=a+"Transform",n=a+"TransitionDuration",this.$list[0].style[o]="translateX("+e+"px)",this.$list[0].style[n]=this.options.slide.speed+"ms",this.$list.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",function(){h.$list[0].style[o]="",h.$list[0].style[n]="",h.$tokens.eq(s).css({left:0}),h.$tokens.eq(i).css({display:"none",left:0,zIndex:0}),h.animating=!1,h.current=s,h.$list.unbind("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd"),h.trigger("animateEnd")})):h.$list.stop().animate({left:e},this.options.slide.speed,function(){h.$list.css({left:0}),h.$tokens.eq(s).css({left:0}),h.$tokens.eq(i).css({display:"none",left:0,zIndex:0}),h.current=s,h.animating=!1,h.trigger("animateEnd")})},_fade:function(t){var i,e,n=this;this.animating=!0,i=this.current,e=t,this.$tokens.eq(e).css({display:"none",left:0,zIndex:10+this.options.baseZIndex}),this.$tokens.eq(i).stop().fadeOut(this.options.fade.speed),this.$tokens.eq(e).stop().fadeIn(this.options.fade.speed,function(){n.$tokens.eq(e).css({zIndex:0+n.options.baseZIndex}),n.animating=!1,n.current=e,n.trigger("animateEnd")})},_getVendorPrefix:function(){var t,i,e,n,s;for(t=document.body||document.documentElement,e=t.style,n="Transition",s=["Moz","Webkit","Khtml","O","ms"],i=0;i0&&t.getData()){var a=t.getData(),i=this;t.find(".aside_ad_pic").on("click",function(){i._stats(s,"右侧","商业推广位统计",a,"点击"),i._stats(s,"frs页_右侧推广_图","PC端商业化游戏统计",a,"点击")}),i._stats(s,"右侧","商业推广位统计",a,"展现"),i._stats(s,"frs页_右侧推广_图","PC端商业化游戏统计",a,"展现")}},_stats:function(t,s,a,i,_){$.stats.track(s,a,t,_,{obj_id:i.id||"",obj_name:i.title||"",obj_url:i.pic||"",obj_type:"游戏",obj_subtype:i.subtype||""})}}}); ;_.Module.define({path:"common/widget/asidead/asidead_slide",requires:["common/component/SlideShow"],sub:{_slideConfig:{target:"#aside_ad .asidead_slidewrap",nav:"#aside_ad .asidead_navs",activeClass:"active",interval:5e3,auto:!0,prev:"#aside_ad .asidead_control_left",next:"#aside_ad .asidead_control_right",delayLoadPic:!0,slide:{speed:400}},initial:function(){console.log(9),this.use("common/component/SlideShow",this._slideConfig)}}});_.Module.define({path:"comforum/widget/Rank",sub:{_container:null,initial:function(){"frs"===PageData.product?this.local="FRS页":"pb"===PageData.product&&(this.local="PB页"),this._container=$("#j_game_rank"),this._rightSection=$(".content .right_section"),this._bindEvents(),this._showTrack()},_showTrack:function(){var t=this,a=this._container.find(".game_rank_item .rank_game_pic"),n=[];a.length>0&&(a.each(function(){n.push($(this).tbattr("alt"))}),$.stats.track(t.local+"_右侧下方_排行榜","PC端商业化游戏统计",PageData.product||"","展现",{obj_name:n.join(","),obj_type:"游戏"}))},_bindEvents:function(){var t=this;t._container.on("click",".game_rank_item",function(){var a=$(this).find(".rank_game_pic");$.stats.track(t.local+"_右侧下方_排行榜","PC端商业化游戏统计",PageData.product||"","点击",{obj_url:a.tbattr("src"),obj_name:a.tbattr("alt"),obj_type:"游戏"})}).on("mouseenter",".game_rank_item",function(){$(this).hasClass("game_rank_item_fold")&&$(this).removeClass("game_rank_item_fold").siblings(".game_rank_item").addClass("game_rank_item_fold")})}}});_.Module.define({path:"liveshow/widget/frs_aside_slide",requires:["common/component/SlideShow"],sub:{_slideConfig:{nav:".live_show_aside .page_turn",target:".live_show_aside .tbui_slideshow_container",activeClass:"turn_icon_cur",interval:2e3,auto:!0,effect:"fade"},initial:function(i){var e=i.firstUrl;this._slideShow=this.use("common/component/SlideShow",this._slideConfig),this._slideShow.bind("animateEnd",function(){e=$(".live_show_aside li:visible").find("a.j_photo_aside").tbattr("href"),$(".live_show_aside .title a").tbattr("href",$.tb.unescapeHTML(e))}),$(".live_show_aside").delegate(".j_aside_title, .j_photo_aside, .j_user_name, .j_chat_weight","click",function(){$.stats.track("frs-aside-xiu8","秀吧aside_"+i.product,i.product,"click")})}}});_.Module.define({path:"comforum/widget/GameSwapWords",requires:["common/widget/Card"],sub:{initial:function(){var a=this;this.wrapper=$("#j_p_postlist"),this.game_swap_card=null,this.trackClick(),this.wrapper.on("mouseenter",".comforum-swap-words",function(e){a._handlerAjax(e.target)}).on("mouseleave",".comforum-swap-words",function(){a._closeSwapCard()})},_closeSwapCard:function(){var a=this;return a.game_swap_card&&a.game_swap_card.closeCard({type:"delayClose",time:100}),a.game_swap_card=null,!1},_handlerAjax:function(a){var e=this;null!=e.game_swap_card&&e._closeSwapCard();var r="/game/markConf?id="+parseInt($(a).data("swapword"));$.get(r).done(function(r){var r=$.json.parseJSON(r);0==r.errno&&null!=r.data&&e._showCard(a,r.data)}).fail(function(){})},_renderScore:function(a){for(var a=a||0,e=[],r="http://tb1.",t="bdstatic.com/tb/zt/tengfei/copper.png",s="bdstatic.com/tb/zt/tengfei/gold.png",n="bdstatic.com/tb/zt/tengfei/silver.png",i={copper:r+t,gold:r+s,silver:r+n},o=0;5>o;o++)e.push('');for(var c=a/2,o=0,l=e.length;l>o;o++)o'),parseInt(c)!=c&&e.splice(parseInt(c),1,''));return e.push(""+a+""),e.join("")},_showCard:function(a,e){var r=this;null!=r.game_swap_card&&r._closeSwapCard();var t=e,s=['
    ','','","
    ",'"].join(""),n=$(a),i=n.offset().left,o=n.offset().top+28,c={content:s,arrow_dir:"up",event_target:n,card_css:{width:260,height:160,top:o,left:i,zIndex:99999},arrow_pos:{left:20},attr:"id='game_swap_card'",wrap:$("body")};r.game_swap_card=r.use("common/widget/Card",c),r.game_swap_card.showCard({type:"delayShow",time:200}),$.stats.track("pb页","游戏滑词",null,"show",{obj_type:"游戏"})},trackClick:function(){$("body").on("click",".first-line, .game-logo, .game-huaci-btn",function(){$.stats.track("pb页","游戏滑词",null,"click",{obj_type:"游戏"})})}}});var FORUM_POST_PREFIX="/f/commit/";var FORUM_POST_URL={threadAdd:FORUM_POST_PREFIX+"thread/add",postAdd:FORUM_POST_PREFIX+"post/add",threadVoteAdd:FORUM_POST_PREFIX+"vote/add ",forumCreate:FORUM_POST_PREFIX+"forum/create",threadDelete:FORUM_POST_PREFIX+"thread/delete",postDelete:FORUM_POST_PREFIX+"post/delete",goodAdd:FORUM_POST_PREFIX+"thread/good/add",goodCancel:FORUM_POST_PREFIX+"thread/good/cancel",threadTopAdd:FORUM_POST_PREFIX+"thread/top/add",threadTopCancel:FORUM_POST_PREFIX+"thread/top/cancel",threadTopicAdd:"/zhibo/commit/add",threadTopicCancel:"/zhibo/commit/set",get_tbs:"/dc/common/tbs"};var FORUM_ERROR_INFO={24:"\u767b\u5f55\u9519\u8bef\uff0c\u53ef\u80fd\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u53e3\u4ee4\u4e0d\u6b63\u786e\uff0c\u8bf7\u5355\u51fb\u786e\u5b9a\u91cd\u8bd5",102:"\u6ce8\u518c\u7528\u6237email\u975e\u6cd5",103:"\u6ce8\u518c\u7528\u6237\u4e2a\u4eba\u4fe1\u606f\u975e\u6cd5",107:"\u7528\u6237\u540d\u6216\u81ea\u6211\u4ecb\u7ecd\u7684\u6587\u5b57\u4e2d\u542b\u6709\u4e00\u4e9b\u4e0d\u6070\u5f53\u7684\u8bcd\u6c47\uff0c\u8bf7\u60a8\u91cd\u65b0\u63d0\u4ea4\u6ce8\u518c\u4fe1\u606f",108:"\u7528\u6237\u540d\u4e3a\u7a7a",266:"\u6dfb\u52a0\u597d\u53cb\u91cd\u590d",205:"\u5bf9\u4e0d\u8d77\uff0c\u60a8\u6ca1\u6709\u6b64\u4fee\u6539\u6743\u9650\uff0c\u8bf7\u5230\u60a8\u6ce8\u518c\u7684\u7cfb\u7edf\u4e2d\u4fee\u6539\u4fe1\u606f",305:"\u6dfb\u52a0\u8bcd\u8bed\u5230\u8fbe\u6700\u5927\u503c",306:"\u6dfb\u52a0\u8bcd\u8bed\u5230\u8fbe\u6700\u5927\u503c",309:"\u6dfb\u52a0\u8bcd\u8bed\u5230\u8fbe\u6700\u5927\u503c",260:"\u8ba8\u8bba\u533a\u5df2\u6ee1\u4e09\u4e2a\u5427\u4e3b",261:"\u8be5\u7528\u6237\u5df2\u7ecf\u662f\u8be5\u5427\u7684\u5427\u4e3b",262:"\u8be5\u7528\u6237\u5df2\u7ecf\u662f\u4e09\u4e2a\u8d34\u5427\u7684\u5427\u4e3b",263:"\u7528\u6237\u6307\u5b9a\u597d\u53cb\u540d\u4e0d\u5b58\u5728",264:"\u7528\u6237\u597d\u53cb\u6570\u5230\u8fbe\u6700\u5927",265:"\u7528\u6237\u672a\u767b\u9646",267:"\u6dfb\u52a0\u6536\u85cf\u5939\u5230\u6700\u5927\u503c",300:"\u8fbe\u5230\u7cfb\u7edf\u6700\u5927\u8fc7\u6ee4\u7528\u6237\u5bb9\u91cf",301:"\u8fbe\u5230\u7cfb\u7edf\u6700\u5927\u8fc7\u6ee4IP\u5bb9\u91cf",302:"\u7ba1\u7406\u5458\u6307\u5b9a\u7684\u5173\u952e\u5b57\u4e0d\u5b58\u5728\u8d34\u5427",303:"\u7ba1\u7406\u5458\u6307\u5b9a\u7684\u7528\u6237\u540d\u4e0d\u5b58\u5728",304:"\u7ba1\u7406\u5458\u6307\u5b9a\u7684IP\u6709\u8bef",316:"\u64cd\u4f5c\u5931\u8d25\uff01\u8be5IP\u5730\u5740\u4e3a\u624b\u673a\u4e0a\u7f51\u4f7f\u7528\uff0c\u65e0\u6cd5\u76f4\u63a5\u5c01\u7981\u3002",401:"\u6839\u636eforum_id \u4e0d\u80fd\u5f97\u5230\u8ba8\u8bba\u540d",402:"\u5f97\u5230\u7684\u8d34\u5427\u540d\u592a\u957f",870:"\u697c\u9ad8\u4eba\u591a\uff0c\u8bf7\u52ff\u63a8\u5012",871:"\u697c\u9ad8\u614e\u63a8\uff0c\u51b7\u9759\u4f1a\u513f\u5427",872:"\u7cbe\u54c1\u6765\u7684\u4e0d\u6613\uff0c\u8bf7\u52ff\u64c5\u81ea\u5220\u9664",874:"\u5427\u520a\u6765\u5f97\u4e0d\u6613\uff0c\u8bf7\u52ff\u64c5\u81ea\u5220\u9664"};;var Thread_add_result={resultNo:0,fid:"",tid:"",vid:"",sign:"",bdauditreason:0,bdQueryWordEnc:"",autoMsg:"",is_login:0,init:function(a){if(Thread_add_result&&a.data&&typeof(a.data)=="object"){for(var b in a.data){Thread_add_result[b]=a.data[b]}}_.Module.use("ueglibs/widget/Ban",[],function(c){Thread_add_result.BanLib=c});Thread_add_result.resultNo=a.no},isNeedWaitForCheck:function(){var a=false;switch(this.resultNo){case 9:case 20:case 23:a=true;break;default:break}return a},isNeedBindPhone:function(){return this.resultNo==4010},Action_FocusTitle:"focusTitle",Action_FocusContent:"focusContent",Action_ClearYZM:"clearYZM",Action_FocusUrl:"focusUrl",Action_GoToHead:"goToHead",Action_FlushAndGoToHead:"flushAndGoToHead",getActionType:function(){var a="";switch(this.resultNo){case 10:case 14:case 501:case 15:case 36:case 41:case 42:case 43:case 46:case 9001:case 10010:case 10011:case 10012:case 10013:case 220012:case 220015:case 220035:case 2130001:case 2130007:case 2130008:case 2130009:case 2130011:case 2130012:case 2130014:case 2130005:a=this.Action_FocusContent;break;case 11:case 20:a=this.Action_FocusTitle;break;case 17:case 0:a=this.Action_FlushAndGoToHead;break;case 22:case 9:case 23:case 119:case 44:case 100:case 703:case 704:case 705:a=this.Action_GoToHead;break;case 38:case 39:case 40:a=this.Action_ClearYZM;break;case 1120:case 1121:a=this.Action_FocusUrl;break;default:break}return a},getMessage:function(){var a="",b=null;if(this.resultNo>=901&&this.resultNo<=950){return Thread_add_result.autoMsg}if(b==null){b=(PageData.forum)?PageData.forum.id:null}if(b==null){b=PageData.forum_id}if(b==null){b=PageData.forumID}switch(this.resultNo){case 10:a="\u8d34\u5b50\u5185\u5bb9\u5305\u542b\u592a\u5c11\u7684\u6587\u5b57";break;case 11:a="\u8d34\u5b50\u6807\u9898\u548c\u5185\u5bb9\u592a\u957f";break;case 12:if(b!=null){a=this.BanLib.render("oldPosterDialog")}else{a="\u64cd\u4f5c\u5931\u8d25"}break;case 13:if(b!=null){a="\u64cd\u4f5c\u5931\u8d25\uff0c\u60a8\u7684\u7f51\u7edc\u5730\u5740\u7531\u4e8e\u975e\u6cd5\u64cd\u4f5c\u88ab\u5c01
    \u67e5\u770b\u5c01\u7981\u4fe1\u606f'}else{a="\u60a8\u7684\u7f51\u7edc\u5730\u5740\u7531\u4e8e\u975e\u6cd5\u64cd\u4f5c\u88ab\u5c01 "}break;case 14:a="\u60a8\u53d1\u5e03\u7684\u8d34\u5b50\u5df2\u7ecf\u5b58\u5728";break;case 501:case 15:a="\u8bf7\u4e0d\u8981\u53d1\u8868\u542b\u6709\u4e0d\u9002\u5f53\u5185\u5bb9\u7684\u7559\u8a00
    \u8bf7\u4e0d\u8981\u53d1\u8868\u5e7f\u544a\u8d34";break;case 16:a="\u5bf9\u4e0d\u8d77\uff0c\u60a8\u6240\u8f93\u5165\u7684\u8d34\u5427\u4e0d\u5b58\u5728\u3002\u7531\u4e8e\u7cfb\u7edf\u5347\u7ea7\u7ef4\u62a4\uff0c\u65b0\u5efa\u8d34\u5427\u529f\u80fd\u6682\u505c\uff0c\u5e0c\u671b\u5f97\u5230\u60a8\u7684\u8c05\u89e3\uff01";break;case 19:case 200:case 201:case 202:a="\u60a8\u7684\u7528\u6237\u540d\u6216\u8005\u5bc6\u7801\u586b\u5199\u6709\u8bef\uff0c\u8bf7\u786e\u8ba4\u540e\u518d\u53d1\u8868";break;case 20:a="\u60a8\u53d1\u8868\u7684\u8d34\u5b50\u7684\u6807\u9898\u6216\u6b63\u6587\u5305\u542b\u592a\u5c11\u7684\u6587\u5b57\uff0c\u8bf7\u4fee\u6539\u540e\u518d\u53d1\u8868";break;case 17:a="\u672c\u5427\u5f53\u524d\u53ea\u80fd\u6d4f\u89c8\uff0c\u4e0d\u80fd\u53d1\u8d34\uff01";break;case 18:case 21:a="\u5176\u4ed6\u672a\u77e5\u539f\u56e0";break;case 22:a="\u60a8\u53d1\u8868\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u7531\u4e8e\u7279\u6b8a\u539f\u56e0\u6211\u4eec\u9700\u8981\u6838\u5b9e\u8be5\u8d34\u5185\u5bb9\u662f\u5426\u542b\u6709\u4e0d\u826f\u4fe1\u606f\uff0c\u6211\u4eec\u4f1a\u572810\u5206\u949f\u5185\u786e\u8ba4\uff0c\u8bf7\u60a8\u8010\u5fc3\u7b49\u5f85\uff01";break;case 9:a=this.getCheckMessage(this.bdauditreason);break;case 33:if(Thread_add_result.is_login==1){a="\u60a8\u53d1\u8d34\u592a\u5feb\u4e86:) \u8bf7\u7a0d\u540e\u518d\u53d1"}else{a="\u60a8\u53d1\u8d34\u901f\u5ea6\u592a\u5feb\u4e86\u3002\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u8d34\uff0c\u7cfb\u7edf\u5bf9\u533f\u540d\u53d1\u8d34\u8fdb\u884c\u4e25\u683c\u7684\u63a7\u5236\uff0c\u767b\u5f55\u7528\u6237\u4e0d\u53d7\u5f71\u54cd"}break;case 34:if(Thread_add_result.is_login==1){a="\u60a8\u8bf4\u8bdd\u592a\u5feb\u4e86:) \u8bf7\u5148\u505c\u4e0b\u6765\u559d\u676f\u8336\u5427\uff0c\u6216\u8005\u53ef\u4ee5\u53bb\u522b\u7684\u5427\u770b\u770b\u54e6\uff0c\u4e00\u5b9a\u4f1a\u53d1\u73b0\u8fd8\u6709\u60a8\u611f\u5174\u8da3\u7684\u8bdd\u9898"}else{a="\u60a8\u53d1\u8d34\u901f\u5ea6\u592a\u5feb\u4e86\u3002\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u5e16\uff0c\u7cfb\u7edf\u5bf9\u533f\u540d\u53d1\u8d34\u8fdb\u884c\u4e25\u683c\u7684\u63a7\u5236\uff0c\u767b\u5f55\u7528\u6237\u4e0d\u53d7\u5f71\u54cd"}break;case 220034:a="\u60a8\u8bf4\u8bdd\u592a\u5feb\u4e86:) \u8bf7\u5148\u505c\u4e0b\u6765\u559d\u676f\u8336\u5427\uff0c\u6216\u8005\u53ef\u4ee5\u53bb\u522b\u7684\u5427\u770b\u770b\u54e6\uff0c\u4e00\u5b9a\u4f1a\u53d1\u73b0\u8fd8\u6709\u60a8\u611f\u5174\u8da3\u7684\u8bdd\u9898";break;case 220035:a="\u4eb2\uff0c\u5df2@\u4e0d\u5c11\u4eba\u4e86\uff0c\u4ee5\u514d\u6253\u6405\u66f4\u591a\u4eba\uff0c\u6b47\u4e00\u4f1a\u5427~";break;case 35:if(Thread_add_result.is_login==1){a="\u4eb2\uff0c\u5df2@\u4e0d\u5c11\u4eba\u4e86\uff0c\u4ee5\u514d\u6253\u6405\u66f4\u591a\u4eba\uff0c\u6b47\u4e00\u4f1a\u5427~"}else{a="\u60a8\u53d1\u8d34\u901f\u5ea6\u592a\u5feb\u4e86\u3002\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u8d34\uff0c\u7cfb\u7edf\u5bf9\u533f\u540d\u53d1\u8d34\u8fdb\u884c\u4e25\u683c\u7684\u63a7\u5236\uff0c\u767b\u5f55\u7528\u6237\u4e0d\u53d7\u5f71\u54cd"}break;case 36:a="\u8bf7\u4e0d\u8981\u53d1\u5e7f\u544a\u8d34\uff01";break;case 37:a="\u60a8\u5df2\u5c1d\u8bd5\u63d0\u4ea4\u591a\u6b21\u4e86\uff0c\u8bf7\u8fd4\u56de\u540e\u5237\u65b0\u9875\u9762\uff0c\u65b9\u53ef\u91cd\u65b0\u53d1\u8d34";break;case 38:a="\u9a8c\u8bc1\u7801\u8d85\u65f6\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165";break;case 39:a="\u7531\u4e8e\u60a8\u591a\u6b21\u8f93\u9519\u9a8c\u8bc1\u7801\uff0c\u8bf7\u60a8\u8fd4\u56de\u540e\u5237\u65b0\u9875\u9762\uff0c\u65b9\u53ef\u91cd\u65b0\u53d1\u8d34";break;case 40:a="\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef\uff0c\u8bf7\u60a8\u8fd4\u56de\u540e\u91cd\u65b0\u8f93\u5165";break;case 41:a="\u60a8\u7684\u8d34\u5b50\u53ef\u80fd\u5305\u542b\u4e0d\u5408\u9002\u7684\u5185\u5bb9\uff0c\u8bf7\u60a8\u786e\u5b9a\u540e\u518d\u63d0\u4ea4";break;case 42:a="\u60a8\u7684\u53d1\u8d34\u884c\u4e3a\u88ab\u7cfb\u7edf\u8ba4\u4e3a\u6709\u53d1\u5e7f\u544a\u5acc\u7591\uff0c\u8bf7\u60a8\u7a0d\u540e\u518d\u53d1";break;case 43:a="\u60a8\u7684\u53d1\u8d34\u884c\u4e3a\u6216\u8d34\u5b50\u5185\u5bb9\u6709\u5e7f\u544a\u6216\u4e0d\u5408\u9002\u7684\u7279\u5f81\uff0c\u8bf7\u60a8\u786e\u5b9a\u540e\u518d\u53d1\u9001";break;case 23:a="\u60a8\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u9700\u8981\u7cfb\u7edf\u5ba1\u6838\u901a\u8fc7\u540e\u624d\u80fd\u5efa\u7acb\u8d34\u5427";break;case 119:a="\u5bf9\u4e0d\u8d77\uff0c\u672c\u4e3b\u9898\u7684\u56de\u590d\u6570\u5df2\u7ecf\u8fbe\u5230\u4e0a\u9650\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff0c\u6b22\u8fce\u60a8\u6d4f\u89c8\u672c\u5427\u7684\u5176\u5b83\u4e3b\u9898";break;case 1120:a="\u62b1\u6b49\uff0c\u60a8\u8f93\u5165\u7684\u56fe\u7247\u3001\u89c6\u9891\u94fe\u63a5\u5730\u5740\u9519\u8bef\uff0c\u60a8\u53ef\u4ee5\u70b9\u51fb\u67e5\u770b\u76f8\u5173\u5e2e\u52a9\u6216\u8fd4\u56de\u4fee\u6539";break;case 1121:a="\u62b1\u6b49\uff0c\u89c6\u9891\u670d\u52a1\u5347\u7ea7\u4e2d\uff0c\u60a8\u6682\u65f6\u65e0\u6cd5\u53d1\u8868\u5e26\u6709\u89c6\u9891\u7684\u8d34\u5b50\uff0c\u7ed9\u60a8\u5e26\u6765\u7684\u4e0d\u4fbf\u8bf7\u539f\u8c05";break;case 44:a="\u5bf9\u4e0d\u8d77\uff0c\u672c\u5427\u6682\u65f6\u9650\u5236\u90e8\u5206\u7528\u6237\u53d1\u8868\u4e3b\u9898\u8d34\u5b50\uff0c\u60a8\u53ef\u4ee5\u6d4f\u89c8\u6216\u56de\u590d\u672c\u5427\u5176\u5b83\u5185\u5bb9\uff0c\u7ed9\u60a8\u5e26\u6765\u4e0d\u4fbf\u5e0c\u671b\u5f97\u5230\u60a8\u7684\u8c05\u89e3\u3002";break;case 100:a="\u5bf9\u4e0d\u8d77\uff0c\u672c\u5427\u6682\u65f6\u9650\u5236\u90e8\u5206\u7528\u6237\u4f7f\u7528\u5b8c\u6574\u7684\u8d34\u5427\u529f\u80fd\uff0c\u60a8\u53ef\u4ee5\u6d4f\u89c8\u672c\u5427\u5176\u5b83\u5185\u5bb9\uff0c\u7ed9\u60a8\u5e26\u6765\u4e0d\u4fbf\u5e0c\u671b\u5f97\u5230\u60a8\u7684\u8c05\u89e3\u3002";break;case 701:a="\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u5e16\uff0c\u672c\u5427\u4e0d\u5141\u8bb8\u672a\u767b\u5f55\u7528\u6237\u53d1\u8d34\uff0c\u767b\u5f55\u7528\u6237\u4e0d\u53d7\u5f71\u54cd\uff0c\u7ed9\u60a8\u5e26\u6765\u7684\u4e0d\u4fbf\u6df1\u8868\u6b49\u610f";break;case 702:a="\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u5e16\uff0c\u672c\u5427\u9650\u5236\u90e8\u5206\u7528\u6237\u53d1\u8d34\uff0c\u7ed9\u60a8\u5e26\u6765\u7684\u4e0d\u4fbf\u6df1\u8868\u6b49\u610f";break;case 703:a="\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u5e16\uff0c\u672c\u5427\u88ab\u8bbe\u7f6e\u4e3a\u4ec5\u672c\u5427\u4f1a\u5458\u624d\u80fd\u53d1\u8d34\uff0c\u7ed9\u60a8\u5e26\u6765\u7684\u4e0d\u4fbf\u6df1\u8868\u6b49\u610f\u3002\u70b9\u6b64\u7533\u8bf7\u52a0\u5165\u672c\u5427\u4f1a\u5458";break;case 704:a="\u4e3a\u4e86\u51cf\u5c11\u6076\u610f\u704c\u6c34\u548c\u5e7f\u544a\u5e16\uff0c\u672c\u5427\u88ab\u8bbe\u7f6e\u4e3a\u4ec5\u672c\u5427\u7ba1\u7406\u56e2\u961f\u624d\u80fd\u53d1\u8d34\uff0c\u7ed9\u60a8\u5e26\u6765\u7684\u4e0d\u4fbf\u6df1\u8868\u6b49\u610f";break;case 705:a="\u672c\u5427\u5f53\u524d\u53ea\u80fd\u6d4f\u89c8\uff0c\u4e0d\u80fd\u53d1\u8d34\uff01";break;case 706:a="\u62b1\u6b49\uff0c\u672c\u8d34\u6682\u65f6\u65e0\u6cd5\u56de\u590d\u3002";break;case 45:a="\u62b1\u6b49\uff0c\u60a8\u63d0\u4ea4\u7684\u8d34\u5427\u540d\u79f0\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u76ee\u524d\u65e0\u6cd5\u521b\u5efa\uff0c\u63a8\u8350\u60a8\u4f7f\u7528\u6c49\u5b57\u3001\u5b57\u6bcd\u6216\u6570\u5b57\u4f5c\u4e3a\u8d34\u5427\u540d\u79f0";break;case 46:a="\u62b1\u6b49\uff0c\u60a8\u7684\u8d34\u5b50\u8fc7\u957f\uff0c\u65e0\u6cd5\u6b63\u5e38\u63d0\u4ea4\u3002\u5efa\u8bae\u60a8\u7cbe\u7b80\u6216\u5206\u6bb5\u540e\u91cd\u65b0\u63d0\u4ea4\uff0c\u8c22\u8c22!";break;case 800:break;case 801:break;case 802:break;case 803:break;case 804:break;case 805:break;case 806:break;case 807:break;case 808:break;case 809:break;case 814:break;case 815:a="\u62b1\u6b49\uff0c\u60a8\u5df2\u9000\u51fa\u767b\u5f55\u6216\u672a\u8d2d\u4e70\u97f3\u4e50\u9053\u5177\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u8bd5";break;case 900:a="\u4e3a\u62b5\u5fa1\u6316\u575f\u5371\u5bb3\uff0c\u672c\u5427\u5427\u4e3b\u5df2\u653e\u51fa\u8d34\u5427\u795e\u517d--\u8d85\u7ea7\u9759\u6b62\u86d9\uff0c\u672c\u8d34\u6682\u65f6\u65e0\u6cd5\u56de\u590d\u3002";break;case 961:a="\u53d1\u8d34\u5931\u8d25\uff0c\u60a8\u8f93\u5165\u7684\u56fe\u7247\u5730\u5740\u6709\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u66f4\u6b63\u540e\u518d\u6b21\u53d1\u5e03\uff1a\uff09";break;case 9001:a="\u7531\u4e8e\u533f\u540d\u72b6\u6001\u6216\u672c\u5427\u8bbe\u7f6e\uff0c\u65e0\u6cd5\u53d1\u8868\u5e26\u6709\u56fe\u7247\u7684\u4e3b\u9898\u3002";break;case 2100:a="\u5185\u5bb9\u542b\u6709\u9ad8\u7ea7\u5b57\u4f53\u6548\u679c\uff0c\u4fdd\u6301\u8fde\u7eed\u7b7e\u5230\u5c31\u80fd\u4f7f\u7528\u54e6~~";break;case 4010:a="\u60a8\u7684\u8d26\u53f7\u5b58\u5728\u5b89\u5168\u98ce\u9669\u6682\u4e0d\u80fd\u53d1\u8d34\uff0c\u8bf7\u5148\u8fdb\u884c\u624b\u673a\u7ed1\u5b9a\u540e\u518d\u53d1\u8d34\u5427\u3002";break;case 9000:a="\u60a8\u8fd8\u6ca1\u6709\u7528\u6237\u540d\uff0c\u4e0d\u80fd\u5728\u672c\u5427\u53d1\u8d34\u3002\u8bf7\u5148\u586b\u5199\u7528\u6237\u540d\u3002";break;case 10010:a="\u60a8\u7684\u6027\u522b\u65e0\u6cd5\u8fdb\u884c\u59b9\u7eb8\u8ba4\u8bc1
    \u53bb\u4fee\u6539\u6211\u7684\u6027\u522b>>";break;case 10012:a="\u8bf7\u4e0a\u4f20\u81f3\u5c11\u4e00\u5f20\u56fe\u7247\u3002";break;case 10013:a="\u60a8\u53d1\u5f80\u7684\u5427\u672a\u5f00\u901a\u59b9\u7eb8\u8ba4\u8bc1\u529f\u80fd\u3002";break;case 2130001:a="\u8bf7\u4e0d\u8981\u7ed9\u975e\u59b9\u7eb8\u7528\u6237\u6295\u7968\u3002";break;case 2130007:a="\u60a8\u7684\u8d26\u53f7\u5df2\u88ab\u5c01\u7981\u3002";break;case 2130008:a="\u60a8\u5df2\u7ecf\u7ed9\u8be5\u7528\u6237\u6295\u8fc7\u7968\u3002";break;case 2130009:a="\u6295\u7968\u5931\u8d25\u3002";break;case 2130005:a="\u60a8\u5df2\u7ecf\u53d1\u8d77\u8fc7\u59b9\u7eb8\u8ba4\u8bc1\u8d34
    http://tieba.baidu.com/p/"+Thread_add_result.thread_id+"";break;case 2130011:a="\u59b9\u7eb8\u8ba4\u8bc1\u7528\u6237\u4e4b\u95f4\u4e0d\u80fd\u76f8\u4e92\u6295\u7968\u3002";break;case 220012:a="\u60a8\u7684\u8d26\u53f7\u5df2\u88ab\u5c01\u7981\u3002";break;case 220013:a="\u60a8\u7684IP\u5df2\u88ab\u5c01\u7981\u3002";break;case 225001:a="\u60a8\u7684\u8d26\u53f7\u7981\u6b62\u8d34\u6761\u3002";break;case 220015:a="\u60a8\u8f93\u5165\u7684\u5185\u5bb9\u542b\u6709\u654f\u611f\u4fe1\u606f\u3002";break;case 2190000:a="

    \u62b1\u6b49\u60a8\u6ca1\u6709\u8d34\u6761\u9053\u5177\u4e86\u4e0d\u80fd\u53d1\u5e03\u8d34\u6761\u4fe1\u606f\u3002

    PS\uff1a\u53d1\u8d34,\u56de\u8d34,\u53c2\u52a0\u6d3b\u52a8\u90fd\u6709\u673a\u4f1a\u83b7\u5f97\u8d34\u6761\u9053\u5177\u3002

    ";break;case 2130012:a="\u4e0d\u80fd\u7ed9\u81ea\u5df1\u6295\u7968\u3002";break;case 2130014:a="\u4e0d\u80fd\u7ed9\u7537\u6027\u7528\u6237\u6295\u7968";break;case 2190001:a='

    \u8d34\u6761\u6ca1\u6709\u53d1\u5e03\u6210\u529f\u8bf7\u7a0d\u540e\u5728\u8bd5\u3002

    PS\uff1a\u53d1\u5e03\u8d34\u6761\u670910\u79d2\u7684CD\u65f6\u95f4\u3002

    ';break;case 2190002:a="\u62b1\u6b49\uff0c\u6bcf\u5c0f\u65f6\u53ea\u80fd\u62a2\u4e00\u6b21\u8d34\u6761\u3002";break;case 2190003:a="

    \u771f\u9057\u61be~\u60a8\u6ca1\u6709\u62a2\u5230\u8d34\u6761\u9053\u5177\u3002

    PS\uff1a\u7b49\u7ea7\u8d8a\u9ad8\u83b7\u5f97\u9053\u5177\u51e0\u7387\u8d8a\u9ad8\u54e6\uff01

    ";break;case 2190004:a="\u670d\u52a1\u5668\u5fd9\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5";break;case 2190005:a="\u60a8\u7684\u8d26\u53f7\u5df2\u88ab\u5c01\u7981\u3002";break;case 2190006:a="\u8d34\u6761\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\u3002";break;case 2190007:a="\u8d34\u6761\u5185\u5bb9\u8fc7\u957f\u3002";break;case 2190008:a="\u62b1\u6b49\uff0c\u4e00\u5929\u6700\u591a\u53ea\u80fd\u83b7\u5f9710\u4e2a\u9053\u5177";break;default:a="\u672a\u77e5\u9519\u8bef\u3002";break}return a},getCheckMessage:function(b){var a="";switch(b){case -61:a="\u60a8\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u4e3a\u4e86\u4fdd\u8bc1\u8d34\u5b50\u8d28\u91cf\uff0c\u672c\u5427\u6240\u53d1\u7684\u8d34\u5b50\u5f85\u7cfb\u7edf\u5ba1\u6838\u901a\u8fc7\u540e\u624d\u80fd\u663e\u793a\uff0c\u8bf7\u60a8\u8010\u5fc3\u7b49\u5f85";break;case -62:a="\u60a8\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u4e3a\u4e86\u4fdd\u8bc1\u8d34\u5b50\u8d28\u91cf\uff0c\u672c\u5427\u8d34\u56fe\u7684\u8d34\u5b50\u9700\u8981\u5ba1\u6838\u901a\u8fc7\u540e\u624d\u80fd\u663e\u793a\uff0c\u8bf7\u60a8\u8010\u5fc3\u7b49\u5f85";break;case -74:case -75:case -60:a="\u60a8\u53d1\u8868\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u7cfb\u7edf\u9700\u8981\u6838\u5b9e\u8be5\u8d34\u5b50\u5185\u5bb9\u662f\u5426\u542b\u6709\u4e0d\u826f\u4fe1\u606f\uff0c\u8d34\u5b50\u5728\u5ba1\u6838\u901a\u8fc7\u540e\u624d\u80fd\u663e\u793a\uff0c\u8bf7\u60a8\u8010\u5fc3\u7b49\u5f85";break;case -70:a="\u60a8\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u4e3a\u4e86\u63a7\u5236\u5e7f\u544a\u8d34\uff0c\u9700\u8981\u901a\u8fc7\u5ba1\u6838\u540e\u624d\u80fd\u53d1\u5e03\u3002\u767b\u9646\u7f72\u540d\u53d1\u8d34\u4e0d\u53d7\u6b64\u9650\u5236\u3002";break;case -71:a="\u60a8\u53d1\u8868\u7684\u5e16\u5b50\u592a\u957f\u4e86\u3002\u4e3a\u4e86\u9632\u6b62\u704c\u6c34\uff0c\u9700\u7cfb\u7edf\u5ba1\u6838\u540e\u624d\u80fd\u663e\u793a\uff0c\u8bf7\u7a0d\u540e\u67e5\u770b";break;default:a="\u60a8\u53d1\u8868\u7684\u8d34\u5b50\u5df2\u7ecf\u6210\u529f\u63d0\u4ea4\uff0c\u4f46\u7cfb\u7edf\u9700\u8981\u6838\u5b9e\u8be5\u8d34\u5b50\u5185\u5bb9\u662f\u5426\u542b\u6709\u4e0d\u826f\u4fe1\u606f\uff0c\u8d34\u5b50\u5728\u5ba1\u6838\u901a\u8fc7\u540e\u624d\u80fd\u663e\u793a\uff0c\u8bf7\u60a8\u8010\u5fc3\u7b49\u5f85";break}return a}};;var SignNameApply={fillPanelId:"signNamePanel",getUrl:"/f/user/sign_list?t="+new Date().getTime().toString(36),isFirst:true,isUsed:0,data:{},template:function(){var b='
    ';b+=' ';b+='";if(this.data.signs.length>0){b+='";b+=' \u67e5\u770b\u5168\u90e8'}else{b+='\uff08\u60a8\u76ee\u524d\u6ca1\u6709\u53ef\u4f7f\u7528\u7684\u7b7e\u540d\u6863\uff0c \u67e5\u770b\u5168\u90e8)'}b+="";b+="
    ";return b},active:function(){if(this.isFirst){this.isFirst=false;var a=this.getUrl;this.postProcess(a,null,this.build)}},postProcess:function(b,c,d){var a=this;if(c==null){$.get(b,function(f){var e=$.json.decode(f);if(e.no==0){if(typeof d=="function"){d(a,e)}}})}else{$.post(b,SignNameApply._convertToQueryString(c),function(f){var e=$.json.decode(f);if(e.no==0){if(typeof d=="function"){d(a,e)}}})}},_convertToQueryString:function(b){var c=[];for(var a in b){c.push(encodeURIComponent(a)+"="+encodeURIComponent(b[a]))}return c.join("&")},build:function(a,b){a.data=b.data;a.isUsed=b.data.need;a.fillToPage()},fillToPage:function(){$("#"+this.fillPanelId).html(this.template());this.initPage()},showList:function(){if(this.isUsed==1){$("#signNameShow").css("display","")}else{$("#signNameShow").css("display","none")}},initPage:function(){if(this.isUsed==1){$("#useSignName").tbattr("checked",true)}else{$("#useSignName").tbattr("checked",false)}this.showList();this.handlerEven()},setisUsed:function(a){if(a){this.isUsed=1}else{this.isUsed=0}this.showList();this.postProcess("/f/user/cm/sign_setneed",{need:this.isUsed,tbs:PageData.tbs},null)},handlerEven:function(){var a=this;$("#useSignName").click(function(){a.setisUsed(this.checked)})}};;var PostHandler={post:function(a,b,d,c){$.ajax({type:"post",async:false,dataType:"json",url:a,data:b,success:function(e){if(d){d(e)}}})},execute:function(b,c,d){var a=FORUM_POST_URL[b];PostHandler.post(a,c,d)}};;if(!UTSTART){var UTSTART=new Date().getTime()}if(!MOUSEPWD_CLICK){var MOUSEPWD_CLICK=0}var MousePwd=(function(){var n={ea:[],ma:[]};var h={};var c=false;var i=(new Date()).getTime();var o={};var j=[];var q=[];function k(u){if(!u){var u=window.event}var t=0;var v=0;if(u.pageX||u.pageY){t=u.pageX;v=u.pageY}else{if(u.clientX||u.clientY){t=u.clientX+document.body.scrollLeft;v=u.clientY+document.body.scrollTop}}return[t,v]}function b(t){return t.offsetParent?(t.offsetLeft+b(t.offsetParent)):t.offsetLeft}function a(t){return t.offsetParent?(t.offsetTop+a(t.offsetParent)):t.offsetTop}function p(t){if(t.preventDefault){t.preventDefault()}else{window.event.returnValue=false}}function s(A){A.stopPropagation();var v=k(A);var x=n[this.id];if(x){if(!x.hover){x.hover=true;x.count++}}else{var w=b(this);var y=a(this);var z=w+this.offsetWidth;var u=y+this.offsetHeight;x=n[this.id]={hover:true,count:1,left:w,top:y,right:z,buttom:u}}if(!x["mouse"+x.count]){x["mouse"+x.count]=[];x["time"+x.count]={start:(new Date()).getTime()};n.ma.push(x["mouse"+x.count])}x["mouse"+x.count].push(v);q.push("1")}function r(v){v.stopPropagation();var t=k(v);var u=n[this.className];if(u&&u.hover){if(t[0]&&t[0]>u.left&&t[0]u.top&&t[1]0){var u=n.ma[t-1];return u[u.length-1]}}function f(){var u="";var t=q.length;if(t>10){q=q.slice(t-10)}u=q.join(",");return u}function l(){if(c){return h}var t=[e(),f(),(new Date()).getTime()-UTSTART,[screen.width,screen.height].join(",")].join("\t");h.c=d(t)+","+i+""+MOUSEPWD_CLICK;c=true;return h}function d(y){var t=[];var w={};var x=i%100;for(var v=0,u=y.length;v'),this.dom.html(['
      ','
      ','
       
      ',"
      "].join("")),this.$content=this.dom.find(".j_panel_content:first"),this.$scrollBar=this.dom.find(".j_scroll_bar:first"),this.$scrollButton=this.dom.find(".j_scroll_button:first"),t.padding&&this.$content.css("padding",t.padding)},_bindEvents:function(){var t=this,o=t.$content.get(0);this.$scrollButton.on("drag",function(l,i){if(i){var n=i.position;o.scrollTop=n.top/t.$content.height()*o.scrollHeight}}),this.$content.mousewheel(function(o,l){o.preventDefault(),o.stopPropagation(),t._hasScroll&&t.scrollTopTo(t._scrollTop-l*t._scrollStep)})},scrollTopTo:function(t){var o=this,l=o.$content.get(0),t=Math.max(Math.min(t,l.scrollHeight-o.$content.height()),0);t!=o._scrollTop&&(o._scrollTop=t,o.$content.stop(),o.$content.scrollTop(o._scrollTop),o._resizeScroll())},setHeight:function(t){this._maxHeight=t,this._resizeHeight(),this._resizeScroll(),this.$scrollButton.draggable({containment:"parent"})},setContent:function(t){this.$content.html(t),this.$content.get(0).scrollTop=this._scrollTop=0,this._resizeHeight(),this._resizeScroll()},appendContent:function(t){this.$content.append(t),this._resizeHeight(),this.scrollTopTo(2e4)},clearContent:function(){this.setContent("")},_resizeHeight:function(){this.$content.css("height","");var t=this.$content.get(0),o=t.scrollHeight,l=Math.min(o,this._maxHeight);this.$content.css("height",l)},_resizeScroll:function(){var t=this.$content.get(0),o=t.scrollHeight,l=t.scrollTop,i=this.$content.innerHeight();i>=o?(this.$scrollBar.hide(),this.dom.addClass("tbui_no_scroll_bar"),this.trigger("onScrollBarHide"),this._hasScroll=!1):(this.$scrollBar.show(),this.$scrollBar.height(i),this.$scrollButton.height(i/o*i),this.$scrollButton.css("top",l/o*i),this.trigger("onScrollBarShow"),this._hasScroll=!0)}}});_.Module.define({path:"common/component/CustomEmotion",requires:[],sub:{ORIGINAL_PIC_URL_PREFIX:"http://imgsrc.baidu.com/forum/pic/item/",THUMBNAIL_PIC_URL_PREFIX:"http://imgsrc.baidu.com/forum/abpic/item/",_template:["","","","","","","","","","","",'',"","
      描述
      表情图片
      确定 ','取消
      "],initial:function(){},openDialog:function(t){var e=this;this.$root=$(this._template.join("")),e.$previewContainer=e.$root.find(".j_preview");var i=e.$root.find(".j_fake_button");if(t.url){var o=t.url,n=o.substring(o.lastIndexOf("/")+1,o.lastIndexOf("."));e.updatePictureId(n),e.$previewContainer.prev().hide()}this.$root.find(".j_ok").click(function(t){t.preventDefault(),t.stopPropagation();var i=e.$root.find(".j_title").val();null!=e.original&&null!=e.thumbnail?(e.addCustomEmotion({title:i,url:e.original,thumbnail:e.thumbnail}),e.trigger("ok"),a.close()):alert("请添加图片作为自定义表情!")}),this.$root.find(".j_cancel").click(function(t){t.preventDefault(),t.stopPropagation(),a.close()});var a=new $.dialog({title:"添加自定义表情",width:350,html:this.$root});a.show();var r=this.$root.find(".j_upload_button"),s=i.outerWidth(),u=i.outerHeight();r.css({width:s,height:u}),_.Module.use("common/widget/image_uploader_manager",{container:r,width:s,height:u,queueLen:1,maxParallel:1,fid:t.forumId},function(t){t.bind("onFileSelected",function(i,o){var n=o.imageList[0];n&&(r.next().html(n.name),e.$previewContainer.html("正在上传,请稍候..."),t.startUpload())}),t.bind("onComplete",function(t,i){var o=i.imageList[0];if(o&&o.response){var n=o.response;0==n.error_code&&e.updatePictureId(n.info.pic_id_encode)}})})},updatePictureId:function(t){this.thumbnail=this.THUMBNAIL_PIC_URL_PREFIX+t+".jpg",this.original=this.ORIGINAL_PIC_URL_PREFIX+t+".jpg",this.$previewContainer.html("")},getCustomEmotions:function(){var t=$.tb.Storage.get("customEmotion");return t?$.json.decode(t):[]},addCustomEmotion:function(t){var e,i=$.tb.Storage.get("customEmotion");i?(e=$.json.decode(i),e.push(t)):e=[t],this.saveCustomEmotion(e)},removeCustomEmotion:function(t){var e=$.tb.Storage.get("customEmotion");if(e){for(var i,o=$.json.decode(e),n=null,a=0;i=o[a];a++)if(t===i.url){n=a;break}null!==n&&o.splice(n,1),this.saveCustomEmotion(o)}},saveCustomEmotion:function(t){var e=new Date;e.setFullYear(e.getFullYear()+1),$.tb.Storage.set("customEmotion",$.json.encode(t),e)}}});_.Module.define({path:"common/component/UeditorEmotion",requires:["common/component/ScrollPanel","common/component/CustomEmotion"],sub:{$container:null,_template:{inner:['
      ','
      ','
      '].join(""),tab:'
        #{content}
      ',tabItem:'
    • #{name}
    • ',table:'#{content}
      ',tr:"#{content}",td:'#{content}',tdEmpty:'',a:'#{content}'},path:"http://tb2.bdstatic.com/tb/editor/images/",defaultGroup:"face",sequence:["custom","face","ySmile","ali","luoluobu","qpx","xyj","lt","bfmn","zxh","tsj","wdj","lxs","baodong","baodong_d","bobo","shadow","ldw","10th","yxj"],tableWidth:540,count:0,colsNum:3,emotionConfig:{custom:{folder:"",name:"自定义",css:{cols:10,"class":"s_custom"},type:"custom",power:0},face:{tip:["呵呵","哈哈","吐舌","啊","酷","怒","开心","汗","泪","黑线","鄙视","不高兴","真棒","钱","疑问","阴险","吐","咦","委屈","花心","呼~","笑眼","冷","太开心","滑稽","勉强","狂汗","乖","睡觉","惊哭","升起","惊讶","喷","爱心","心碎","玫瑰","礼物","彩虹","星星月亮","太阳","钱币","灯泡","茶杯","蛋糕","音乐","haha","胜利","大拇指","弱","OK","伤心","加油","必胜","期待","牛逼","胜利","跟丫死磕","踢球","面壁","顶","巴西怒","伴舞","奔跑","点赞手","加油","哭泣","亮红牌","球迷","耶","转屁股"],num:70,prev:"i_f",folder:"face/",suffix:"png",name:"默认",css:{cols:10,"class":"s_face",width:35,offset:30},type:"img",power:1},yxj:{tip:["孤独寂寞冷","光棍吃根油条","可怜没人爱","去tmd光棍节","来捡肥皂啊","给跪了","惊呆了","拿去撸","哦女神","楼主好人"],num:10,prev:"yxj_0",folder:"yxj/",name:"痒小贱",suffix:"gif",css:{cols:10,"class":"s_yxj",width:30,offset:30},type:"img",power:1},"10th":{tip:["蹦蹦跳跳","晃悠","摇摇摆摆","大撒花","高高兴兴","弹吉他","魔法棒","扛大旗","点蜡烛","大秧歌","贴吧十周年","十周年"],num:12,prev:"10th_0",folder:"10th/",name:"十周年",css:{cols:10,"class":"s_tyears",width:42,offset:42},type:"img",power:1},ldw:{tip:["一楼喂熊","俯卧撑","打酱油","囧","大笑","瀑布汗~","惊讶","臭美","傻笑","抛媚眼","发怒","我错了","money","气愤","挑逗","吻","怒","胜利","委屈","受伤","说啥呢?","闭嘴","不","逗你玩儿","飞吻","眩晕","魔法","我来了","睡了","我打","闭嘴","打","打晕了","刷牙","爆揍","炸弹","倒立","刮胡子","邪恶的笑","不要不要","爱恋中","放大仔细看","偷窥","超高兴","晕","松口气","我跑","享受","修养","哭","汗","啊~","热烈欢迎"],num:53,prev:"w_00",folder:"ldw/",suffix:"gif",name:"绿豆蛙",css:{cols:10,"class":"s_ldw",width:40,offset:40},type:"img",power:1},lxs:{tip:["lxs不想动","lxs吃惊","lxs吹口哨","lxs打气","lxs打坐","lxs等待","lxs愤怒","lxs幻象","lxs惊喜","lxs开心","lxs哭啼","lxs哭着跑","lxs没钱","lxs怕鬼","lxs抛媚眼","lxs七夕","lxs骑马舞","lxs升天","lxs石化","lxs数钱","lxs偷吃","lxs偷笑","lxs万圣节","lxs无聊","lxs无奈","lxs无语","lxs妩媚","lxs捉急","lxs转晕","lxs撞豆腐","lxs赘肉"],num:31,prev:"lxs_0",folder:"lxs/",suffix:"gif",name:"冷先森",css:{cols:10,"class":"s_lxs",width:42,offset:42},type:"img",power:1},xyj:{tip:["疯啦","抱头跑","不想睡","不要呀","苍蝇","蹭痒","到碗里来","队长","发财啦","非洲舞","鼓掌","广场舞","滚筒","横行","挥手","火舞鸡","寂寞呀","加油","江南style","娇羞","惊慌失措","纠结","开饭啦","雷神","泪奔","聊QQ","麦霸","猫女","魔咒","尿急","扭屁股","瀑布汗","求饶","撒娇","少女","水冰鸡","天然呆","吐血","玩手机","威武","五道杠","舞动","洗洗","咸蛋鸡","向日葵","鸭子舞","游泳","招财鸡","照镜子","蜘蛛鸡"],num:50,prev:"xyj_0",folder:"xyj/",suffix:"gif",name:"小幺鸡",css:{cols:10,"class":"s_xyj",width:42,offset:42},type:"img",power:1},ySmile:{tip:["^_^","(-__-)b","⊙﹏⊙‖","⊙▽⊙"," ≧ε ≦","┳_┳","(╬▼皿▼)","\\("▔□▔)/","↖( ̄▽ ̄") ","(づ ̄3 ̄)づ ","(* ̄▽ ̄)y ","o(≧口≦)o ","( ̄ε ̄*)","/(ㄒoㄒ)/~~ ","( ̄ε ̄*)","<( ̄︶ ̄)> ","o(≧v≦)o","╮(╯3╰)╭ "," "," 罒ω罒","(ω<)☆ ","() ","(())","(●''●)","Σ(っ °Д °;)っ","ㄟ( ▔, ▔ )ㄏ","凸(艹皿艹 ) ","m(_ _)m","(⊙x⊙;)","( =∩ω∩= )"," ╮(╯▽╰)╭","(≧3≦)/ ","(@_@;)?"," o(* ̄▽ ̄*)ブ","(o゜▽゜)o☆",""o((>ω< ))o" "],num:36,prev:"",folder:"",name:"颜表情",css:{cols:6,"class":"s_ySmile"},type:"text",power:1},wdj:{tip:[],num:24,prev:"wdj_",suffix:"png",folder:"wdj/",name:"豌豆荚",css:{cols:10,"class":"s_wdj",width:30,offset:30},type:"img",power:1},ali:{tip:["赖皮","感动","惊讶","怒气","哭泣","吃惊","嘲弄","飘过","转圈哭","神经病","揪耳朵","惊汗","隐身","不要","遁","不公平","爬来了","蛋花哭","温暖","点头","撒钱","献花","寒","傻笑","扭扭","疯","抓狂","抓","蜷","挠墙","狂笑","抱枕","吼叫","嚷","唠叨","捏脸","狂笑","郁闷","潜水","开心","冷笑话","顶","潜","画圈圈","玩电脑","吐","哭着跑","阿狸侠","冷死了","惆怅~","摸头","蹭","打滚","叩拜","摸","数钱","拖走","热","加1","压力","表逼我","人呢","摇晃","打地鼠","这个屌","恐慌","晕乎乎","浮云","给力","杯具了"],num:70,prev:"ali_0",folder:"ali/",name:"阿狸",css:{cols:10,"class":"s_ali",width:42,offset:42},type:"img",power:1},luoluobu:{tip:["hold住","阿门","哎哟","唉~","不好意思","不要嘛!","唱歌","扯肚皮","扯脸","搓脸","搓手","打灯笼","打起精神","点头","点头2","动动脚","动动脚2","抖脚","抖脚2","嗯~","发呆","鼓掌","滚桌子","好闲阿~","喝茶发呆","哼!","晃","哭","困了","扩胸运动","来来来","来嘛~","冷静冷静","罗爸爸扭扭","罗妈妈扭扭","麋鹿罗罗布","扭pp","扭pp2","扭扭","欧也","趴着","切!","去去","撒花","上WC","圣诞老人","天使罗罗布","跳呀跳","跳呀跳2","玩个球","我来了","嘻嘻","向前进","亚克西","摇啊摇","一边呆着去!","一起扭","有礼了","这厢有礼了","走呀走"],num:60,prev:"llb_0",folder:"luoluobu/",name:"罗罗布",css:{cols:10,"class":"s_luoluobu",width:42,offset:42},type:"img",power:1},qpx:{tip:["微笑","帅哥","美女","老大","哈哈哈","奸笑","傻乐","飞吻","害羞","花痴","憧憬","你牛","鼓掌","可爱","委屈","大哭","泪奔","寻死","惊讶","疑问","鄙视","大骂","狂怒","囧","晕","呕吐","财迷","睡了","思考","汗","无语","拜","鞠躬","累了","病了","墙角","超人","戳","跳舞","鬼脸","无聊","撞墙","顶","HI","饭","蛋糕","礼物","心","心碎","玫瑰","炸弹","集体舞","打人","拍拍","亲亲","握手","安慰","石头","剪子","布","恭喜啦","啵啵"],num:62,prev:"b",folder:"qpx_n/",name:"气泡熊",css:{cols:10,"class":"s_qpx",width:35,offset:35},type:"img",power:1},zxh:{tip:["+1","哀伤","饱","濒死","病","吃货","不满","呆","倒吊","点子","顶","鼓掌","害羞","汗","呵呵呵","加油","奸笑","奸诈","惊讶","囧","看","抠鼻子","哭","困","乐","溜走","路过","买你妹的房纸","敲锣","亲吻","去你妹的工作","扇风","失落","刷牙","逃命","跳舞","听音乐","偷笑","吐","无语","喜","笑","兴奋","鸭子跳","咬","咬","礼物","赞","震惊","追钱","做鬼脸"],num:50,prev:"zxh_0",folder:"pczxh/",name:"张小盒",css:{cols:10,"class":"s_zxh",width:42,offset:42},type:"img",power:1},tsj:{tip:["Kiss","Love","Yeah","啊!","背扭","顶","抖胸","88","汗","瞌睡","鲁拉","拍砖","揉脸","生日快乐","摊手","睡觉","瘫坐","无聊","星星闪","旋转","也不行","郁闷","正Music","抓墙","撞墙至死","歪头","戳眼","飘过","互相拍砖","砍死你","扔桌子","少林寺","什么?","转头","我爱牛奶","我踢","摇晃","晕厥","在笼子里","震荡"],num:40,prev:"t_00",folder:"tsj/",name:"兔斯基",css:{cols:10,"class":"s_tsj",width:35,offset:35},type:"img",power:1},baodong:{tip:["心照不宣","蓝脸","困惑","够拽","瞪眼","藐视","思考","呵呵","想要妹子","幻想","无奈的笑","为什么","黑人歪嘴","歪嘴笑","苦逼","面瘫","咯咯咯","生气","高兴","喜极而泣","告诉我","有了","好吧","孤独一生","嘎嘎","暴躁","紫歪嘴","红歪嘴","这不科学","笑而不语","围观","牛仔歪嘴","方肘子","震惊","惊讶","颠覆三观","尼美藐视","尼美呵呵","尼美发呆","尼美有了","猫嘴笑","思春","尼美苦逼","笑尿","尼美咯咯","尼美歪嘴","尼美姚","暴走尼美","娇羞","尼美震惊","孤独尼美","尼美大哭","尼美愤怒","尼美嘎嘎","尼美愤懑","尼美不解"],num:56,prev:"b_00",folder:"baodong/",name:"暴漫静态",css:{cols:10,"class":"s_baodong",width:35,offset:35},type:"img",power:1},baodong_d:{tip:["坏淫","抓狂","悲戚","痛哭","犯贱","奸笑","屌丝","高呼","感叹","感动","憋屈","舒爽","坏笑","屁颠","瞳术","杂耍","姚脸","孤独","暴走","潇洒","失望","同桌","变脸","得瑟","腹黑男","腹黑女","够拽","白领","喵尼玛","汪尼玛","嘿嘿尼玛","勾引","发泄","操操操"],num:34,prev:"bd_00",folder:"baodong_d/",name:"暴漫动态",css:{cols:10,"class":"s_baodong_d",width:35,offset:35},type:"img",power:1},bobo:{tip:["HI","KISS","不说","不要","扯花","大心","顶","大惊","飞吻","鬼脸","害羞","口水","狂哭","来","泪眼","流泪","生气","吐舌","喜欢","旋转","再见","抓狂","汗","鄙视","拜","吐血","嘘","打人","蹦跳","变脸","扯肉","吃To","吃花","吹泡泡糖","大变身","飞天舞","回眸","可怜","猛抽","泡泡","苹果","亲","","骚舞","烧香","睡","套娃娃","捅捅","舞倒","西红柿","爱慕","摇","摇摆","杂耍","招财","被殴","被球闷","大惊","理想","欧打","呕吐","碎","吐痰"],num:63,prev:"B_00",folder:"bobo/",name:"波波",css:{cols:10,"class":"s_bobo",width:35,offset:35},type:"img",power:1},shadow:{tip:["焦糖舞","翻滚","拍屁股做鬼脸","不","河蟹掉啦","哦耶","我倒","投降","听音乐","被砸","吐舌头","太好啦","财源滚滚","人呢","挥手帕","偷笑","卷被","看楼上","我抽","有木有","哭","欢呼","傻兮兮","扇扇子","拍手","紧张","洗澡","耶","吃西瓜","纳尼","没有钱","拿玩偶","来看看","哇哇叫","招财猫","放屁","隆重介绍","求你了","撞玻璃","眺望","撒花","玩铃铛","思考者","抽风","吃苹果","光棍"],num:46,prev:"yz_0",folder:"shadow/",name:"影子",css:{cols:10,"class":"s_shadow",width:42,offset:42},type:"img",power:1},lt:{tip:["中箭","LS去死","LS去死子弹","LS去死增强","LS去死炮弹","板凳","不爽","不要","超人","吃零食","抽烟","串","打狗","打酱油","打你","戴墨镜","蛋","荡漾","顶破楼上","发懵","放屁","负分滚粗","喝大了","呼啦圈儿","护","滑冰","画圈圈","火钳刘","贱贱的","惊吓","抠脚","lt哭","拉粑粑","撸","挠PP","闹","排球","前排","敲手鼓","沙发","剔牙","兔子蹦起来","挖鼻屎","无语","瞎了","秀肌肉","摇滚","意外惊喜","震惊","正步"],num:50,prev:"ltn_0",folder:"lt/",name:"冷兔",css:{cols:10,"class":"s_lt",width:42,offset:42},type:"img",power:1},bfmn:{tip:["爱你","傲娇","打你","带回去压寨","给脸不要脸","滚(百度独家)","滚","好喜欢","泪奔","女屌丝","深井冰","算你狠","我美","虾米","不要","好崇拜","泪奔","你妹啊","你造么","求交往","骚年","土豪做朋友(百度独家)","围观","无药可医","再见","在么","call-me","no-zuo-no-die"],num:28,prev:"bfmn_0",folder:"bfmn/",name:"白发魔女",css:{cols:10,"class":"s_bfmn",width:40,offset:41},type:"img",power:1}},initial:function(t){var e=this,o=t.container;t.customEmotionEnable&&(this.emotionConfig.custom.power=1,this.defaultGroup="custom"),this.$container=o,this.defaultGroup=t.defaultGroup||e.defaultGroup,o.html(this._template.inner),this.$content=o.find(".j_content"),this.$tab=o.find(".j_tab"),e.scrollPanel=e.use("common/component/ScrollPanel",{container:e.$content,height:277,content:""}),t.customEmotionEnable&&(this.customEmotion=this.use("common/component/CustomEmotion"),this.customEmotion.bind("ok",function(){e.scrollPanel.$content.html(e.generateCustomTable())})),e.generateTabList(),e.switchTab(e.defaultGroup),e.initEvent()},initEvent:function(){this.$container;this.initEmotionEvent(),this.initTabEvent()},initEmotionEvent:function(){var t=this,e=this.getMouseenterHandler(this);this.$content.on("mouseleave",".j_emotion, .j_custom_emotion",function(){$(this).css("background-color","#ffffff"),$(".j_emotion_preview").hide().removeClass("emotion_preview_show")}),this.$content.on("mouseenter",".j_emotion, .j_custom_emotion",function(){e.call(this)}),this.$content.on("click",".j_emotion",function(){var e=$(this),o={url:e.data("surl"),type:e.data("stype"),title:e.tbattr("title")};"text"==e.data("stype")?$.stats.sendRequest("ev_type=click&st_mod=editor&st_type=text&st_value="+e.tbattr("title")):t.sendStats(e,"click"),t.trigger("insertemotion",o)}).on("click",".j_custom_emotion",function(e){var o=$(e.target);if(o.hasClass("j_delete")){if(confirm("确认要删除此表情吗?")){var s=o.parent().data("surl");t.customEmotion.removeCustomEmotion(s),t.scrollPanel.$content.html(t.generateCustomTable())}}else t.trigger("insertemotion",{url:$(this).data("surl"),type:"custom"})}).on("click",".j_add_emotion",function(){t.customEmotion.openDialog({forumId:PosterContext.getContext().forum.id})})},initTabEvent:function(){var t=this;this.$tab.on("click",".s_prev",function(){t.prevTab()}).on("click",".s_next",function(){t.nextTab()}).on("click","li",function(){var e=$(this).data("type");e&&t.switchTab(e)}).on("mouseenter",".s_tab_btn",function(){$(this).addClass("s_hover")}).on("mouseleave",".s_tab_btn",function(){$(this).removeClass("s_hover")})},sendStats:function(t,e){var o=t.data("value"),s=t.data("sname"),n=[40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60];try{s&&"10th"==s&&$.stats.track(o,"PC端十周年发帖表情点击统计"),$.stats.sendRequest(-1!=$.inArray(o,n)?"st_all=doubleeleven&ev_type="+e+"&st_mod=editor&st_type="+s+"&st_value="+o:"ev_type="+e+"&st_mod=editor&st_type="+s+"&st_value="+o)}catch(i){}},getMouseenterHandler:function(){function t(){var t=e.width(),o=e.height();(t>60||o>60)&&(t>o?(e.width(60),e.height(60*(o/t))):(e.height(60),e.width(60*(t/o))));var s=(60-e.width())/2,n=(60-e.height())/2;e.css({left:s,top:n})}var e=null,o=null;return function(){var s=$(this),n=$(".j_emotion_preview");e&&e.remove(),s.css("background-color","#e8e8fd"),"text"!==s.data("stype")&&(e=$(""),e.addClass("review"),e.load(function(){clearTimeout(o),n.show();var i=e.width(),a=e.height();0==i||0==a?o=setTimeout(arguments.callee,50):(t(),1==s.data("posflag")&&n.addClass("emotion_preview_show"))}).error(function(){o=setTimeout(function(){e.tbattr("src",s.data("surl"))},50)}).tbattr("src",s.data("surl")),n.append(e))}},getEmotionFileName:function(t,e,o){return"i_f"==t&&e>=51&&(o="gif"),t+(10>e?"0":"")+e+"."+o},generateEmotions:function(t){var e=this,o=this.scrollPanel,s=this.emotionConfig,n=s[t],i=this.path,a=i+n.folder,l=n.css.cols,c=l/2,r=this.tableWidth/l,m=r;"text"==n.type&&(m/=2);var d,u=n.css["class"],p=n.css.offset,f=n.suffix||"gif",h=n.prev,_=this._template.table,b=this._template.tr,v=this._template.tdEmpty,g=this._template.td,x=this._template.a,w="",y=function(t){for(var o="",s=0,i=n.num;i>s;){for(var d="",_=0;l>_;_++,s++){var w=e.getEmotionFileName(h,s+1,f);if(w&&i>s){var y=a+w+"?t=20140803",j=c>_?0:1,C=p*s*-1;("lt"==t||"ali"==t)&&(C-=1),"ali"==t&&(C+=3);var E="text"==n.type?n.tip[s]:" ",T=$.tb.format(x,{offset:C,content:E});d+=$.tb.format(g,{tdClassName:u,tdWidth:r,tdHeight:m,index:s,groupName:t,configType:n.type,tip:n.tip[s],url:y,posflag:j,content:T})}else d+=$.tb.format(v,{})}o+=$.tb.format(b,{content:d})}return o};d="custom"==n.type?this.generateCustomTable():y(t),w+=$.tb.format(_,{content:d}),o.setContent(w),o.$content.css("height",277)},generateCustomTable:function(){function t(t,e){return t?t.option?'':(t.posFlag=5>e?0:1,$.tb.format('
      ',t)):" "}function e(e,o){var s=[];s.push("");for(var n=0;10>n;n++)s.push(t(e[n+o],n));return s.push(""),s.join("")}var o=this.customEmotion.getCustomEmotions();o.push({option:"add"});for(var s=[],n=0,i=Math.floor(o.length/10)+1;i>n;n++)s.push(e(o,10*n));return""+s.join("")+"
      "},generateTabList:function(){for(var t=this.sequence,e=this.emotionConfig,o=this._template.tab,s=this._template.tabItem,n="",i=0,a=t.length;a>i;i++){var l=t[i];if(e[l].power){var c={isSelected:l===this.currentGroup?"selected":"",index:i,type:l,name:e[l].name};n+=$.tb.format(s,c)}}n=$.tb.format(o,{content:n}),this.$tab.html(n)},getTab:function(t){return this.$tab.find("li").filter('[data-type="'+t+'"]')},nextTab:function(){var t=this,e=this.$tab.find("ul");t.count=++t.count>=t.colsNum?t.colsNum-1:t.count,e.stop().animate({marginLeft:-502*t.count},500,"linear")},prevTab:function(){var t=this,e=this.$tab.find("ul");t.count=--t.count<1?0:t.count,e.stop().animate({marginLeft:-502*t.count},500,"linear")},activateTab:function(t){var e=this.$tab;e.find("li").removeClass("selected"),this.getTab(t).addClass("selected")},switchTab:function(t){var e=this;e.currentGroup=t,e.activateTab(t),e.generateEmotions(t)}}});