_.Module.define({path:"platform/widget/platformAuth",requires:[],sub:{initial:function(){this.bindEvents()},bindEvents:function(){}}});_.Module.define({path:"common/widget/RollNumber",sub:{_defaultOption:{numberString:"0",zeroArray:[],needComma:!1,theme:"black",dom:$("body")},_addEasingFunction:function(){jQuery.extend(jQuery.easing,{rollNumber:function(n,t,i,o,r){return(t/=r/2)<1?o/2*t*t*t*t*t+i:o/2*((t-=2)*t*t*t*t+2)+i}})},initial:function(n){this._addEasingFunction(),this._option=$.extend({},this._defaultOption,n),this._init(this._option.numberString)},_init:function(n){this._option.numberString=n,this._option.zeroArray=this._getZeroArray(n.length,this._option.needComma),this._option.length=this._option.zeroArray.length,this._render(),this._roll()},_getZeroArray:function(n,t){var i=new Array(n+1).join(0);return t?this._addComma(i).split(""):i.split("")},_addComma:function(n){for(var t=[],i=n.length;i>0;)t.unshift(n.substring(i-=3,i+3));return t.join(",")},_render:function(){for(var n="",t=this._option.zeroArray,i="roll_number_wrapper roll_number_"+this._option.theme,o=0,r=t.length;r>o;o++)n+=","==t[o]?'
您的账号已被封禁,无法参加活动。
确定参与活动需要先关注本吧哦~
关注本吧系统发生未知错误,请稍后再试试吧~
确定哇哦~我们都已经感受到你的热情了!请休息一会儿再来吧!
确定
','本吧正在发送优惠券哟~不来一份么>_<
','我要领取'];"#getweal"==t&&(l=new $.dialog({html:s.join(""),showTitle:!0,draggable:!1,closeable:!0,width:418,holderClassName:"weal_wel_holder"})),$("#weal_trigger_link").click(function(){try{$("#btn_getweal").trigger("click"),l.close()}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"frs:widget/platform_weal/platform_weal.js",method:"",ln:46}),a}}),$("#btn_getweal").on("click",function(t){try{if(t.preventDefault(),a._closeBubble(),$.stats.track("本吧福利按钮","平台化吧统计报表","","click"),1==PageData.user.is_login){if(PageData.user.no_un)return TbCom.process("User","buildUnameFrame"),!1;e&&e.weal_id?"1"==PageData.user.is_like?a._postWealData():a._postLikeData().always(function(){a._postWealData()}):"1"==PageData.user.is_like?a._showWealDialog(2):a._postLikeData()}else TbCom.process("User","buildLoginFrame",null,null,null,this.key||"");return!1}catch(l){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:l.message||l.description,path:"frs:widget/platform_weal/platform_weal.js",method:"",ln:83}),l}}),$("#wealtip_wrap").on("click",".wealtip_link",function(){try{$.stats.track("本吧福利浮层链接","平台化吧统计报表","","click")}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"frs:widget/platform_weal/platform_weal.js",method:"",ln:86}),a}})},_postLikeData:function(){var a=this,e=a.forumInfo.forum_mis_info,t={fid:PageData.forum.forum_id,fname:PageData.forum.forum_name,uid:PageData.user.name_url,ie:"gbk",tbs:PageData.tbs},l=$.post("/f/like/commit/add",t,function(t){var l=$.parseJSON(t);if(l)switch(l.no){case 0:$.stats.track("通过本吧福利喜欢本吧","平台化吧统计报表","","view"),e&&e.weal_id||a._showWealDialog(1);break;case 8:case 9:case 220:a._showErrorTip(l.no);break;default:a._showErrorTip()}else a._showErrorTip()});return l},_postWealData:function(){var a=this,e=a.forumInfo.forum_id,t=a.forumInfo.forum_mis_info;$.post("/gcf/receive",{forum_id:e,weal_id:t.weal_id,tbs:PageData.tbs}).always(function(e){var t=$.parseJSON(e);switch(null!==t.data&&(a.wealNum=t.data),t.no){case 0:a._showWealDialog(1);break;case 20008:a._showWealDialog(2);break;case 20001:TbCom.process("User","buildLoginFrame",null,null,null,this.key||"");break;case 20003:a._postLikeData();break;case 20004:case 20005:case 20006:case 20007:case 20009:a._showErrorTip(t.no);break;case 20010:a._showWealDialog(3)}})},_showErrorTip:function(a){var e="";switch(a){case 8:case 9:e="你在本吧被封禁,暂时不能进行操作";break;case 220:e="你被吧主加入黑名单,暂时不能进行操作";break;case 20005:e="用户被封禁";break;case 20006:case 20007:e="操作太频繁了,请稍作歇息,过会儿再来";break;case 20009:e="领取失败,请再试一次吧";break;default:e="服务器出错啦~请再试一次吧"}var t=new Array;t.push(''),""!=s&&(""!=i?(n.push(''),n.push(''),n.push("")):n.push('
')),""!=l&&(""!=i?(n.push(''),n.push(l),n.push("")):n.push(''+l+"")),"1"!=PageData.user.is_like&&n.push(''+o+""),3==a?n.push(''+r+""):""!=e.wealNum&&n.push('你的福利:'+e.wealNum+""),n.push("
"+$.tb.subByte(n[s].forum_name,8)+"吧
";var m="";m=0==n[s].is_like?$.tb.format('',{forum_id:n[s].forum_id,forum_name:n[s].forum_name}):$.tb.format('',{forum_id:n[s].forum_id,forum_name:n[s].forum_name});var d="";d=list_top+m+"本吧推荐的吧:
设置后将会对关注本吧的新粉丝推荐这些贴吧。
| 文字简介: | ','',' 最多填写130个字 '," |
|---|
| 图片位1: | ",''," |
|---|---|
| 链接名称: | ",''," |
| 链接地址: | ",''," |
| 图片位2: | ",''," |
| 链接名称: | ",''," |
| 链接地址: | ",''," |
| 图片位3: | ",''," |
| 链接名称: | ",''," |
| 链接地址: | ",''," |
| 图片位4: | ",''," |
| 链接名称: | ",''," |
| 链接地址: | ",''," |
"+PageUnit.load("star_nav_voted")+"
"):160002==a.no?t._showBlessDialog("时间已过
"):t._showBlessDialog("系统忙~请再试一次!");else t._showBlessDialog("系统忙~请再试一次!")}),!1}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"frs:widget/star_nav/star_nav.js",method:"",ln:52}),s}}),$("#bless_num").bind("mouseover",function(){var a=$(this).data("no"),e=$(this).data("before"),s=$(this).data("after"),i=parseInt(a);popTitle=-1==e?$.tb.format(PageUnit.load("star_nav_tipfirst"),{1:i+1,2:s}):-1==s?$.tb.format(PageUnit.load("star_nav_tiplast"),{1:i-1,2:e}):$.tb.format(PageUnit.load("star_nav_tipmiddle"),{1:i-1,2:e,3:i+1,4:s});var o=popTitle.match(/\d/g).length,n=$.tb.getByteLength(popTitle)-o,r=7*o+6*n;popLeft=$(this).offset().left,popTop=$(this).offset().top,bubble=t._makePoptip(popTitle,r,popLeft,popTop+20),bubble.showBubble()}).bind("mouseout",function(){bubble.closeBubble()}),$("#star_class_nav").on("mousedown","a",function(){if($.stats.track("star_index_nav","nav_test"),t.is_star_official){var a=$(this).text();$.stats.track("tab_"+a,"明星官方吧_分tab点击")}}),$(".star_nav_qa").on("click","a",function(t){try{$.stats.track("KnowTabClick","coopwithiknow")}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"frs:widget/star_nav/star_nav.js",method:"",ln:84}),t}})},_showBlessDialog:function(t){new $.dialog({html:'
')})},fix:function(i){i?(this.__val__=i,this.$content.children(".ui_img_cnt").html(''+$.tb.subByte(this.fname,12,"..")+"全球唯一粉丝编号
"),s.push('"),s.push("恭喜你获得'+$.tb.subByte(this.fname,14,"..")+"全球唯一
"),s.push('');for(var e=this._getNo(t.num),i=0;i
同时欢迎你成为'+$.tb.subByte(this.fname,14,"..")+"吧的会员
"),s.push('');var n=new $.dialog({html:s.join(""),showTitle:!1,draggable:!1,width:350,height:265,holderClassName:"fansnum_bigtip"}),r=setTimeout(function(){a._showFansNum(t),n.close(),$.tb.location.reload()},8e3);$("a.success_tip_close").bind("click",function(){try{return clearTimeout(r),a._showFansNum(t),n.close(),$.tb.location.reload(),!1}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"frs:widget/star_head/star_head.js",method:"",ln:503}),s}})},_showErrorTip:function(t){var a="";switch(t){case 8:case 9:a="你在本吧被封禁,暂时不能进行操作";break;case 220:a="你被吧主加入黑名单,暂时不能进行操作";break;case 120002:a="已领取成功,刷新页面看看呗";break;default:a="额,抱歉服务器好像抽风了,请你再点一下下"}var s=new Array;s.push('将该帖子分类至:"),s.push('"),s.push("
"),s.push("提示:您可以到吧务管理页中添加/修改分类
"),s.push('您尚未开通贴吧高级会员,无法使用置顶特权
现在开通,每月免费赠送8张置顶卡
',btnTrue:"立即开通",btnCancel:"取 消"}),t.bind("true",function(){_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()}),t.close()}),t.bind("cancel",function(){t.close()}),void 0}var a=['剩余不多?快去购买吧>>
',"剩余置顶时间:#{time}
',a="",s=1e3*e.data.end_time-(new Date).getTime();if(0>s)a="0小时0分";else{var i=Math.floor(s/36e5),n=Math.floor((s-36e5*i)/6e4);a=""+i+" 小时 "+n+"分"}var r=$.tb.format(t,{time:a}),c=o.find(".count_section");$(r).insertBefore(c),o.parent("#dialogJbody").css("height",200)}}),0==s&&o.find(".j_true").tbattr("class","ui_btn_disable ui_btn_m_disable j_true"),o.find(".j_count").on("keydown",function(e){var t=e.which,a=!1;return e.shiftKey&&(9==t&&(a=!0),a=!1),(57>=t&&t>=48||37==t||39==t||8==t||9==t||46==t||105>=t&&t>=96||229==t)&&(a=!0),a}).on("keyup change paste",function(){var e=$.trim($(this).val()),t=o.find(".j_true");e&&(e=e.replace(/\D/g,""),$(this).val(e)),0==e.length||0==e||parseInt(e,10)>parseInt(s,10)?t.tbattr("class","ui_btn_disable ui_btn_m_disable j_true"):t.tbattr("class","ui_btn ui_btn_m j_true")}),o.find(".j_true").on("click",function(t){try{if(t.preventDefault(),$(this).hasClass("ui_btn_disable"))return;var a=o.find(".j_count").val(),s={tbs:PageData.tbs,kw:PageData.forum.forum_name,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id,num:a,props_id:1180001};$.tb.post("/f/commit/thread/top/madd",s,function(t){switch(parseInt(t.err_code,10)){case 0:e.setMtopDialogContent(n,{msg:"会员置顶成功",btnTrue:"确 定"}),n.bind("true",function(){$.tb.location.reload()});break;case 2270020:e.setMtopDialogContent(n,{msg:'您尚未开通贴吧高级会员,无法使用置顶特权
现在开通,每月免费赠送8张置顶卡
',btnTrue:"立即开通",btnCancel:"取 消"}),n.bind("true",function(){_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()}),n.close()}),n.bind("cancel",function(){n.close()});break;case 2270022:e.setMtopDialogContent(n,{msg:"该贴已经设置为置顶贴,无法被设置为会员专属置顶贴",btnTrue:"确 定"}),n.bind("true",function(){n.close()});break;default:e.setMtopDialogContent(n,{msg:"服务器抽风了,错误码:"+t.err_code,btnTrue:"确 定"}),n.bind("true",function(){n.close()})}})}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/admin/threadManage.js",method:"",ln:662}),t}}),o.find(".j_cancel").on("click",function(e){try{e.preventDefault(),n.close()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/admin/threadManage.js",method:"",ln:666}),e}})},unset_membertop:function(){var e=this;if(!PageData.user.Parr_props||!PageData.user.Parr_props.level||1e3*PageData.user.Parr_props.level.end_time<(new Date).getTime()){var t=new $.dialog({html:"",title:"使用置顶卡",draggable:!1,width:415,height:162});return e.setMtopDialogContent(t,{msg:'您尚未开通贴吧高级会员,无法使用置顶特权
现在开通,每月免费赠送8张置顶卡
',btnTrue:"立即开通",btnCancel:"取 消"}),t.bind("true",function(){_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()}),t.close()}),t.bind("cancel",function(){t.close()}),void 0}var a={tbs:PageData.tbs,kw:PageData.forum.forum_name,fid:PageData.forum.forum_id,tid:PageData.thread.thread_id};$.tb.post("/f/commit/thread/top/mcancel",a,function(t){var a=new $.dialog({html:"",title:"使用置顶卡",draggable:!1,width:415,height:162});switch(parseInt(t.err_code,10)){case 0:e.setMtopDialogContent(a,{msg:"取消会员置顶成功",btnTrue:"确 定"}),a.bind("true",function(){a.close()});break;case 2270020:e.setMtopDialogContent(a,{msg:'您尚未开通贴吧高级会员,无法使用置顶特权
现在开通,每月免费赠送8张置顶卡
',btnTrue:"立即开通",btnCancel:"取 消"}),a.bind("true",function(){_.Module.use("common/widget/JoinVipDialog",[],function(e){e.getMemberDialog()}),a.close()}),a.bind("cancel",function(){a.close()});break;case 2270024:e.setMtopDialogContent(a,{msg:"只有会员置顶帖才可以被取消",btnTrue:"确 定"}),a.bind("true",function(){a.close()});break;default:e.setMtopDialogContent(a,{msg:"服务器抽风了,错误码:"+t.err_code,btnTrue:"确 定"}),a.bind("true",function(){a.close()})}})},setMtopDialogContent:function(e,t){var a=['参与晒图需要先关注本吧哦~