',{showTitle:!1});return i.bind("onaccept",function(){var a=e._get_delete_paras(t,!0);a.user_name=s,e._delete_post(a,!0)}),!1}catch(r){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:r.message||r.description,path:"pb:widget/posts/posts.js",method:"",ln:65}),r}}).delegate(".apc_src_wrapper a","mousedown",function(e){var t=e.currentTarget.href,a=t.replace(/\w*(:\/\/)?([^\/]+).*/g,"$2");$.stats.sendRequest("fr=tb0_forum&st_type=shenqi_pb_link&st_value="+encodeURIComponent(a))}).delegate(".j_user_card","click",function(){try{if(PageData.user.is_login)return;var e="";e=$(this).hasClass("lzl_p_p")?"pb_user_lzl":"pb_user_lc";var t="http://tieba.baidu.com"+$.tb.unescapeHTML($(this).tbattr("href"));return window.open("/f/user/passport?jumpUrl="+t+"&statsInfo="+e+"#login_anchor"),!1}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/posts/posts.js",method:"",ln:76}),a}}).delegate(".j_jb_ele","mouseover",function(){$(this).find(".super_jubao").show()}).delegate(".j_jb_ele","mouseout",function(){$(this).find(".super_jubao").hide()})}},_delete_thread:function(e,t){var a=this,s=PageData,o={ie:"utf-8",tbs:s.tbs,kw:s.forum.forum_name,fid:s.forum.forum_id,tid:s.thread.thread_id,user_name:e,delete_my_post:0,delete_my_thread:1};t&&(o=$.extend(o,a._captcha)),PostHandler.execute("threadDelete",o,function(t){var s="";switch(t.no){case 0:$.tb.location.setHref("/f?kw="+PageData.forum.name_url);break;case 308:s=PageData.user.forbidden?"抱歉,您已被本吧封禁或者加入黑名单,暂不能删贴":"";break;case 871:s="抱歉,今天已达您删贴的最大限额,明天再来试试吧~";break;case 4011:a._getCaptcha.call(a,t,e);break;default:s="抱歉,系统繁忙,贴子删除失败。"}""!=s&&(a.message?a.message.showMessage(s,"",!1):_.Moudle.getInstance("pb/widget/Message",function(e){a.message=e,e.showMessage(s,"",!1)}))})},_delete_post:function(e,t,a){var s=this,o=PageData,n={ie:"utf-8",tbs:o.tbs,kw:o.forum.forum_name,fid:o.forum.forum_id,tid:o.thread.thread_id,user_name:e.user_name,delete_my_post:1,delete_my_thread:0,is_vipdel:o.power.lz_del?1:0};a&&(n=$.extend(n,s._captcha)),t?(n.pid=e.spid,n.is_finf=1):(n.pid=e.content_id,n.is_finf=!1),PostHandler.execute("postDelete",n,function(a){var o="";switch(a.no){case 0:$.tb.location.reload();break;case 308:o="抱歉,您已被本吧封禁或者加入黑名单,暂不能删贴";break;case 871:o="抱歉,今天已达您删贴的最大限额,明天再来试试吧~";break;case 4011:s._getCaptcha.call(s,a,e,t);break;default:o="抱歉,系统繁忙,贴子删除失败。"}""!=o&&(s.message?s.message.showMessage(o,"",!1):_.Moudle.getInstance("pb/widget/Message",function(e){s.message=e,e.showMessage(o,"",!1)}))})},_captcha:{},_getCaptcha:function(e,t,a){var s=this,o=1;"string"==typeof t&&(o=0),_.Module.use("common/component/CaptchaDialog",{title:"删除贴子",message:"删了那么多贴子,输个码验证下身份吧~",vCode:e.data.vcode.captcha_vcode_str,vCodeType:e.data.vcode.captcha_code_type,forumName:PageData.forum.forum_name,forumId:PageData.forum.forum_id,postType:"thread",paramsCallback:function(){return{}}},function(e){s.captchaDialog=e,e.bind("onclose",function(){return e.hide(),!1}),e.bind("onaccept",function(){s._captcha.vcode=e.getInputValue(),s._captcha.vcode_md5=e.getVCode(),o?s._delete_post.call(s,t,a,1):s._delete_thread.call(s,t,1)}),e.show()})},_get_delete_paras:function(e,t){var a,s,o={};return t?(a=e.parents("li.j_lzl_s_p"),o=a.getData()):(a=e.parents("div.l_post"),s=a.getData(),o={author_name:s.author.user_name,content_id:s.content.post_id}),o}}});_.Module.define({path:"pb/widget/spreadadPb",sub:{initial:function(a,e,t){try{var d=$("#spreadad_"+a);if(d.size()<1)return;this.$me=d;var o=d.data("good_id"),i=d.data("goods_type"),n=d.data("task_id"),r=d.data("good_id"),p=d.data("task_name"),s=d.data("barname_gbk");d.on("click","a",function(e){try{var t=$($.event.fix(e).currentTarget),d="pb_spreadad_floor_"+a+"_"+o;"0101"==i&&$.cookie(d,1,{expires:1,path:"/"});var s=t.data("locate");$.stats.track(s,"分发系统一期",{obj_type:"分发",obj_name:n+"_"+p,obj_url:r})}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/spreadad_pb/spreadad_pb.js",method:"",ln:39}),e}}),$.stats.track("pb_推广位","分发系统一期","pb","展现",{obj_type:"分发",obj_name:n+"_"+p,obj_url:r});var _=function(){var a=d.find(".spreadad_iframe"),e=a.width(),t=a.height(),o=a.data("src");"0105"==i&&(o+="&word="+s+"&task_name="+window.encodeURIComponent(p)),"0106"==i&&(o+="&query="+window.encodeURIComponent(window.PageData.forum.forum_name)),a.append($('
'))};e&&(t||"0106"==i||"0105"==i?_():$(window).on("load",_)),"0106"==i&&(window.__zhixin_hide=$.proxy(this.shutZhixin,this))}catch(h){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:h.message||h.description,path:"pb:widget/spreadad_pb/spreadad_pb.js",method:"",ln:67}),h}},shutZhixin:function(){this.$me.hide()}}});_.Module.define({path:"liveshow/widget/frsSpreadList",requires:[],sub:{initial:function(){this._bindEvents()},_bindEvents:function(){$(".j_lists").delegate(".j_photo","click",function(){$.stats.track("frs-25楼","视频feed流","frs","click")})}}});_.Module.define({path:"frs/widget/dasense",sub:{initial:function(a,e,d){try{var t=$("#dasense_"+a);if(t.size()<1)return;this.$me=t;var i=t.data("barname_gbk"),n="",o="",r="",s="",c="",_=$.cookie("BAIDUID");PageData&&(n=PageData.product.toLowerCase(),PageData.forum&&(o=PageData.forum.forum_id||""),PageData.user&&(c=PageData.user.user_id||PageData.user.user_id||""),PageData.thread&&(r=PageData.thread&&PageData.thread.thread_id||""));var f=t.tbattr("data-datypeid"),m=t.data("daid"),g=t.data("daname"),u=t.data("dagoodid"),p=t.data("dafirstname"),l=t.data("dasecondname"),h=t.data("dacpid"),w=t.data("daabtest"),b=t.data("daprice"),y=t.data("daverify"),v=t.data("daextinfo"),D=t.data("daplanid"),k=t.data("dauserid"),x=["dapage="+n,"dafid="+o,"datid="+r,"dacuid="+s,"dauid="+c,"dabaiduid="+_,"datypeid="+f,"datypeid="+f,"daid="+m,"daname="+encodeURIComponent(g),"dagoodid="+u,"dafirstname="+encodeURIComponent(p),"dasecondname="+encodeURIComponent(l),"dacpid="+h,"daabtest="+w,"daprice="+b,"daverify="+y,"daextinfo="+v,"daplanid="+D,"dauserid="+k].join("&"),P="tbda",C={client_type:"pc_web",task:P,da_task:P,page:n,da_page:n,da_obj_id:m,fid:o,tid:r,da_good_id:u,da_ext_info:v,da_price:b,da_verify:y,cuid:s,uid:c,baiduid:_,da_obj_name:g,da_first_name:p,da_second_name:l,da_cpid:h,da_abtest:w},U={trackUrl:"/billboard/pushlog/?",da_task:P,da_page:n,da_client_type:"PC",da_obj_id:m,da_fid:o,da_tid:r,da_good_id:u,da_ext_info:v,da_plan_id:D,da_user_id:k,da_price:b,da_verify:y,da_cuid:s,da_uid:c,da_baiduid:_,da_cpid:h},I=this;t.on("click","a",function(e){try{var d=$($.event.fix(e).currentTarget),t=a+"_"+d.data("locate");I.track($.extend({},C,{locate:t,da_locate:t,type:"click",da_type:"click"})),I.track($.extend({},U,{da_locate:a,da_type:"click"}))}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"frs:widget/dasense/dasense.js",method:"",ln:138}),e}});var j,I=this,R=!1,B=function(){R||(I.track($.extend({},C,{locate:a,da_locate:a,type:"show",da_type:"show"})),I.track($.extend({},U,{da_locate:a,da_type:"show"})),R=!0)},T=function(){var a=t.offset().top,e=t.offset().top,d=$("body").scrollTop(),i=$(window).height()+d,n=!1;return(a>d&&i>=a||e>d&&i>=e)&&(n=!0),n};T()?B():$(window).on("scroll",function(){T()&&(clearTimeout(j),j=setTimeout(B,500))});var A=function(){var a=t.find(".dasense_iframe"),e=a.width(),d=a.height(),n=a.data("src");"0010"==f&&(n+="&barname="+window.encodeURIComponent(window.PageData.forum.forum_name)+"&barcid="+window.encodeURIComponent(window.PageData.forum.first_class+"^"+window.PageData.forum.second_class)),("0008"==f||"0105"==f)&&(n+="&word="+i),("0009"==f||"0015"==f||"0106"==f)&&(n+="&query="+window.encodeURIComponent(window.PageData.forum.forum_name)),"0013"==f&&(n+="?adforumname="+window.encodeURIComponent(window.PageData.forum.forum_name)),n+="&"+x,a.append($('
'))};e&&(d||"0009"==f||"0015"==f||"0106"==f||"0008"==f||"0105"==f||"0012"==f?A():$(window).on("load",A)),("0009"==f||"0015"==f||"0106"==f)&&(this.initZhixin(t),window.__zhixin_hide=$.proxy(this.shutZhixin,this));var L=function(){var a=t.find(".dasense_wangmeng_placeholder"),e=a.data("wangmengid");$.JsLoadManager.use(["http://cbjs.baidu.com/js/m.js"],function(){var a=PageData.forum?PageData.forum.forum_id:0;BAIDU_CLB_addOrientation("tbid",a+""),BAIDU_CLB_fillSlotAsync(e,"dasense_wangmeng_"+e)})};"0108"==f&&L()}catch(Z){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:Z.message||Z.description,path:"frs:widget/dasense/dasense.js",method:"",ln:234}),Z}},initZhixin:function(a){var e=a.find(".dasense_toggleBtn"),d=a.find(".dasense_cont_main"),t="dasense_0009_closed";e.on("click",function(e){try{var i=a.hasClass(t);return i?a.removeClass(t):a.addClass(t),d.animate({height:"toggle"}),!1}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"frs:widget/dasense/dasense.js",method:"",ln:248}),e}})},shutZhixin:function(){this.$me.hide()},track:function(a){if(document.images){var e=new Image;window["bd_pv_"+(new Date).getTime()]=e;var d="http://static.tieba.baidu.com/tb/img/track.gif?",t=[];a.hasOwnProperty("trackUrl")&&(d=a.trackUrl,delete a.trackUrl);for(var i in a)a.hasOwnProperty(i)&&t.push(i+"="+encodeURIComponent(a[i]));d+=t.join("&"),e.src=d+"&t="+(new Date).getTime(),e=null}}}});_.Module.define({path:"comforum/widget/wangmengFeedAd",sub:{initial:function(a){try{this.data=a;var e=this.data.id;$.JsLoadManager.use(["http://cbjs.baidu.com/js/m.js"],function(){var a=PageData.forum?PageData.forum.forum_id:0;BAIDU_CLB_addOrientation("tbid",a+""),BAIDU_CLB_fillSlotAsync(e,"BAIDU_CLB_AD_IFRAME_"+e)})}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"frs:widget/wangmeng_feed_ad/wangmeng_feed_ad.js",method:"",ln:16}),t}}}});_.Module.define({path:"platform/widget/InfoCollection",requires:[],sub:{initial:function(n){this.initForm(),this.initSubmitEvent(),this._type=n.pageType},initSubmitEvent:function(){var n=this,i=$(".info_collection_main");n.clearInput(),i.on("click",".j_info_collection_btn",function(){n.submitCheck()&&$.post("/gcf/consume/consumeCommit?ie=utf8",{tbs:PageData.tbs,page:"frs"===n._type?1:0,forum_name:PageData.forum.forum_name,forum_id:PageData.forum.forum_id,name:i.find(".j_info_collection_firstname").val(),sex:i.find("input[name='gender']:checked").val(),province:i.find(".j_area_select:first").val(),city:i.find(".j_area_select:last").val(),phone:i.find(".j_info_collection_phone").val(),info_key:i.find(".j_info_collection_option").val(),info_value:i.find(".j_info_collection_text").val()},function(i){"210009"===i.no?n.alertInfo("表单信息有误,请修改"):(n.alertInfo("感谢您的填写"),n.clearInput())},"json")})},initForm:function(){var n=this,i=$(".info_collection_main");_.Module.use("common/component/AreaSelect",[{parent_id:"j_area_select",data_arr:[["安徽省","北京市","重庆市","福建省","甘肃省","港澳台","广东省","广西壮族自治区","贵州省","海南省","河北省","河南省","黑龙江省","湖北省","湖南省","吉林省","江苏省","江西省","辽宁省","内蒙古自治区","宁夏回族自治区","青海省","山东省","山西省","陕西省","上海市","四川省","天津市","西藏自治区","新疆维吾尔自治区","云南省","浙江省","重庆市","海外"],["安庆市","蚌埠市","亳州市","巢湖市","池州市","滁州市","阜阳市","合肥市","淮北市","淮南市","黄山市","六安市","马鞍山市","宿州市","铜陵市","芜湖市","宣城市"],["昌平区","朝阳区","大兴区","东城区","房山区","丰台区","海淀区","怀柔区","门头沟区","密云县","平谷区","石景山区","顺义区","通州区","西城区","延庆县"],["巴南区","北碚区","璧山县","长寿区","城口县","大渡口区","大足县","垫江县","丰都县","奉节县","涪陵区","合川区","江北区","江津区","九龙坡区","开县","梁平县","南岸区","南川区","彭水苗族土家族自治县","綦江县","黔江区","荣昌县","沙坪坝区","石柱土家族自治县","双桥区","铜梁县","潼南县","万盛区","万州区","巫山县","巫溪县","武隆县","秀山土家族苗族自治县","永川区","酉阳土家族苗族自治县","渝北区","渝中区","云阳县","忠县"],["福州市","龙岩市","南平市","宁德市","莆田市","泉州市","三明市","厦门市","漳州市"],["白银市","定西市","甘南藏族自治州","嘉峪关市","金昌市","酒泉市","兰州市","临夏回族自治州","陇南市","平凉市","庆阳市","天水市","武威市","张掖市"],["澳门特别行政区","香港特别行政区","台湾"],["潮州市","东沙群岛","东莞市","佛山市","广州市","河源市","惠州市","江门市","揭阳市","茂名市","梅州市","清远市","汕头市","汕尾市","韶关市","深圳市","阳江市","云浮市","湛江市","肇庆市","中山市","珠海市"],["百色市","北海市","崇左市","防城港市","贵港市","桂林市","河池市","贺州市","来宾市","柳州市","南宁市","钦州市","梧州市","玉林市"],["安顺市","毕节地区","贵阳市","六盘水市","黔东南苗族侗族自治州","黔南布依族苗族自治州","黔西南布依族苗族自治州","铜仁地区","遵义市"],["海口市","海南省直辖县级行政单位","三亚市"],["保定市","沧州市","承德市","邯郸市","衡水市","廊坊市","秦皇岛市","石家庄市","唐山市","邢台市","张家口市"],["安阳市","鹤壁市","济源市","焦作市","开封市","洛阳市","漯河市","南阳市","平顶山市","濮阳市","三门峡市","商丘市","新乡市","信阳市","许昌市","郑州市","周口市","驻马店市"],["大庆市","大兴安岭地区","哈尔滨市","鹤岗市","黑河市","鸡西市","佳木斯市","牡丹江市","七台河市","齐齐哈尔市","双鸭山市","绥化市","伊春市"],["鄂州市","恩施土家族苗族自治州","湖北省直辖县级行政单位","黄冈市","黄石市","荆门市","荆州市","十堰市","随州市","武汉市","咸宁市","襄樊市","孝感市","宜昌市"],["长沙市","常德市","郴州市","衡阳市","怀化市","娄底市","邵阳市","湘潭市","湘西土家族苗族自治州","益阳市","永州市","岳阳市","张家界市","株洲市"],["白城市","白山市","长春市","吉林市","辽源市","四平市","松原市","通化市","延边朝鲜族自治州"],["常州市","淮安市","连云港市","南京市","南通市","苏州市","宿迁市","泰州市","无锡市","徐州市","盐城市","扬州市","镇江市"],["抚州市","赣州市","吉安市","景德镇市","九江市","南昌市","萍乡市","上饶市","新余市","宜春市","鹰潭市"],["鞍山市","本溪市","朝阳市","大连市","丹东市","抚顺市","阜新市","葫芦岛市","锦州市","辽阳市","盘锦市","沈阳市","铁岭市","营口市"],["阿拉善盟","巴彦淖尔市","包头市","赤峰市","鄂尔多斯市","呼和浩特市","呼伦贝尔市","通辽市","乌海市","乌兰察布市","锡林郭勒盟","兴安盟"],["固原市","石嘴山市","吴忠市","银川市","中卫市"],["果洛藏族自治州","海北藏族自治州","海东地区","海南藏族自治州","海西蒙古族藏族自治州","黄南藏族自治州","西宁市","玉树藏族自治州"],["滨州市","德州市","东营市","菏泽市","济南市","济宁市","莱芜市","聊城市","临沂市","青岛市","日照市","泰安市","威海市","潍坊市","烟台市","枣庄市","淄博市"],["长治市","大同市","晋城市","晋中市","临汾市","吕梁市","朔州市","太原市","忻州市","阳泉市","运城市"],["安康市","宝鸡市","汉中市","商洛市","铜川市","渭南市","西安市","咸阳市","延安市","榆林市"],["宝山区","长宁区","崇明县","奉贤区","虹口区","黄浦区","嘉定区","金山区","静安区","卢湾区","闵行区","浦东新区","普陀区","青浦区","松江区","徐汇区","杨浦区","闸北区"],["阿坝藏族羌族自治州","巴中市","成都市","达州市","德阳市","甘孜藏族自治州","广安市","广元市","乐山市","凉山彝族自治州","泸州市","眉山市","绵阳市","内江市","南充市","攀枝花市","遂宁市","雅安市","宜宾市","资阳市","自贡市"],["宝坻区","北辰区","滨海新区","东丽区","和平区","河北区","河东区","河西区","红桥区","蓟县","津南区","静海县","南开区","宁河县","武清区","西青区"],["阿里地区","昌都地区","拉萨市","林芝地区","那曲地区","日喀则地区","山南地区"],["阿克苏地区","阿勒泰地区","巴音郭楞蒙古自治州","博尔塔拉蒙古自治州","昌吉回族自治州","哈密地区","和田地区","喀什地区","克拉玛依市","克孜勒苏柯尔克孜自治州","塔城地区","吐鲁番地区","乌鲁木齐市","新疆直辖县级行政单位","伊犁哈萨克自治州"],["保山市","楚雄彝族自治州","大理白族自治州","德宏傣族景颇族自治州","迪庆藏族自治州","红河哈尼族彝族自治州","昆明市","丽江市","临沧市","怒江傈僳族自治州","普洱市","曲靖市","文山壮族苗族自治州","西双版纳傣族自治州","玉溪市","昭通市"],["杭州市","湖州市","嘉兴市","金华市","丽水市","宁波市","衢州市","绍兴市","台州市","温州市","舟山市"],["巴南区","北碚区","璧山县","长寿区","城口县","大渡口区","大足县","垫江县","丰都县","奉节县","涪陵区","合川区","江北区","江津区","九龙坡区","开县","梁平县","南岸区","南川区","彭水苗族土家族自治县","綦江县","黔江区","荣昌县","沙坪坝区","石柱土家族自治县","双桥区","铜梁县","潼南县","万盛区","万州区","巫山县","巫溪县","武隆县","秀山土家族苗族自治县","永川区","酉阳土家族苗族自治县","渝北区","渝中区","云阳县","忠县"],["海外"]],s_label:" ",directCity:!0,firText:"省份",secText:"城市",select_call_fun:function(){}}],function(){var t=i.find(".j_area_select:last");t.css("width","140px"),n.initCheckEvent()})},submitCheck:function(){var n=$(".info_collection_main"),i=n.find(".j_info_collection_phone"),t=/^1\d{10}$/g,e=!0;return""===i.val()||t.test(i.val())===!1?(i.addClass("error_hint"),e=!1):i.removeClass("error_hint"),e},initCheckEvent:function(){var n=$(".info_collection_main"),i=n.find(".j_info_collection_phone"),t=/^1\d{10}$/g;n.on("focus",".j_info_collection_phone",function(){$(this).removeClass("error_hint")}),i.blur(function(){(""===$(this).val()||t.test(i.val())===!1)&&$(this).addClass("error_hint")})},alertInfo:function(n){$.tb.alert({heading:"",message:"
"+n+" ",noTitle:!0,buttons:[{text:"确定",callback:function(n,i){i.close()}}]})},clearInput:function(){var n=$(".info_collection_main");n.find(".j_info_collection_firstname").val(""),n.find(".j_info_collection_phone").val(""),n.find(".j_info_collection_text").val("")}}});_.Module.define({path:"comforum/widget/GameSpreadThread",_container:null,sub:{initial:function(t){this._container=$("#game_spread_thread_content_"+t),this._render(t),this._bindEvents(t)},_render:function(t){var e=PageUnit.load("forumListV3_game_spreads_swfs");if(e["l_"+t]&&e["l_"+t][0]){var a=e["l_"+t][0].split("|");new $.swf(a[0],{container:this._container,width:738,height:90});{$("
").tbattr({"class":"game_spread_anchor",href:a[1],target:"_blank"}).appendTo(this._container)}}},_bindEvents:function(t){var e=this,a=e._container.getData(),n=a.cookieId;$("#game_spread_thread_content_1").on("click",function(){$.stats.track("PB_第一楼下小通栏","PC端商业化游戏统计",PageData.product||"","点击",{obj_url:"-",obj_name:"-",obj_type:"游戏"})}),e._container.find("a").on("click",function(){e._stats(t,a,"点击"),n&&$.cookie(n,0,{expires:365})}),e._stats(t,a,"展现")},_stats:function(t,e,a){$.stats.track("下"+t,"PB页游戏统计","pb",a,{obj_id:e.id||"",obj_name:e.title||"",obj_url:e.pic||"",obj_type:e.type||"",obj_subtype:e.subtype||""})}}});_.Module.define({path:"comforum/widget/AdPost",sub:{initial:function(){}}});_.Module.define({path:"props/widget/Residual",requires:[],sub:{initial:function(i){this.dataObj=i,this.initOptions()},initOptions:function(){this.options={1070001:"worship",1070002:"egg"}},getResidualKey:function(i){for(var e=i.props||{},s=null,n="",t=["1070002","1070001"],a=0;a
0&&s.end_time>Env.server_time/1e3){n=this.options[t[a]];break}return n},showUI:function(i){var e=i.wrap,s="",n=null,t=i.key||this.getResidualKey(i);t&&(s="residual_wrap residual_wrap_"+t,n=e.find(".residual_wrap"),n[0]?n.removeClass().addClass(s):(n=$('
'),e.append(n)))}}});!function(t){function a(a){if(PageData.user.is_login){t.stats.sendRequest("fr=tb0_forum&st_mod=idisk&st_type=download");var e=t(a);return t.post("/data/filepost?method=update_file_statistic",{fs_id:e.data("fsId"),thread_id:PageData.thread.thread_id,forum_id:PageData.forum.forum_id,stat_kind:0,tbs:PageData.tbs}),!0}return TbCom.process("User","buildLoginFrame"),!1}function e(a){if(PageData.user.is_login){t.stats.sendRequest("fr=tb0_forum&st_mod=idisk&st_type=forward");var e={31061:"文件已存在",31112:"百度云空间不足 整理网盘 "},d=t(a);t.post("/data/filepost",{method:"archiveFile",src_uk:d.data("uk"),src_path:d.data("filePath"),dst_path:"/"+d.data("fileName"),tbs:PageData.tbs},function(a){var i;return a.status&&"-3"==a.status?(t.dialog.alert("操作失败了,刷新一下试试
",{width:300}),void 0):(a.error_code?(i=e[a.error_code],i||(i="转存失败"),t.dialog.alert(""+i+"
",{width:300})):d.hide().after("已转存 "),void 0)},"json"),t.post("/data/filepost?method=update_file_statistic",{fs_id:d.data("fsId"),thread_id:PageData.thread.thread_id,forum_id:PageData.forum.forum_id,stat_kind:1,tbs:PageData.tbs})}else TbCom.process("User","buildLoginFrame");return!1}window.diskmanager={};var d=window.diskmanager;d.onClickDownload=a,d.onClickSaveToMine=e}(jQuery);_.Module.define({path:"common/component/JsPager",sub:{_cfg:{},_amount:0,_center_pos:0,_jwrapper:null,_isNew:!0,_page_template:{normal:'#page# ',current:"#page# ",prev:'上一页 ',next:'下一页 ',head:'首页 ',tail:'尾页 ',prev_disable:'上一页 ',next_disable:'下一页 ',head_disable:'首页 ',tail_disable:'尾页 ',status:'/ '},_default_cfg:{container:$("body"),amount:10,isHtml:!1,current:1,total:10,mode:0,url:"##",openInNew:!1,showStatus:!1,statusPos:"head",showDisableItem:!1,template:{},classname:{wrapper:"tbui_js_pager",normal:"",current:"current",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"}},initial:function(e){var a=this;if(a._isNew){a._cfg=$.extend({},a._default_cfg,e);var t=a._cfg;t.template=$.extend({},a._page_template,t.template),t.amount=parseInt(t.amount),t.current=parseInt(t.current),t.total=parseInt(t.total),a._amount=t.total>t.amount?t.amount:t.total,a._center_pos=parseInt((a._amount+1)/2)}else a._cfg=$.extend(a._cfg,e);a._amount<=1||(a._cfg.isHtml||a._render(),a._isNew=!1)},_render:function(){var e=this,a=e._cfg,t=[],r="";if(a.showStatus&&"head"===a.statusPos&&t.push(e._generateHtml("status",a.current,a.total)),a.current>1?(t.push(e._generateHtml("head",1)),t.push(e._generateHtml("prev",a.current-1))):a.showDisableItem&&(t.push(e._generateHtml("head_disable",1)),t.push(e._generateHtml("prev_disable",a.current-1))),e._amount){var n,s,l,p;n=a.current-parseInt((e._amount-1)/2),s=a.current+e._center_pos,1>n?(l=1-n,n=1,s+=l,s=s>a.total?a.total:s):s>a.total&&(l=s-a.total,s=a.total,n-=l,n=1>n?1:n);for(var i=n;s>=i;i++)p=i==a.current?"current":"normal",t.push(e._generateHtml(p,i))}if(a.current",{"class":a.classname.wrapper}),e._jwrapper.bind("click",function(t){return"A"==t.target.nodeName&&("0"!==$(t.target).tbattr("ok")&&e.trigger("pageChange",parseInt($(t.target).tbattr("index"))),0==a.mode)?!1:void 0}),!a.isHtml)){var u=$("string"==typeof a.container?"#"+a.container:a.container);u.empty(),u.append(this._jwrapper)}return a.isHtml?r:void e._jwrapper.html(r)},_generateHtml:function(e,a,t){var r="",n=this._cfg;r=n.template[e],r=r.replace(/#page#/g,a),r=r.replace(/#url#/g,n.url.replace(/\{page\}/g,a)),"undefined"!=typeof t&&(r=r.replace(/#total#/g,t));var s="";return n.classname[e]&&(s+='class="'+n.classname[e]+'"'),n.openInNew&&(s+=" target=_blank"),-1!==e.indexOf("disable")&&(s+=' ok="0"'),r=r.replace(/#special#/,s)}}});_.Module.define({path:"props/component/PropsApi",requires:["common/component/JsPager"],sub:{initial:function(t){this.dataObj=t,this.initOptions(),this.bindEvents()},initOptions:function(){this.titleMap={"1070001_0":"他们对我使用了“魔拜”","1070001_1":"他们对贴使用了“魔拜”","1070002_0":"他们对我使用了“魔蛋”","1070002_1":"他们对贴使用了“魔蛋”"},this.urlMap={0:"/tbmall/getUserAppraise",1:"/tbmall/getPostAppraise"}},bindEvents:function(){var t=this,i=t.dataObj;$(".props_item_tail").live("click",function(){return t.propsData={props_id:$(this).data("propsid"),props_type:i.props_type},"0"==i.props_type&&(t.propsData.user_id=$(this).data("userid"),t.propsData.user_sex=$(this).data("usersex")),"1"==i.props_type&&(t.propsData.post_id=$(this).data("postid")),t.initPager=!0,t.showDialog(),!1})},getAttrsHtml:function(t){for(var i=null,s=[],a="",p=["user_id","user_sex","post_id","props_id"],e=0;e '),i.push(''),i.push(''),i.push(' '),i.push(''+String.fromCharCode(215)+" "),i.push(''+a.num+" "),i.push(""),p++);return 0>p?"":i.join("")},showUI:function(t){var i=this.showUIHtml(t);i&&t.wrap.html(i)},showDialog:function(){this.initDialogData(),this.initDialogUI(),this.showOrUpdateList()},initDialogData:function(){var t=this.propsData,i=t.props_id+"_"+t.props_type,s=this.titleMap[i];if(t.user_id!==PageData.user.id){var a=t.user_sex;s=s.replace(/\u6211/,a)}this.dialogTitle=s,this.dataurl=this.urlMap[t.props_type],this.pn=0,this.pageSize=10,this.pageCount=8},initDialogUI:function(){var t=this;this.$wrap=$('
'),this.$userlist=$('
'),this.$wrap.append(this.$userlist),this.dialog=new $.dialog({title:t.dialogTitle,width:554,height:340,show:!1,html:this.$wrap})},showOrUpdateList:function(){var t=this,i=t.propsData,s={props_id:i.props_id,look_user_id:i.user_id||"",post_id:i.post_id||"",pn:t.pn,c:t.pageSize};$.tb.get(t.dataurl,s,function(i){i&&0==i.no?(t.list=i.data.list,t.updateList(),t.initPager&&i.data.total>1&&(t.initPager=!1,t.total=Math.ceil(i.data.total/t.pageSize),t.buildPager()),t.dialog.show()):t.showErrorDialog()})},showErrorDialog:function(){new $.dialog({title:"提示",width:300,height:50,html:'网络错误,请重试
'})},buildPager:function(){var t=$('');this.$wrap.append(t);var i=this,s=this.use("common/component/JsPager",{container:t,current:1,amount:i.pageCount,total:i.total});s.bind("pageChange",function(t,a){s.initial({current:a}),i.pn=a,i.showOrUpdateList()}),this.pager=s},updateList:function(){var t=this.list,i=[],s=null;i.push('"),this.$userlist.html(i.join(""))},getShowtime:function(t){t*=1e3;var i=new Date($.dateFormat(new Date(Env.server_time),"yyyy-MM-dd 00:00:00")).getTime();return t=t>i?$.dateFormat(new Date(t),"HH:mm"):$.dateFormat(new Date(t),"yyyy-MM-dd")}}});_.Module.define({path:"pb/widget/sub_list/postTail",requires:["props/component/PropsApi"],sub:{thread:{},power:{},initial:function(a){try{this.tailList=a.tailList,this.thread=PageData.thread,this.power=PageData.power,this.user=PageData.user,this.tailList=a.tailList,this.isLocal58=a.isLocal58,this.propsapi=this.use("props/component/PropsApi",{props_type:"1"})}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"pb:widget/sub_list/post_tail.js",method:"",ln:20}),s}},getPostTailTpl:function(a,s){var t='';return this.isLocal58||(t+=1==a.post_no?'
':["
"].join("")),t+='
'+this.showFloorNumAndDate(a)+" ",t+=this.isLocal58?'
':['
',this.getJubaoHtml(a,s,1),this.showTail(a),this.loadAdmin(a,s)," "].join(""),this.power.can_op_as_4thmgr&&(t+='
'),t+='
',t+=this.propsapi.showUIHtml({props:a.props||{},post_id:a.post_id}),t+=" ",t+=this.showMallTail(a),t+="
"},showFloorNumAndDate:function(a){var s=a.post_no+"楼",t="";return t+="1"==this.thread.thread_type?''+s+" ":""+s+" ",t+=""+a.date+" "},getJubaoHtml:function(a,s){var t="",l=this.thread,i=this.power,e=this.user;if(!(1==l.thread_type&&1==a.post_no||(i.can_mask_delete||i.lz_del)&&1!=a.post_no)){var p=i.can_vip_jubao?"vip举报":"举报";if(e.user_id!=s.user_id||a.is_anonym){var n="window.open('http://tieba.baidu.com/complaint/info?type={type}&cid=0&tid="+l.thread_id+"&pid="+a.post_id+"','newwindow', 'height=900, width=800, toolbar =no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');return false;";t=''+p+' |个人企业举报 垃圾信息举报 '}else{var _="{'delete_mine':'1','index':'2','user_name':'"+s.user_name+"'}";p="删除",t=''+p+" | "}}return t},showTail:function(a){var s=a.open_id,t=a.open_type,l=this.tailList,i={1:"1",4:"1",5:"1",6:"1",youliao:"1"};"wap"!==s||i.openType||"sharexc"==t||"webipad"==t||(t="phone");var e=s+"_"+t,p=l[e]?l[e]:[],n=p[0],_=p[1],o=p[2],r="";return n&&(r="xiangce"===t?'通过 '+n+' 上传 ':"shenqi"===t?'通过 '+n+' 上传 ':_&&o?'来自 '+n+" ":_?'来自 '+n+" ":o?'本楼含有'+n+" ":'来自 '+n+" "),r},loadAdmin:function(a,s){var t=this.power,l=this.user,i="",e=" |",t=this.power,l=this.user;return a.is_anonym?t.can_filter_ip&&(i+='封 '+e+" "):t.can_filter_id&&(i+='封 '+e+" "),1!=a.post_no&&(t.can_mask_delete||t.lz_del&&!l.forbidden.isForbid&&!l.is_black)&&(i+='删除 '+e+" "),t.can_super&&!a.is_anonym&&(i+='贴吧管理 | '),i},showMallTail:function(a){var s="",t={1019001:"1",1019002:"1",1019003:"1",1049001:"1",1049002:"1",1049003:"1"};return(a.is_bub||a.ptype&&7==a.ptype.length&&!t[a.ptype])&&(s=' '),s}}});
;_.Module.define({path:"pb/widget/postList/Lzl",requires:["pb/widget/Admin","user/widget/Icons"],sub:{editor_entry:null,_reach_limit:!1,_new_reply_num:0,initial:function(t){try{if(Page.checkLoadedModules("lzlHasLoad"))return;this.postJdom=t,this.wapperDOM=$("#j_p_postlist"),this.icons=this.use("user/widget/Icons"),this._admin=this.use("pb/widget/Admin"),this._init()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:29}),e}},_init:function(){this._showJubao(),this._bindEditorEntry(),this._bindFoldClick(),this._bindClick()},_showLzlJubao:function(t){if(!PageData.power.can_mask_delete&&!PageData.power.lz_del){var e,e=(PageData.power.can_vip_jubao?"vip举报":"举报",t.find("li.j_lzl_s_p"));e.each(function(){var t=$(this).find("a").filter(function(){return $(this).tbattr("username")}).tbattr("username"),e="";if(PageData.user.user_name==t)var i="删除",e="{'delete_mine': 1, 'user_name' : '"+t+"'}",l=''+i+" | ";else{var a=$(this).data("field");if(a)var i=PageData.power.can_vip_jubao?"vip举报":"举报",o="",l=''+i+" | ";else l=""}$(this).find(".lzl_jb").html(l)})}},_bindFoldClick:function(){var t=this;this.wapperDOM.delegate(".lzl_link_unfold","click",function(e){try{var i=e.srcElement||e.target;return PageData.user.is_login?(t._loadLzlContent($(i)),t._unfoldLzl($(i))):TbCom.process("User","buildLoginFrame",null,null,null,"lzl_reply"),!1}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:84}),e}}).delegate(".lzl_link_fold","click",function(e){try{var i=e.srcElement||e.target;t._foldLzl($(i))}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:87}),e}})},_loadLzlContent:function(t){var e=t.parents(".l_post");LzlEditor.cur_optdom.postJdom=e;e.find(".j_lazy_lzl");LzlEditor.cur_optdom.jdom=e.find(".j_lzl_wrapper"),LzlEditor.cur_optdom.mainDom=LzlEditor.cur_optdom.jdom.find("div.j_lzl_container"),LzlEditor.cur_optdom.tailDom=LzlEditor.cur_optdom.jdom.find("div.j_lzl_r"),LzlEditor.cur_optdom.mainData=LzlEditor.cur_optdom.mainDom.getData(),LzlEditor.cur_optdom.tailData=LzlEditor.cur_optdom.tailDom.getData(),AntiAnswerLzl=new CaptchaReqCom({forumName:PageData.forum.name_url,forumId:PageData.forum.forum_id,tid:PageData.thread.thread_id,postType:"reply"})},_updateReplyNum:function(t){var e=0;if(t)e=t;else{this._new_reply_num++;var e=1*this.tailData.total_num+this._new_reply_num}this.tailDom.find("a.lzl_link_unfold").html("回复("+e+")")},_foldLzl:function(t){var e=t.parents(".l_post").find(".j_lzl_container");if(LzlEditor.cur_sec){var i=LzlEditor.cur_sec;i.find("span.close").click(),LzlEditor._s_p._ie6RelativeHack()}e.slideUp("normal",function(){t.hide(),t.parent().find("a.lzl_link_unfold").show()})},_unfoldLzl:function(t){var e=this;if(e.target=t,t.hide(),t.parent().find("span.lzl_link_fold").show(),LzlEditor._lzl&&LzlEditor._lzl.mainData.pid==LzlEditor.cur_optdom.mainData.pid){var i="";LzlEditor._s_p._se&&(i=LzlEditor._s_p._se.getContent()),LzlEditor._lzl=null,LzlEditor._hide(),LzlEditor.cur_sec.empty(),LzlEditor.init(e),LzlEditor._s_p._se&&LzlEditor._s_p._se.ready(function(){LzlEditor._s_p._se.execCommand("inserthtml",i)}),LzlEditor._s_p._ie6RelativeHack(),CaptchaLzl&&!CaptchaLzl.needUpdate&&CaptchaLzl.reload(),LzlEditor.cur_sec.parent().show(),e.mainDom.slideDown("normal",function(){LzlEditor._s_p._ie6RelativeRecover()})}else LzlEditor.init(e),LzlEditor._s_p._ie6RelativeHack(),LzlEditor.cur_sec.parent().show(),e.mainDom.slideDown("normal",function(){LzlEditor._s_p._ie6RelativeRecover()});$.stats.sendRequest("fr=tb0_forum&st_type=lzl_unfold")},_showJubao:function(){this.wapperDOM.delegate(".j_lzl_s_p","mouseover",function(){$(this).find(".lzl_jb").show()}).delegate(".j_lzl_s_p","mouseout",function(){$(this).find(".lzl_jb").hide()})},asyncImage:function(t,e){var i=t.find("img."+e);return 0==i.length?!1:($.each(i,function(t,e){e.src=e.getAttribute("data-passive")||e.getAttribute("src")}),void 0)},_bindClick:function(){var t=this;this.wapperDOM.delegate(".j_lzl_m","click",function(){try{if(PageData.user.is_login){var e=$(this).parents(".j_lzl_m_w");return t.asyncImage($("#"+$(this).tbattr("lzlid")),"forasync"),e.find(".lzl_post_hidden").slideDown(),e.find(".j_pager").show(),e.find(".lzl_more").hide(),$.stats.sendRequest("fr=tb0_forum&st_type=lzl_more"),!1}return _.Module.use("common/component/force_login",["","userbar","dialog","pb_lzl_more"]),!1}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:222}),i}}).delegate(".lzl_s_r","click",function(e){try{var i=e.target||e.srcElement;return PageData.user.is_login?(t._loadLzlContent($(i)),t._fastReply($(i))):TbCom.process("User","buildLoginFrame",null,null,null,"lzl_interact"),!1}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:231}),e}}).delegate(".j_pager","click",function(e){try{if("A"==e.target.tagName){window.global&&"function"==typeof window.global.shieldPost&&window.global.shieldPost();var i=$(e.target),l=$.tb.unescapeHTML(i.tbattr("index"));if(!l){var a=$.tb.unescapeHTML(i.tbattr("href")).split("#");l=parseInt(a[1])}return t.mainDom=i.parents(".j_lzl_container"),t.mainData=t.mainDom.getData(),t.postJdom=i.parents(".l_post"),t._turnPage(t,l,i.parents(".core_reply_content")),!1}}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:249}),o}})},_bindEditorEntry:function(){var t=this;t.wapperDOM.delegate("p.j_lzl_p","click",function(){try{return t.editor_entry=$(this),PageData.user.is_login?(LzlEditor._lzl&&LzlEditor._lzl.mainData.pid==LzlEditor.cur_optdom.mainData.pid&&"none"!=LzlEditor.cur_sec.css("display")?LzlEditor._s_p._getHtml()?LzlEditor._s_p._se.setContent(""):LzlEditor._hide():(t._loadLzlContent($(this)),LzlEditor.init(t)),!1):(TbCom.process("User","buildLoginFrame",null,null,null,"too_reply"),!1)}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/sub_list/sub_list_main.js",method:"",ln:274}),e}})},_fastReply:function(t){var e=t.parents(".j_lzl_s_p"),i=e.getData(),l="回复 "+i.user_name+" :";LzlEditor._lzl&&LzlEditor._lzl.mainData.pid==LzlEditor.cur_optdom.mainData.pid?LzlEditor._s_p._se&&(LzlEditor._s_p._se.$body.html(""),LzlEditor._show(),LzlEditor._s_p._se.execCommand("inserthtml",l)):(LzlEditor.init(this),LzlEditor._s_p._se&&LzlEditor._s_p._se.execCommand("inserthtml",l)),LzlEditor._s_p._setData(i)},_turnPage:function(t,e,i){var l=new Date;l=l.getTime(),$.ajax({url:"/p/comment",data:{tid:PageData.thread.thread_id,pid:t.mainData.pid,pn:e,t:l},dataType:"html",success:function(e){t._ajaxSucc(e,i),$.tb.location.setHash("noExistHash"),$.tb.location.setHash(t.mainData.pid+"l")},error:function(e){t._ajaxErr(e)}})},_ajaxSucc:function(t,e){var i=this;if(t&&t.length>200){var l=$(t);l.find(".voice_player .time").each(function(){$(window).trigger("initvoicelength",this)}),l.find(".voice_player_desc").remove(),this.mainDom.find("ul.j_lzl_m_w").html(l),i._showLzlJubao(e),this._admin.loadLzlAdmin(e),l.find(".lzl_cnt").each(function(){var t=$(this),e=t.getData().iconArr,l=t.getData().free_flag,a=e?i.icons.getPreIconHtml(e,l):"";t.prepend(a)}),$.browser.msie&&$.browser.version<=7&&this.postJdom.tbattr("class",$.tb.unescapeHTML(this.postJdom.tbattr("class")))}else{var a='服务器很忙
请刷新页面,稍后再试
',o=$.dialog.alert(a,{width:410,height:95,title:"错误提示"});o.bind("onclose",function(){return!0})}},_ajaxErr:function(){var t='服务器很忙
请刷新页面,稍后再试
',e=$.dialog.alert(t,{width:410,height:95,title:"错误提示"});e.bind("onclose",function(){return!0})}}});
;var LzlEditor={_lzl:null,default_options:{autoFocus:!0,autoEnable:!0,height:"40px",width:"527px",maxHeight:"40",wrapperClassName:"lzl_simple_wrapper",enableRefer:!0},options:{},cur_sec:null,cur_optdom:{},_s_p:null,init:function(i,l){LzlEditor.options={},$.extend(LzlEditor.options,LzlEditor.default_options),l&&$.extend(LzlEditor.options,l),LzlEditor._buildEditor(i)},_buildEditor:function(i){if(LzlEditor._lzl){if(LzlEditor._lzl.mainData.pid==LzlEditor.cur_optdom.mainData.pid)return LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").length>0&&1==$.tb.Storage.get("VoicePostorAdClosed")&&LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").remove(),LzlEditor.cur_sec.show(),LzlEditor._s_p._se&&LzlEditor._s_p._se.focus(),!1;var l=LzlEditor.cur_sec;l.find("span.close").click();var t=l.find(".tb-editor-editarea");t[0]&&t.html().length>0&&l.bindData({txt:t.html()}),LzlEditor._hide(),LzlEditor.cur_sec.empty(),LzlEditor._s_p=null;var o=LzlEditor._lzl.mainDom.find("li.j_lzl_s_p");0==o.length&&(LzlEditor._lzl.tailDom.find(".lzl_link_fold").hide(),LzlEditor._lzl.tailDom.find(".lzl_link_unfold").show(),LzlEditor._lzl.mainDom.hide())}LzlEditor._lzl=i,$.extend(LzlEditor._lzl,LzlEditor.cur_optdom);var l=i.jdom.find("div.j_lzl_e_c"),e=PageData.thread.topic;LzlEditor.cur_sec=l;var r=$.extend({container:l[0],uid:PageData.user.user_id},LzlEditor.options);LzlEditor._lzl._reach_limit=LzlEditor._limitCheck()||LzlEditor._lzl._reach_limit?!0:!1;var d={_can_post:PageData.power.can_post,_forum_type:PageData.forum_type,_no_un:PageData.user.no_un,_is_block:PageData.user.forbidden.isForbid?!0:!1,_reach_limit:LzlEditor._lzl._reach_limit,_login:PageData.user.is_login,_thread_topic_type:e.is_topic?"1":"0",_thread_topic_subtype:e.is_topic&&"2"==e.topic_type?"3":"0",data:LzlEditor._lzl.mainData,tpl_id:"j_simpleeditor_tpl"};_.Module.use("common/widget/SimplePoster",{op:d,edOp:r},function(i){i.bind("toTop",function(){$(window).scrollTop(0)},!0),i.bind("onsuccess",function(){LzlPostor._appendNew()},!0),i.bind("onclose",function(){LzlEditor._lzl._updateReplyNum(2e4),LzlEditor._lzl._reach_limit=!0,LzlEditor.init(LzlEditor._lzl)},!0),i.bind("hide",function(){LzlEditor._hide()},!0),LzlEditor._s_p=i});var n=l.getData();if(null!=n){var t=l.find(".tb-editor-editarea");t.html(n.txt)}LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").length>0&&1==$.tb.Storage.get("VoicePostorAdClosed")&&LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").remove(),l.show(),l.parent().find("input.j_lzl_e_f_h").show().focus().hide()},_limitCheck:function(){var i=!1,l=LzlEditor._lzl.jdom.find("li.j_lzl_l_p");if(0==l.length)return i;var t=l.getData();return t.total_num>=2e4&&(i=!0),i},_hide:function(){LzlEditor.cur_sec&&(LzlEditor.cur_sec.find("span.close").click(),LzlEditor.cur_sec.hide()),LzlEditor._lzl&&LzlEditor._lzl.editor_entry&&LzlEditor._lzl.editor_entry.show()},_show:function(){LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").length>0&&1==$.tb.Storage.get("VoicePostorAdClosed")&&LzlEditor.cur_sec.find(".j_lzl_p_sv .new_icon").remove(),LzlEditor.cur_sec&&LzlEditor.cur_sec.show()}};
;var LzlPostor={_appendNew:function(){var e=LzlEditor._lzl.jdom.find("ul.j_lzl_m_w");if(0==e.length){var a=LzlEditor._lzl.jdom.find("div.j_lzl_c_b_a");a.prepend($('
')),e=$(''),a.prepend(e)}e.show();var t=$(' ');t.bindData({user_name:PageData.user.user_name});var l=$.tb.dataField({un:PageData.user.user_name}),s=' username="'+PageData.user.user_name+'"'+l,i="/home/main/?un="+encodeURIComponent(PageData.user.user_name)+"&fr=pb&ie=utf-8",r="";r+='',r+='
',r+="
",r+='',_.Module.use("user/widget/Icons",null,function(e){r+=e.getPreIconHtml(PageData.user.mParr_props,PageData.user.free_flag)}),r+='
"+(PageData.user.is_verify?PageData.user.user_nickname:PageData.user.user_name)+" ",r+=PageData.user.is_verify?'
':"",r+=' :
',r+=LzlEditor._s_p._getHtml(),r+=" ",r+='
',r+='
'+LzlPostor.getCurrentTime()+" ",r+='
回复 ',r+="
",r+="
",t.html(r),t.insertBefore(e.find("li.j_lzl_l_p")),LzlEditor._lzl._updateReplyNum()},getCurrentTime:function(){function e(e){return 10>1*e?"0"+e:e}var a=new Date,t="";return t+=a.getFullYear()+"-",t+=a.getMonth()+1+"-",t+=a.getDate()+" ",t+=e(a.getHours())+":",t+=e(a.getMinutes())}},AntiAnswerLzl,CaptchaLzl;
;_.Module.define({path:"pb/widget/sub_list/subListTotal",requires:["user/widget/pbUserBase","user/widget/Icons","pb/widget/sub_list/postTail","common/component/JsPager"],sub:{initial:function(e){try{this._isAdThread=e.isAdThread,this._searchCid=e.searchCid,this._searchPid=e.searchPid,this._userList=e.userList,this._tailList=e.tailList,this._commentList=e.commentList,this._icons=this.use("user/widget/Icons"),this._user=this.use("user/widget/pbUserBase"),this._postTail=this.use("pb/widget/sub_list/postTail",{tailList:e.tailList,isLocal58:e.isLocal58})}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/sub_list/sub_list_total.js",method:"",ln:29}),t}},showLzlPost:function(e){var t=this,e=$(e),s=e.closest(".l_post").getData();e.html(t._getAnchor(s.content)+t._postTail.getPostTailTpl(s.content,s.author)+t._getSubContent(s.content)),e.removeAttr("style").find(".voice_player .time").each(function(){$(window).trigger("initvoicelength",this)})},_getAnchor:function(){var e="";return this._isAdThread&&(e+=' '),e},_getSubContent:function(e){var t=e.comment_num>0?"":"none";e.page={total_page:Math.floor((e.comment_num-1)/10)+1,cur_page:1};var s=["','
','
','
',this._getSubPostList(e)," ",'
','
',"
",'
',"
"].join("");return s},_getSubPostList:function(e){for(var t,s,i="",a=this._commentList[e.post_id],l="",n="",_=0;_',i=!0),s.nickname=s.is_verify||s.is_official?s.nickname:s.user_name,l+=['",this._user.face_link(s),'',this._icons.getPreIconHtml(s.mParr_props),this._user.name_link(s),"1"==s.is_verify||"1"==s.is_official?'
':"",':
',this._searchCid==t.comment_id?""+t.content+" ":t.content,this._getVoiceHtml(t)," ",this._getReplyHtml(t,s),"
"," "].join("");return l+=i?"":"",l+=this._getLzlPager(e,n),delete this._commentList[e.post_id],l},_getLzlPager:function(e,t){var s='"},_getForbiddenTip:function(e){var t="";return e.exist_forbidden_tip&&(t='本楼包含部分广告等违规内容的回复,已经被屏蔽,暂不可见。×
'),t},_getVoiceHtml:function(e){var t,s,i="";return e.ptype&&(t=e.during_time?Math.floor(e.during_time/60):"0",s=e.during_time?e.during_time%60:"0",i=['','
',' ','',t>0?''+t+" '":"",s>0||t>0?''+s+" "":""," "," ",' '," ","
"].join("")),i},_getReplyHtml:function(e,t){var s="",i=PageData.power,a=PageData.user;return s+='',i.can_mask_delete||i.lzl_del||(s+=t.user_name==a.user_name?"删除 |':"'+(i.can_vip_jubao?"vip举报":"举报")+" | "),s+=' ',s+=this._loadLzlAdmin(t,i,a),s+=' '+this._getTime(e.now_time)+' 回复 ',s+="
"},_loadLzlAdmin:function(e,t,s){var i="",a=" | ";return(t.can_filter_ip||t.can_filter_id)&&(i+='封 '+a),(t.can_mask_delete||t.lz_del&&!s.forbidden.isForbid&&!s.is_black)&&(i+='删除 '+a),t.can_super&&(i+='贴吧管理 '+a),i},_getTime:function(e){function t(e){return 10>1*e?"0"+e:e}var s;s=void 0==e?new Date:new Date(1e3*e);var i="";return i+=s.getFullYear()+"-",i+=s.getMonth()+1+"-",i+=s.getDate()+" ",i+=t(s.getHours())+":",i+=t(s.getMinutes())}}});var bdShareTb=bdShareTb||{};bdShareTb._LogPool=bdShareTb._LogPool||[],bdShareTb.ApiPVLogger||!function(e){function n(e,n){var t=[];for(var o in n){var i=typeof n[o];"function"!=i&&"object"!=i&&n.hasOwnProperty(o)&&t.push(e+"_"+o+"="+n[o])}return t.join("&")}function t(){for(var e=bdShareTb._LogPool||[],n={},t=e.length-1;t>=0;t--){var o=e[t],i=n[o.key];i?(i.linkid=i.linkid||o.api.linkid,i.loadTime=o.api.loadTime||i.loadTime,i.type=(i.type||0)|(o.api.type||0)):n[o.key]=o.api}e=[];for(var d in n)n.hasOwnProperty(d)&&e.push({key:d,api:n[d]});return bdShareTb._LogPool=e,e}function o(){var e=bdShareTb._LogPool||[],o=e.length;if(o>0){e=t(),o=e.length;for(var i=[],d="",a=null,u=[0,0,0,0,0,0,0,0],l=0;o>l;l++)a=e[l],u[r[a.key]]=1,a.api.linkid&&(d=a.api.linkid,delete a.api.linkid),i.push(n(a.key,a.api));i.unshift("linkid="+d),i.unshift("apitype="+parseInt(u.reverse().join(""),2)),c(i.join("&"))}}function i(){l=!0,d.dom.ready(o)}var d,a=d={version:"1.5.2.2"};a.guid="$BAIDU$",a.$$=window[a.guid]=window[a.guid]||{global:{}},a.browser=a.browser||{},function(){var e=navigator.userAgent;a.browser.safari=/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)?+(RegExp.$1||RegExp.$2):void 0}(),a.browser.ie=a.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,a.browser.opera=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(navigator.userAgent)?+(RegExp.$6||RegExp.$2):void 0,a.dom=a.dom||{},function(){var e=a.dom.ready=function(){function e(){if(!e.isReady){e.isReady=!0;for(var n=0,t=d.length;t>n;n++)d[n]()}}function n(){try{document.documentElement.doScroll("left")}catch(t){return setTimeout(n,1),void 0}e()}function t(){if(!i)if(i=!0,"complete"===document.readyState)e.isReady=!0;else if(document.addEventListener)document.addEventListener("DOMContentLoaded",o,!1),window.addEventListener("load",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",o),window.attachEvent("onload",e);var t=!1;try{t=null==window.frameElement}catch(d){}document.documentElement.doScroll&&t&&n()}}var o,i=!1,d=[];return document.addEventListener?o=function(){document.removeEventListener("DOMContentLoaded",o,!1),e()}:document.attachEvent&&(o=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",o),e())}),t(),function(n){e.isReady?n():d.push(n)}}();e.isReady=!1}(),d.undope=!0;var r={cite:0,img:1,addto:2,video:3},u=function(){var e=[];return function(n){var t="bdsharelog__"+(new Date).getTime(),o=e[t]=new Image;o.onload=o.onerror=function(){e[t]=null},o.src=n,o=null}}(),c=function(e){var n=/(\d+\-[a-zA-Z\d]+\-\d+\-\d+\-[a-f\d]+)/gi,t=(location.href.match(n)||"").toString(),o="http://nsclick.baidu.com/v.gif?pid=307&type=3071&sign="+t+"&desturl="+encodeURIComponent(document.referrer)+"&";u(o+e)},l=!1;e.ApiPVLogger={add:function(e,n){bdShareTb._LogPool.push({key:e,api:n})}},l||i()}(bdShareTb);
;var bdShareTb=bdShareTb||{};bdShareTb.ready=bdShareTb.ready||function(e,t){if(t=t||document,/complete/.test(t.readyState))e();else if(t.addEventListener)"interactive"==t.readyState?e():t.addEventListener("DOMContentLoaded",e,!1);else{var a=function(){a=new Function,e()};void function(){try{t.body.doScroll("left")}catch(e){return setTimeout(arguments.callee,10)}a()}(),t.attachEvent("onreadystatechange",function(){"complete"==t.readyState&&a()})}},bdShareTb.loadScript=bdShareTb.loadScript||function(e){var t=document.createElement("script");t.src=e,bdShareTb.ready(function(){document.getElementsByTagName("script")[0].parentNode.appendChild(t)})},bdShareTb.loadTime=+new Date;
;var bdShareTb=bdShareTb||{};!function(){var e=(new Date).getTime(),t=(new Date).getTime(),n=(new Date).getTime();if(document.getElementById("bdshare_tb")){var o=window,i=document,s=i.body,r=i.documentElement,a={},d="",l=i.title,c=[],h="",f={},u=i.getElementById("bdshare_tb").attributes.data,b=/MSIE 6.0/.test(navigator.userAgent),m="CSS1Compat"!=i.compatMode,u=u.nodeValue.replace(/&/g,"&").split("&")||"";try{var p=o.location||i.location;a.href=p.href,a.search=p.search,a.hash=p.hash,a.protocol=p.protocol,a.hostname=p.hostname,a.pathname=p.pathname,d=encodeURIComponent(a.href)}catch(g){setTimeout(function(){var e=o.location||i.location;a.href=e.href,a.search=e.search,a.hash=e.hash,a.protocol=e.protocol,a.hostname=e.hostname,a.pathname=e.pathname,d=encodeURIComponent(a.href)},0)}for(var y=u.length;y--;){var v=u[y].split("=");c[v[0]]=v[1]}var T={bdPref:"bds_",bdBtns:c.btnArray?c.btnArray.split(","):[],bdEntranceLog:c.entrance||"",bdNums:c.mini?7:15,bdMini:c.mini||!1,bdType:c.type||"",bdLeft:c.pos||"right",bdTitle:"分享到",bdText:c.text||l,weiboText:"",bdMore:"更多...",bdPopTitle:"分享到",bdImg:c.img||0,bdImgW:24,bdTop:0,bdIds:"bdshare",bdIdsl:c.mini&&"0"==c.mini?"bdshare_tb_l":"bdshare_tb_m",bdUid:c.uid||"",bdPic:c.bdPic||"",searchPic:c.searchPic||0,bdComment:"",bdDesc:"",wbUid:"",tongji:"on",review:"on",render:!0,snsKey:{},bdHost:"http://bdimg.share.baidu.com/static/",bdJump:"http://share.baidu.com/",bdApi:"http://api.share.baidu.com/",bdStatistics:"http://share.baidu.com/commit",bdCommit:"http://s.share.baidu.com/",bdMshare:"http://s.share.baidu.com/mshare",bdCout:"http://nsclick.baidu.com/v.gif?pid=307",bdWList:"([http|https]://[a-zA-Z0-9_.]+.baidu.com)",bdList:["mshare,一键分享,mshare","qzone,QQ空间,qqkj","tsina,新浪微博,xlwb","baidu,百度搜藏,bdsc","renren,人人网,rrw","tqq,腾讯微博,txwb","bdxc,百度相册,bdxc","kaixin001,开心网,kxw","tqf,腾讯朋友,txpy","tieba,百度贴吧,bdtb","douban,豆瓣网,db","tsohu,搜狐微博,shwb","bdhome,百度新首页,bdhome","sqq,QQ好友,sqq","thx,和讯微博,thx","qq,QQ收藏,qqsc","taobao,我的淘宝,tjh","hi,百度空间,bdkj","msn,MSN,msn","sohu,搜狐白社会,shbsh","t163,网易微博,wywb","qy,奇艺奇谈,qyqt","meilishuo,美丽说,mls","mogujie,蘑菇街,mgj","diandian,点点网,diandian","huaban,花瓣,huaban","leho,爱乐活,leho","share189,手机快传,share189","duitang,堆糖,duitang","hx,和讯,hexun","tfh,凤凰微博,fhwb","fx,飞信,feixin","youdao,有道云笔记,youdao","sdo,麦库记事,sdo","qingbiji,轻笔记,qingbiji","ifeng,凤凰快博,ifeng","people,人民微博,people","xinhua,新华微博,xinhua","ff,饭否,fanfou","mail,邮件分享,mail","kanshou,搜狐随身看,kanshou","yaolan,摇篮空间,yaolan","wealink,若邻网,wealink","tuita,推他,tuita","xg,鲜果,xianguo","ty,天涯社区,tianya","fbook,Facebook,facebook","twi,Twitter,twitter","ms,Myspace,myspace","deli,delicious,delicious","s51,51游戏社区,51shequ","s139,139说客,shuoke","linkedin,linkedin,LinkedIn","copy,复制网址,kaobei","print,打印,print"]}||{},w={_parseJson:function(e){e=e.replace(/^\s*{|}\s*$/g,"");for(var t=e.split(","),n={},o=0,i=t.length;i>o;o++){var s=t[o],r=s.indexOf(":");r>0&&(key=s.substring(0,r).replace(/^\s*[\'\"]?|[\"\']?\s*$/g,""),val=s.substring(r+1).replace(/^\s*[\'\"]?|[\"\']?\s*$/g,""),n[key]=val)}return n},_createScriptTag:function(e,t,n){e.setAttribute("type","text/javascript"),n&&e.setAttribute("charset",n),e.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(e)},_removeScriptTag:function(e){if(e.clearAttributes)e.clearAttributes();else for(var t in e)e.hasOwnProperty(t)&&"parentNode"!=t&&delete e[t];e&&e.parentNode&&e.parentNode.removeChild(e),e=null},callByBrowser:function(e,t,n){var o,i=document.createElement("SCRIPT"),s=0,r=n||{},a=r.charset,d=t||function(){},l=r.timeOut||0;i.onload=i.onreadystatechange=function(){if(!s){var e=i.readyState;if("undefined"==typeof e||"loaded"==e||"complete"==e){s=1;try{d(),clearTimeout(o)}finally{i.onload=i.onreadystatechange=null,w._removeScriptTag(i)}}}},l&&(o=setTimeout(function(){i.onload=i.onreadystatechange=null,w._removeScriptTag(i),r.onfailure&&r.onfailure()},l)),w._createScriptTag(i,e,a)},on:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},unon:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},html:function(e,t){var n=i.createElement(t||"div");for(var o in e)"style"==o?n[o].cssText=e[o]:n[o]=e[o];return"link"!=t?s.insertBefore(n,"iframe"==t?s.firstChild:h.nextSibling):(i.getElementsByTagName("head")[0].appendChild(n),void 0)},list:function(e){var t=T.bdPref,n=e.split(","),o=n[1],i="#",s=t+n[0]+" "+n[2];return{name:o,url:i,cls:s}},list_s:function(e){var t=[],n=inner="",o=T,i=o.bdList,s=o.bdBtns.length;if(more=o.bdNums'+o.bdMore+" ":"",o.bdBtns.length<=0)for(s=o.bdNums;s--;)n=w.list(i[s]),t.push(''+n.name+" ");else for(;s--;)o.bdBtns[s]'+n.name+""));if(inner='',inner+=''+o.bdTitle+" ",inner+="
"+t.reverse().join(" ")+" "+more+'百度分享
',!e)return inner;var r=w.html({id:"bdshare_tb_s",innerHTML:inner}),a=w.children(r);r=a[a.length-1],w.on(r,"mouseover",function(e){var e=e||window.event,t=e.target||e.srcElement,n=w.getPosition(t),o=e.relatedTarget||e.fromElement,i=w.getMousePos(e),s=i.x-n.l,a=i.y-n.t;t.buttontype=1,t.x=s,t.y=a,w.contains(r,o)||(r.time=+new Date)})},scroll:function(e,t){w.on(o,"scroll",function(){var n=w.getSize(),o=T,s=o.bdTop;"slide"==o.bdType&&(b||m?(w.setAttr(i.getElementById(o.bdIdsl),"display:block"),_bdS.style.top=n.t+(0==s?n.h/2-(i.getElementById(o.bdIdsl).offsetHeight-11)/2:parseInt(s))+"px"):0!=o.bdTop&&(_bdS.style.top=parseInt(o.bdTop)+"px")),"pop"==t&&(b||m)&&(e.style.top=n.t+n.h/2-e.offsetHeight/2+"px",w.setAttr(h,"top:"+e.style.top))})},getSize:function(){return{t:s.scrollTop||r.scrollTop,l:s.scrollLeft||r.scrollLeft,w:r.clientWidth||s.clientWidth,h:o.innerHeight||r.clientHeight||s.clientHeight}},getPosition:function(e){var t=w.getSize(),n=e,o={t:0,l:0},r=/gecko/.test(navigator.userAgent),a=function(e,t){o.t+=e,o.l+=t};if(n&&n!=s)if(n.getBoundingClientRect){var d=n.getBoundingClientRect(),l=e.ownerDocument,c=l.body,h=l.documentElement,f=h.clientTop||c.clientTop||0,u=h.clientLeft||c.clientLeft||0;if(d.top==d.bottom){var b=n.style.display;n.style.display="block",n.style.display=b}a(d.top+t.t-f,d.left+t.l-u)}else{for(var m=i.defaultView;n;){a(n.offsetTop,n.offsetLeft);var p=m.getComputedStyle(n,null);if(r){var g=parseInt(p.getPropertyValue("border-left-width"),10)||0,y=parseInt(p.getPropertyValue("border-top-width"),10)||0;a(y,g),n!=e&&"visible"!=p.getPropertyValue("overflow")&&a(y,g)}n=n.offsetParent}for(n=e.parentNode;n&&n!=s;)a(-n.scrollTop,-n.scrollLeft),n=n.parentNode}return o},setAttr:function(e,t){for(var n=t.split(";"),o=n.length;o--;)if(n[o]){var i=n[o].split(":");i&&(e.style[i[0]]=i[1])}},children:function(e){for(var t=[],n=e.firstChild;n;n=n.nextSibling)1==n.nodeType&&t.push(n);return t},generateRandom:function(e,t){for(var n=e.length,o="",i=1;t>=i;i++){var s=Math.floor(n*Math.random());o+=e.charAt(s)}return o},generateLinkid:function(){var e=(+new Date).toString(36),t=w.generateRandom("0123456789abcdefghijklmnopqrstuvwxyz",3);return e+t},contains:function(e,t){if(!t||!e)return!1;if(e==t)return!0;for(var n=t.parentNode;null!=n&&"undefind"!=typeof n.tagName;){if(n==e)return!0;n=n.parentNode}return!1},getMousePos:function(e){return e.pageX||e.pageY?{x:e.pageX,y:e.pageY}:document.documentElement&&document.documentElement.scrollTop?{x:e.clientX+document.documentElement.scrollLeft-document.documentElement.clientLeft,y:e.clientY+document.documentElement.scrollTop-document.documentElement.clientTop}:document.body?{x:e.clientX+document.body.scrollLeft-document.body.clientLeft,y:e.clientY+document.body.scrollTop-document.body.clientTop}:void 0},_isCookieValidKey:function(e){return new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$').test(e)},getCookieRaw:function(e){if(w._isCookieValidKey(e)){var t=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),n=t.exec(document.cookie);if(n)return n[2]||null}return null},setCookieRaw:function(e,t,n){if(w._isCookieValidKey(e)){n=n||{};var o=n.expires;"number"==typeof n.expires&&(o=new Date,o.setTime(o.getTime()+n.expires)),document.cookie=e+"="+t+(n.path?"; path="+n.path:"")+(o?"; expires="+o.toGMTString():"")+(n.domain?"; domain="+n.domain:"")+(n.secure?"; secure":"")}},getCookie:function(e){var t=w.getCookieRaw(e);return"string"==typeof t?t=decodeURIComponent(t):null},setCookie:function(e,t,n){w.setCookieRaw(e,encodeURIComponent(t),n)}},x=function(e){w.html({href:T.bdHost+"css/bdsstyle.css?cdnversion=20121228",rel:"stylesheet",type:"text/css"},"link"),h=h||w.html({style:"display:none;"+(e||""),frameBorder:0},"iframe")},_=function(e){var t=/(#\d+\-[a-zA-Z\d]+\-\d+\-\d+\-[a-f\d]{32}$)/g,n=(a.search+a.hash).replace(/&/g,"#"),o=n.match(t)||"",s=new RegExp(T.bdWList,"ig"),r=a.protocol+"//"+a.hostname+a.pathname+a.search;if(!s.test(a.href)||""!=o||"undefined"!=typeof e){var d=[];bdShareTb.fn.b.length>0&&d.push("button"),bdShareTb.fn.t.length>0&&d.push("tools"),bdShareTb.fn.conf.bdType&&d.push(bdShareTb.fn.conf.bdType);var c=function(){for(var e=0,t=d.length,n={},o=[];t>e;e++)!(d[e]in n)&&o.push(d[e])&&(n[d[e]]="");return o.join(",")}();if("on"==T.tongji||""!=o||"undefined"!=typeof e){""!=o&&"3072"!=e&&(o=o.toString().replace("#",""),(new Image).src=T.bdCommit+"back?url="+encodeURIComponent(r)+"&sign="+encodeURIComponent(o)+"&title="+encodeURIComponent(l.substr(0,300)));var h=bdShareTb.loadTime?+new Date-bdShareTb.loadTime:"";if("undefined"!=typeof e)(new Image).src=T.bdCout+"&type="+e+"&sign="+o+"&uid="+T.bdUid+"&desturl="+encodeURIComponent(i.referrer)+"&linkid="+k+"&button="+c+"&loadTime="+h;else{for(var f=[0,0,0,0],u=0,b=d.length;b>u;u++)f[{tools:0,button:1,slide:2}[d[u]]]=1;bdShareTb._LogPool=bdShareTb._LogPool||[],bdShareTb._LogPool.push({key:"cite",api:{uid:T.bdUid||"",linkid:k,type:parseInt(f.reverse().join(""),2),mini:T.bdMini?1:0,loadTime:h}})}}}},S={create:function(){var e=T,t=e.bdList,n=t.length,s=[],r="",a=w.getSize(),d=i.getElementById(e.bdIds+"_pop"),l=b||m?"absolute":"fixed",c=b||m?a.t:0;if(!d){for(;n--;)r=w.list(t[n]),s.push(''+r.name+" ");var u=w.html({id:e.bdIds+"_pop",style:"position:"+l,innerHTML:"'});I.bind(u,"mouseover","a"),I.bind(u,"click","b",function(){u.style.display="none",h.style.display="none"}),w.on(u,"mouseover",function(e){var e=e||window.event,t=e.target||e.srcElement,n=w.getPosition(t),o=w.getMousePos(e),i=o.x-n.l,s=o.y-n.t;t.buttontype=2,t.x=i,t.y=s;var r=e.relatedTarget||e.fromElement;w.contains(u,r)||(u.time=+new Date)})}var p=u||d;p.getElementsByTagName("h5")[0].innerHTML=(f.title||e.bdPopTitle)+" ",w.setAttr(p,"display:block;"),w.setAttr(p,"left:"+(a.w/2-p.offsetWidth/2)+"px;top:"+(c+a.h/2-p.offsetHeight/2)+"px"),w.setAttr(h,"position:"+l+";display:block;z-index:10000;width:"+p.offsetWidth+"px;height:"+p.offsetHeight+"px;left:"+p.style.left+";top:"+p.style.top),w.scroll(p,"pop"),w.on(o,"resize",function(){var e=w.getSize(),t="left:"+(e.w/2-p.offsetWidth/2)+"px;top:"+(c+e.h/2-p.offsetHeight/2)+"px";w.setAttr(p,t),w.setAttr(h,t)}),"slide"!=e.bdType&&(i.getElementById(T.bdIdsl).style.display="none",i.getElementById("bdsTbIfr").style.display="none"),window.bdShareActivity&&bdShareActivity.check()}},I={bind:function(e,t,n,i){var s=this;e.addEventListener?e.addEventListener(t,function(t){return s._action(t,t.target,n,e,i)},!1):e.attachEvent("on"+t,function(t){return t=o.event,s._action(t,t.srcElement,n,e,i)})},_action:function(e,t,n,o,i){var s=T.bdEntranceLog;if(t.nodeName==n.toUpperCase()){if("a"==n||"span"==n){var r=t.className,a="goWebsite"==r?r:r.split(" ")[0].split("_")[1],d=this;return a&&("more"==a&&"span"==n?d._tools(s):t.onclick=function(e,n){return function(o){var o=o||window.event,i=o.target||o.srcElement,r=w.getPosition(i),a=w.getMousePos(o),l=a.x-r.l,c=a.y-r.t;return"more"==e?d._tools(s):"copy"==e?d._copy(d):"print"==e?d._print():d._jump(e,n,t,l,c),!1}}(a,o)),!1}"function"==typeof i&&i()}"function"==typeof e.preventDefault?(e.preventDefault(),e.stopPropagation()):(e.returnValue=!1,e.cancelBubble=!0)},_tools:function(e){_(3072),S.create(),$.stats.sendRequest("bdshare=tb&page=logcount&entrance="+e)},_copy:function(e){_this=e;var t=new _this._browsers;"IE"==t.name?(window.clipboardData.setData("text",document.title+" "+a.href),alert("标题和链接复制成功,您可以推荐给QQ/MSN上的好友了!")):window.prompt("您使用的是非IE核心浏览器,请按下 Ctrl+C 复制代码到剪贴板",document.title+" "+a.href)},_mail:function(){},_print:function(){var e=document.getElementById("bdshare_pop");e&&(e.style.display="none"),window.print(),e&&(e.style.display="block")},_jump:function(i,s,r,a,l){var c=T,h=T.bdEntranceLog,u=T.bdIds,b=c.bdPic,m=c.bdText,p=c.weiboText,g=c.wbUid,y=d,v=c.bdDesc,x=c.bdComment,_=c.bdMiniWindow||0;f=s.getAttribute("data")&&""!=s.getAttribute("data")?w._parseJson(s.getAttribute("data")):f,""!=f?(b=encodeURIComponent(f.pic||"")||b,y=encodeURIComponent(f.url||"")||y,x=encodeURIComponent(f.comment||"")||x,v=encodeURIComponent(f.desc||"")||v,g=f.wbuid||g,m="tsina"==i?f.text&&f.weibotext?encodeURIComponent((f.text+f.weibotext).substr(0,300)):f.weibotext?encodeURIComponent((m+f.weibotext).substr(0,300)):f.text?encodeURIComponent((f.text+p).substr(0,300)):encodeURIComponent((m+p).substr(0,300)):encodeURIComponent((f.text||"").substr(0,300))||encodeURIComponent(m.substr(0,300))):m="tsina"==i?encodeURIComponent((m+p).substr(0,300)):encodeURIComponent(m.substr(0,300)),m=encodeURIComponent(m),n=(new Date).getTime()+3e3;var S=e.toString(32)+t.toString(32)+n.toString(32),I=r.buttontype,C=Math.floor(bdShareTb.XY.loadedX),E=Math.floor(bdShareTb.XY.loadedY),A=I>0?1:0,L=Math.floor(r.x),P=Math.floor(r.y),M=Math.floor(a),R=Math.floor(l),W=Math.floor(r.offsetWidth),B=Math.floor(r.offsetHeight),U=I,N=+new Date;N-=s.time;var q,D=[C,E,A,L,P,M,R,W,B,U,N].join(".");switch(T.bdType){case"button":q=1;break;case"slide":q=2;break;default:q=0}var H="mail"==i?"_mail":i,j="?click=1&url="+y+"&uid="+c.bdUid+"&to="+H+"&type=text&relateUid="+g+"&pic="+b+"&title="+m+"&key="+(c.snsKey[i]||"")+"&sign="+c.review+"&desc="+v+"&comment="+x+"&searchPic="+c.searchPic+"&l="+S+"&linkid="+k+"&sloc="+D+"&apiType=0&buttonType="+q+"&firstime="+w.getCookie("bdshare_firstime");if("mshare"==i)var z=c.bdMshare+j;else var z=c.bdCommit+j;var X=c.bdCommit+"commit"+j+"&t="+Math.random();if("goWebsite"!=i){bdShareTb.fn._getSc("share");var Y=function(){var e=[];return function(t){var n=e.push(new Image)-1;e[n].onload=function(){e[n]=e[n].onload=null},e[n].src=t,"block"!=$("#"+u+"_pop").css("display")&&$.stats.sendRequest("bdshare=tb&page=logcount&entrance="+h)}}();if(setTimeout(function(){Y(X)},1500),"bdxc"==i){var V,Q=window,z=document,K="_bdXC";Q[K]?window._bdXC_loaded&&Q[K].reInit():(V=z.createElement("script"),V.setAttribute("charset","utf-8"),V.src="http://xiangce.baidu.com/zt/collect/mark.js?"+(new Date).getTime(),z.getElementsByTagName("head")[0].appendChild(V))}else if("mail"==i){var J=T.bdCommit+"sendmail";window.open(J+j,"_blank")}else 1==_?o.open(z,"bdShare","height=400, width=600"):o.open(z)}else o.open(c.bdJump)},_browsers:function(){var e,t={},n=navigator.userAgent.toLowerCase();return n.match(/msie ([\d.]+)/)?(e=n.match(/msie ([\d.]+)/),t.name="IE",t.version=e[1]):n.match(/firefox\/([\d.]+)/)?(e=n.match(/firefox\/([\d.]+)/),t.name="firefox",t.version=e[1]):n.match(/chrome\/([\d.]+)/)?(e=n.match(/chrome\/([\d.]+)/),t.name="chrome",t.version=e[1]):n.match(/opera.([\d.]+)/)?(e=n.match(/opera.([\d.]+)/),t.name="opera",t.version=e[1]):n.match(/safari.([\d.]+)/)?(e=n.match(/safari.([\d.]+)/),t.name="safari",t.version=e[1]):(t.name="未知的浏览器",t.version="未知的版本号"),t}},k=w.generateLinkid();bdShareTb.fn=function(){return{init:function(){function e(t){var t=t||window.event,n=w.getMousePos(t);bdShareTb.XY.loadedX=n.x,bdShareTb.XY.loadedY=n.y,bdShareTb.XY.loadedX>0&&bdShareTb.XY.loadedY>0&&w.unon(document,"mousemove",e)}t=(new Date).getTime()+1e3,this.b=[],this.t=[],this.s=[],this.type="load",this._getShare();var n=this;if("undefined"!=typeof bds_config)for(var o in bds_config)("bdPopTitle"==o||"bdText"==o||"weiboText"==o||"bdPic"==o||"wbUid"==o||"tongji"==o||"render"==o||"snsKey"==o||"review"==o||"bdComment"==o||"bdDesc"==o||"bdTop"==o||"searchPic"==o||"bdUrl"==o||"bdMiniWindow"==o)&&(T[o]="render"==o||"snsKey"==o||"bdPopTitle"==o||"bdText"==o||"weiboText"==o?bds_config[o]:encodeURIComponent(bds_config[o]));this.conf=T,this.imgW=T.bdImgW,this.conf.render&&((this.b.length>0||this.t.length>0)&&this._share(),"slide"==this.conf.bdType&&this._slide()),this._getSc(this.type);for(var i=this.t,s=0;ss;s++)!function(e){var t=e;w.on(n.t[e],"mouseover",function(e){var e=e||window.event,o=e.target||e.srcElement,i=w.getPosition(o),s=w.getMousePos(e),r=s.x-i.l,a=s.y-i.t;o.buttontype=0,o.x=r,o.y=a;var d=e.relatedTarget||e.fromElement;w.contains(n.t[t],d)||(n.t[t].time=+new Date)})}(s);_(),null==w.getCookie("bdshare_firstime")&&w.setCookie("bdshare_firstime",1*new Date,{path:"/",expires:(new Date).setFullYear(2022)-new Date})},_getSc:function(e){this.type=e;for(var t=i.querySelectorAll?i.querySelectorAll(".shareCount"):i.getElementsByTagName("*"),n=t.length;n--;)/\sshareCount|shareCount\s|shareCount$/.test(t[n].className)&&this.s.push(t[n]);this.s.length>0&&w.callByBrowser(this.conf.bdApi+"getnum?url="+d+"&callback=bdShareTb.fn._getShare&type="+e+"&t="+(new Date).getTime())},_getShare:function(e){var t=e?!0:!1,n=[];if(i.querySelectorAll)this.b=i.querySelectorAll(".bdshare_b"),this.t=i.querySelectorAll(".bdshare_t");else for(var o=i.getElementsByTagName("*"),s=o.length;s--;){var r=o[s];/\sbdshare_t|bdshare_t\s/.test(r.className)&&this.t.push(r),/\sbdshare_b|bdshare_b\s|bdshare_b$/.test(r.className)&&this.b.push(r)}if(t){for(var a,n=this.s,d=n.length;d--;)/\sshareCount|shareCount\s|shareCount$/.test(n[d].className)&&(a="share"==this.type?e.num[0]<1e4?parseInt(n[d].innerHTML)+1:e.num[1]:1*e.errno==0?e.num[1]:0,n[d].innerHTML=decodeURI(a),n[d].setAttribute("title","累计分享"+e.num[0]+"次"),n[d].onclick=function(){S.create()});this.s=[]}},_share:function(){w.list_s(!0);var e=this.b,t=this.t,n=e.length,o=t.length,s=i.getElementById(this.conf.bdIdsl),r=i.getElementById("bdsTbIfr"),a=this.conf.bdList,d=a.length;if(w.setAttr(s,"display:none;"),I.bind(s,"mouseover","a"),n>0)for(;n--;)"bdshare_tb"==e[n].id&&(I.bind(e[n],"click","img",function(){S.create()}),I.bind(e[n],"mouseover","a",function(){S.create()}),this._s(e[n],s,r,e[n],"b"));if(o>0)for(;o--;)if("bdshare_tb"==t[o].id){I.bind(t[o],"click","span",function(){S.create()}),I.bind(t[o],"mouseover","a");for(var l=w.children(t[o]),c=l.length,h="";c--;){var f=l[c];if(/bds_more/.test(f.className))h=l[c],m&&(h.style.height=(/bds_tools_32/.test(t[o].className)?38:17)+"px"),this._s(""==h?t[o]:h,s,r,t[o],h);else for(var u=0;d>u;u++)if(a[u]){var b=a[u].split(","),p=new RegExp(this.conf.bdPref+b[0]+"$","ig");if(a[u]){var b=a[u].split(","),p=new RegExp(this.conf.bdPref+b[0]+"$","ig");p.test(f.className)&&("拷贝"==b[1]?f.title="复制网址":f.title||(f.title="分享到"+b[1]))}}}}},_s:function(e,t,n,o,i){var s,r=this,a=[],d=""==i?"none":"block";this._popShow(e,{over:function(i){a=w.getPosition(e),f=o.getAttribute("data")&&""!=o.getAttribute("data")?w._parseJson(o.getAttribute("data")):"",w.setAttr(t,"display:"+d),w.setAttr(t,"left:"+(w.getSize().w-i.clientX '+w.list_s(!1)});var s=w.children(_bdS),r=s[s.length-1];w.on(r,"mouseover",function(e){var e=e||window.event,t=e.target||e.srcElement,n=w.getPosition(t),o=e.relatedTarget||e.fromElement,i=w.getMousePos(e),s=i.x-n.l,a=i.y-n.t;t.buttontype=1,t.x=s,t.y=a,w.contains(r,o)||(r.time=+new Date)})}var a=this,d=_bdS,l=w.getSize(),c=i.getElementById(this.conf.bdIdsl),h=i.getElementById("bdsTbIfr"),f=b||m?"absolute":"fixed",u=(b?l.t:0)+(0==this.conf.bdTop?l.ht&&(t++,s.width=Math.ceil(o*t/d+n)+"px",r.width=Math.ceil(o*t/d+n)-a.imgW+"px")},10)},_popShow:function(e,t){function n(e){t.over(e)}function s(e){t.out(e)}i.all?(e.onmouseenter=function(){n(o.event)},e.onmouseleave=s):(e.onmouseover=function(e){null==e.relatedTarget?n(e):!(this===e.relatedTarget||20==this.compareDocumentPosition(e.relatedTarget))&&n(e)},e.onmouseout=function(e){null==e.relatedTarget?s(e):!(this===e.relatedTarget||20==this.compareDocumentPosition(e.relatedTarget))&&s(e)})}}}(),x(),bdShareTb.fn.init()}}();
;_.Module.define({path:"common/widget/bd_share"});_.Module.define({path:"album/component/initApiConfig",sub:{appid:"314406",xiangceUrl:"http://favo.xiangce.baidu.com/",uploadUrl:"http://up.xiangce.baidu.com/",tags:null,descript:null,cache:{},imgUrl:null,sourceURL:null,offset:{x:-72,y:6},likeButton:null,timer:null,currentQueryImgUrl:null,currentUpImgUrl:null,currentIndex:0,hasLogin:!1,hasNoUn:!1,area:[],descript:"",no_pic_pb:!1,sourceURL:"",tags:"",initial:function(t){var e=this;e.hasLogin=t.isLogin,e.hasNoUn=t.hasNoUn,e.area=t.conf.area,e.descript=t.conf.descript,e.no_pic_pb=t.conf.no_pic_pb,e.sourceURL=t.conf.sourceURL,e.tags=t.conf.tags},isImgMarked:function(t){return t in this.cache&&1==this.cache[t]},checkImgSize:function(t,e){return e.width>=$(t).width()||e.height>=$(t).height()?!1:!0},loginEvent:function(){TbCom.process("User","buildLoginFrame",null,null,null,"fav_img")},showLikeButton:function(){this.likeButton&&this.likeButton.show()},hideLikeButton:function(){this.likeButton&&this.likeButton.hide()},setLikeButtonPosition:function(t,e){{var i,n,o=this,r=$(t),s=r.offset(),u=s.left,a=s.top,c=r.outerHeight(),l=r.outerWidth(),d=o.likeButton;o.area[e]}d.find(".download").show();var h=d.outerHeight(),g=d.outerWidth();return(h+20>c||g+20>l)&&(d.find(".download").hide(),h=d.outerHeight(),g=d.outerWidth(),h+20>c||g+20>l)?!1:(i=a-parseInt(d.css("padding-top")),n=u+l-g+d.width(),d.css({top:i,left:n}),!0)},setImgConf:function(t){var e=this;if("IMG"!=t.tagName){var i=($(t).find("img")[0],$.parseJSON($(t).tbattr("favData")));if(!i.src)return!1;e.imgUrl=i.src,e.sourceURL=i.sourceURL,e.tags=i.tags,e.descript=i.descript}else e.imgUrl=t.src||"";var n=e.imgUrl.lastIndexOf(".webp");return-1!=n&&(e.imgUrl=e.imgUrl.slice(0,n)+".jpg"),!0},resetAndshowLikeButton:function(t,e){var i=this;return i.currentIndex=e,i.setImgConf(t)&&i.setLikeButtonPosition(t,e)?void(i.imgUrl in i.cache?(i.likeButton[i.isImgMarked(i.imgUrl)?"addClass":"removeClass"]("done"),i.showLikeButton()):i.queryAndshowLikeButton()):!1},queryAndshowLikeButton:function(){var t=this,e=t.cache,i=t.imgUrl,n=t.likeButton;return t.hasLogin?t.currentQueryImgUrl==i?!1:(t.timer&&clearTimeout(t.timer),void(t.timer=setTimeout(function(){var o=t.xiangceUrl+"opencom/picture/fav/query?app_id="+t.appid+"&url="+encodeURIComponent(i)+"&callback=?";$.stats.sendRequest("st_mod=fav_img&fr=tb0_forum&st_type=fav_btn_request&from=pic_forums"),t.currentQueryImgUrl=i,$.getJSON(o,function(o){0==o.errno&&o.data&&0!=o.data.status?(e[i]=1,n.addClass("done")):(e[i]=0,n.removeClass("done")),t.showLikeButton()})},200))):void this.showLikeButton()},setAreaConf:function(t,e,i){var n=this,o=n.area,r=null;for(var s in o)o[s].tag===t&&(r=o[s]);r[e]=i}}});_.Module.define({path:"album/widget/imgLikeAction",requires:["album/component/initApiConfig"],sub:{_defaultConfig:{sourceURL:"http://tieba.baidu.com/p/"+PageData.thread.thread_id,tags:"百度贴吧,"+PageData.forum.forum_name+"吧",descript:$.tb.subByte(PageData.thread.title,40,""),no_pic_pb:PageData.isPicBa?!1:!0,area:[{container:"#j_p_postlist",tag:".BDE_Image",offset:{x:-4,y:5},minSize:{width:170,height:80}},{container:"#j_p_postlist",tag:".j_user_sign",offset:{x:-4,y:5},minSize:{width:170,height:80}}]},initial:function(){var t=this;t.isLogin=PageData.user.is_login,t.hasNoUn=PageData.user.no_un,t.conf=t._defaultConfig,t.isEnabled=!0,t.initApiConf(),t.createLikeButton(),t.initEvent()},initApiConf:function(){var t=this;t.favConfig=t.use("album/component/initApiConfig",{isLogin:t.isLogin,hasNoUn:t.hasNoUn,conf:t.conf})},initEvent:function(){var t=this;t.bindImgEvent(),t.bindPostEvent(),t.addShareButton(),t.mobileDownloadClick(),t.initCustomEmotion()},initCustomEmotion:function(){var t=this,e=$.cookie("tb_lab"),a={};e&&(a=$.json.decode(e)),a.custom_emotion&&(t.favConfig.likeButton.find(".emotion").show(),t.favConfig.likeButton.on("click",".emotion",function(){_.Module.use("common/component/CustomEmotion",{},function(e){e.openDialog({forumId:PageData.forum.forum_id,url:t.favConfig.imgUrl})})}))},bindImgEvent:function(){var t=this;$.each(t.favConfig.area,function(e,a){var i=a.container||document.body,o=a.tag;$(i).on("mouseover",o,{index:e},function(e){t.containerMouseover(e)}),$(i).on("mouseleave",o,function(e){t.containerMouseout(e)})})},bindPostEvent:function(){var t=this,e=t.favConfig,a=e.likeButton;a.delegate(".mark","click",function(){if(!e.hasLogin)return void e.loginEvent();if(e.currentUpImgUrl==e.imgUrl)return!1;var i=e.uploadUrl+"opencom/picture/fav/upload?app_id="+e.appid+"&descript="+encodeURIComponent(e.descript)+"&uid="+PageData.user.user_id+"&source_url="+encodeURIComponent(e.sourceURL)+"&tags="+encodeURIComponent(e.tags)+"&url="+encodeURIComponent(e.imgUrl)+"&callback=?",o={top:parseInt(a.css("top"),10)-e.area[e.currentIndex].offset.y,left:a.offset().left+40};setTimeout(function(){a.addClass("done")},200),$.stats.sendRequest("st_mod=fav_img&fr=tb0_forum&st_type=fav_btn_click"),e.currentUpImgUrl=e.imgUrl,$.getJSON(i,function(a){switch(a.errno){case 0:t.markSuccess(o);break;case 20026:return void e.loginEvent();case 20028:return void t.markFail(o,".n20028");default:return void t.markFail(o,".ndefault")}})}).mouseover(function(){if("undefined"==typeof bdRes2Exe){var t=document.getElementsByTagName("body").item(0),a=document.createElement("script");a.type="text/javascript",a.id="bdres2exejs",a["data-proxy"]="http://tieba.baidu.com/tb/static-album/proxy.html",a.src="http://m.baidu.com/static/as/res2exe/js/res2exe_1.0.4.min.js",a.setAttribute("data-proxy","http://tieba.baidu.com/tb/static-album/proxy.html"),t.appendChild(a)}e.showLikeButton()}).mouseout(function(){e.hideLikeButton()}),$("body").delegate(".sr-bdimgshare-layer","mouseover",function(){e.showLikeButton()}).delegate(".sr-bdimgshare-layer","mouseout",function(){e.hideLikeButton()})},markSuccess:function(t){var e=this;e.favConfig.cache[e.favConfig.imgUrl]=1,"1"!=$.cookie("ablum_hls")&&e.favConfig.likeButton.parent().find(".fav-success").fadeIn("fast",function(){var t=$(this);$.cookie("ablum_hls","1",{expires:30}),setTimeout(function(){t.fadeOut()},3e3)}).css(t)},markFail:function(t,e){var a=this;$fav_fail=a.favConfig.likeButton.parent().find(".fav-fail"),$fav_fail.find(".text").hide(),$fav_fail.find(e).show(),$fav_fail.fadeIn("fast",function(){var t=$(this);setTimeout(function(){t.fadeOut()},2e3)}).css(t)},closeBSharePanel:function(){bdShare&&bdShare.ImgShare&&bdShare.ImgShare.closeHoverPop()},addShareButton:function(){if(PageData&&("v3"==PageData.page||"pb_bright"==PageData.page)){var t=this,e=t.favConfig;window.bdShare_config_imgshare={type:"collection",pos:"top",hidden:"share collect",content:encodeURIComponent(document.title)},$.JsLoadManager.use("http://tb1.bdstatic.com/tb/static-common/js/pic_share/imgshare_shell.js",function(){e.likeButton.find(".share").show().mouseover(function(t){e.timer&&clearTimeout(e.timer),e.timer=setTimeout(function(){$.stats.sendRequest("st_mod=album&fr=tb0_forum&st_type=share_show");var a=$(t.target).offset();a.top+=24,bdShare.ImgShare.showHoverPop(e.imgUrl,a)},200)}).click(function(){$.stats.sendRequest("st_mod=album&fr=tb0_forum&st_type=share_click"),t.closeBSharePanel(),bdShare.ImgShare.showAllPop(e.imgUrl)}).mouseout(function(a){e.timer&&clearTimeout(e.timer);var i=t.getMouseHoverDirection.call(this,a);"bottom"!=i&&t.closeBSharePanel()})})}},containerMouseover:function(t){var e=this;if(e.isEnabled){e.closeBSharePanel();var a=t.currentTarget,i=t.data.index;e.favConfig.resetAndshowLikeButton(a,i)}},containerMouseout:function(){var t=this;t.favConfig.timer&&clearTimeout(t.favConfig.timer),t.favConfig.hideLikeButton()},mobileDownloadClick:function(){var t=this;$(".fav-toolbar .download").click(function(){$(this).tbattr({data_name:(new Date).getTime(),data_url:t.favConfig.imgUrl,data_size:1024,data_icon:t.favConfig.imgUrl});var e=[];$(".mobile_res").each(function(t,a){var i=bdRes2Exe.getPackageByDom(a);i&&e.push(i)}),bd_app_dl(e),$.stats.sendRequest("fr=tb0_forum&st_mod=picMobile&st_type=imgLikeAction")})},createLikeButton:function(){var t=this,e=['','
",'
','
','
使用云相册收藏工具,批量收藏精美图片!立即安装 ',"
",'
',' ','系统繁忙,请稍后再试! ','抱歉,您没有权限进行该项操作 ',"
",'
',"
"].join("");t.favConfig.likeButton=$(e).appendTo(document.body).find(".fav-toolbar")},getMouseHoverDirection:function(t){var e=t.target,a=e.offsetWidth,i=e.offsetHeight,o=$(e).offset(),n=(t.pageX-o.left-a/2)*(a>i?i/a:1),s=(t.pageY-o.top-i/2)*(i>a?a/i:1),r=Math.round((Math.atan2(s,n)*(180/Math.PI)+180)/90+3)%4,c=new Array("up","right","bottom","left");return c[r]||"bottom"},enableSelf:function(t){var e=this;e.isEnabled=t,t||e.favConfig.hideLikeButton()}}});_.Module.define({path:"pb/widget/pic_act_vote",requires:["common/component/force_login"],sub:{initial:function(t){try{this.option=t,this.voteData={tbs:PageData.tbs,word:PageData.forum.forum_name,forum_id:PageData.forum.forum_id},this.bindEvent()}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/pic_act_vote/pic_act_vote.js",method:"",ln:20}),a}},bindEvent:function(){var t=this;$("body").delegate(".j_pic_act_vote_btn","click",function(a){try{var e=$(this),o=e.closest(".j_pic_act_vote_area"),i=o.find(".j_pic_act_vote_num"),n=Number(i.text());if(a.preventDefault(),t.repostData=o.getData(),!PageData.user.is_login){var c=$.tb.unescapeHTML($.tb.location.getHref());return _.Module.use("common/component/force_login",[c,"userbar","dialog","pic_act_vote"]),!1}if(PageData.user.is_like)t._postVoteData().done(function(a){"0"==a.no?(e.text("已投票"),e.addClass("act_voted_btn"),i.animate({"margin-top":"-10px"},300).animate({"margin-top":"0"},300).text(n+1)):"40"==a.no?t._showCaptchaDialog(a,e,i,n):"2130008"==a.no?t._showCanvaDialog():t._showErrorTip(a.no)});else{var s=new $.dialog({html:'参与投票需要先关注本吧哦~
关注本吧 ',width:420,holderClassName:"dialog_tip_holder"});s.element.on("click",".j_like",function(a){try{a.preventDefault(),_.Module.use("ucenter/widget/Balv",[{}],function(t){t.dolike()}),$.stats.track("vote","plat_like","pb","click",{obj_id:t.repostData.activity_id}),s.close()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pic_act_vote/pic_act_vote.js",method:"",ln:54}),e}})}}catch(r){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:r.message||r.description,path:"pb:widget/pic_act_vote/pic_act_vote.js",method:"",ln:71}),r}})},_postVoteData:function(){var t=this;t.voteData.activity_id=t.repostData.activity_id,t.voteData.post_id=t.repostData.post_id,t.voteData.user_id_ed=t.repostData.user_id,t.voteData.user_name_ed=t.repostData.user_name,t.voteData.thread_id=t.repostData.thread_id;var a=$.post("/actstage/photoVote?",t.voteData,function(){},"json");return a},_showCaptchaDialog:function(t,a,e,o){var i=this;_.Module.use("common/component/CaptchaDialog",{title:"投票",message:"请输入验证码完成投票~支持你喜欢的美图!",vCode:t.data.vcode.captcha_vcode_str,vCodeType:t.data.vcode.captcha_code_type,paramsCallback:function(){return i.voteData}},function(t){t.bind("onclose",function(){return t.hide(),!1}),t.bind("onaccept",function(){i.voteData.vcode=t.getInputValue(),i.voteData.vcode_md5=t.getVCode(),i._postVoteData().done(function(t){"0"==t.no?(a.text("已投票"),a.addClass("act_voted_btn"),e.animate({"margin-top":"-10px"},300).animate({"margin-top":"0"},300).text(o+1)):"40"==t.no?i._showCaptchaDialog(t):"2130008"==t.no?i._showCanvaDialog():i._showErrorTip(t.no)})}),t.show()})},_showCanvaDialog:function(){var t=this,a=['','
你今天已经投过票了 ','
如果想支持TA,可以转贴到其他吧帮忙拉票哦!
','
","
"].join(""),e=new $.dialog({html:a,width:380,draggable:!0,closeable:!0,holderClassName:"pat-noTitle"});e.element.on("click","#canva_repost_btn",function(t){try{t.preventDefault(),e.hide()}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/pic_act_vote/pic_act_vote.js",method:"",ln:147}),a}}).on("click","#canva_cancel_btn",function(t){try{t.preventDefault(),e.close()}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/pic_act_vote/pic_act_vote.js",method:"",ln:150}),a}})},_showErrorTip:function(t){var a="";switch(Number(t)){case 8:case 9:case 220012:a="你在本吧被封禁,暂时不能进行操作";break;case 220:a="你被吧主加入黑名单,暂时不能进行操作";break;case 3110003:a="同时有太多人在投票,请稍后再来~";break;default:a="服务器出错啦~请再试一次吧"}var e=new Array;e.push(''+a+"
");new $.dialog({html:e.join(""),showTitle:!0,draggable:!1,width:300,height:40})}}});_.Module.define({path:"pb/widget/pic_act_repost",requires:["common/component/force_login","common/widget/PostService"],sub:{ORIGINAL_PIC_URL_PREFIX:"http://imgsrc.baidu.com/forum/pic/item/",THUMBNAIL_PIC_URL_PREFIX:"http://imgsrc.baidu.com/forum/abpic/item/",MAX_REPOST_SHOW_FORUMS:20,initial:function(){try{this.postService=this.use("common/widget/PostService"),this.bindEvent()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:19}),e}},bindEvent:function(){var e=this;$("body").delegate(".j_pic_act_repost","click",function(t){try{var i=$(this);return e.repostData=i.getData(),t.preventDefault(),e.repostCheck(),!1}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:31}),o}})},repostCheck:function(){var e=this;if(!PageData.user.is_login){var t=$.tb.unescapeHTML($.tb.location.getHref());return e.use("common/component/force_login",t,"userbar","dialog","pic_act_repost"),!1}var i;PageData.user_forumlist&&PageData.user_forumlist.info&&(e.userFormList=PageData.user_forumlist.info),PageData.user.user_forum_list&&PageData.user.user_forum_list.info&&(e.userFormList=PageData.user.user_forum_list.info),void 0!==e.userFormList?(e.MAX_REPOST_SHOW_FORUMS=e.userFormList.length>20?20:e.userFormList.length,0===e.userFormList.length?(i="亲,目前只能转发到你关注的吧哦,请先去“关注”你要转发到的吧。",e.showWarningTip(i)):1==e.userFormList.length&&e.userFormList[0].forum_name==PageData.forum.forum_name?(i="亲,只能转发到本吧之外你关注过的吧哦,请先去“关注”你要转发到的吧。",e.showWarningTip(i)):e.showRepostDialog()):(i="亲,目前只能转发到你关注的吧哦,请先去“关注”你要转发到的吧。",e.showWarningTip(i))},showRepostDialog:function(){var e=this;e.dialog?(e.dialog.show(),e.dialog.setContent(e.renderDialogHTML())):e.dialog=new $.dialog({html:e.renderDialogHTML(),title:"转发",width:460,draggable:!0,closeable:!0,hideOnclose:!0}),e.getElement(),$.browser.msie&&_.Module.use("common/component/Placeholder",[e.$pic_repost_desc,"小伙伴们快点儿来给"+e.curRole+"投票吧"]),e.bindDialogEvent()},renderDialogHTML:function(){var e=this,t=[],i={},o={},a=PageData.forum.forum_name,r=PageData.user.user_name==e.repostData.user_name?"我":"TA",s=r+"正在"+a+"吧参加【"+e.repostData.thread_title+"】活动哦,来帮"+r+"投票吧~",p="小伙伴们快点儿来给"+r+"投票吧",c="",_="";e.curRole=r;for(var n=0;n'+i.forum_name+"吧 ");return c=t.join(""),_=['','
','转贴: ',' ',"
",'
','转发到: ',' ',"
",'
'+c+"
",'
",'
",'
转发成功!
',"
"].join("")},getElement:function(){var e=this,t=e.$dlgRoot=$("#pic_repost_dialog");e.$pic_repost_title=t.find("#pic_repost_title"),e.$pic_repost_fname=t.find("#pic_repost_fname"),e.$pic_repost_desc=t.find("#pic_repost_desc"),e.$j_pic_fname_wrap=t.find(".j_pic_fname_wrap"),e.$j_pic_like_forums=t.find(".j_pic_like_forums"),e.$pic_act_repost_btn=t.find("#pic_act_repost_btn"),e.$pic_act_recancel_btn=t.find("#pic_act_recancel_btn"),e.$pic_repost_tip=t.find("#pic_repost_tip")},bindDialogEvent:function(){var e=this,t={},i=e.THUMBNAIL_PIC_URL_PREFIX+e.repostData.pic_encode+".jpg";e.dialog.element.find(".pic_repost_img_wraper").css({"background-image":"url("+i+")"}),$.JsLoadManager.use("http://tb1.bdstatic.com/tb/static-common/js/jquery-ui-autocomplete.min.js",function(){e.$pic_repost_fname.autocomplete({source:e.getLikedForumName(),minLength:0}),e.$pic_repost_fname.bind("click",function(){try{$(this).autocomplete("search","")}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:175}),e}})}),e.$pic_act_repost_btn.bind("click",function(t){try{{$(this)}if(t.preventDefault(),""==e.$pic_repost_title.val())return e.showErrorTip("标题不能为空"),!1;if(""==e.$pic_repost_fname.val())return e.showErrorTip("请选择要转发的吧"),!1;if($.browser.msie&&e.$pic_repost_desc.val().length>99)return e.showErrorTip("转贴理由最多只能输入99个汉字哦~"),!1;e.sendRepost()}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:199}),i}}),e.$pic_act_recancel_btn.bind("click",function(t){try{t.preventDefault(),"pb"==PageData.product&&"poster"==e.repostData.canva_from?setTimeout(function(){var t=$.tb.location.getHash(),i=$.tb.location.getPathname();i=="/p/"+e.repostData.thread_id?"#pic_sort_new"!=t?($.tb.location.setHref("/p/"+e.repostData.thread_id+"#pic_sort_new"),$.tb.location.reload()):$.tb.location.reload():$.tb.location.setHref("/p/"+e.repostData.thread_id+"#pic_sort_new"),e.dialog.hide()},1e3):e.dialog.hide()}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:224}),i}}),e.$j_pic_like_forums.delegate(".j_pic_like_forum_link","click",function(i){try{var o=$(this);return i.preventDefault(),t=o.getData(),e.$pic_repost_fname.val(t.forum_name.replace(/\s/g," ")).trigger("change"),e.$j_pic_fname_wrap.find("a").remove(),e.$j_pic_fname_wrap.append(o.clone()),e.$pic_repost_fname.css("color","#fff").tbprop("readonly","readonly").autocomplete({disabled:!0}),o.siblings().removeClass("seleted_forum_link"),o.addClass("seleted_forum_link"),!1}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:240}),a}}),e.$j_pic_fname_wrap.delegate(".j_pic_like_forum_link","click",function(t){try{var i=$(this),o=$.tb.unescapeHTML(i.tbattr("title"));return t.preventDefault(),e.$pic_repost_fname.val("").trigger("change"),e.$j_pic_like_forums.find('a[title="'+o+'"]').removeClass("seleted_forum_link"),e.$pic_repost_fname.css("color","#000").tbprop("readonly",!1).autocomplete({disabled:!1}),i.remove(),!1}catch(a){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:a.message||a.description,path:"pb:widget/pic_act_repost/pic_act_repost.js",method:"",ln:252}),a}})},sendRepost:function(){var e=this,t=e.$pic_repost_fname.val(),i=PosterContext.getContext(),o=""==e.$pic_repost_desc.val()?e.$pic_repost_desc.tbattr("placeholder"):e.$pic_repost_desc.val(),a={65535:"你今天的转贴已达上限",65534:"这个吧你已经转过啦",65533:"今天转贴的人太多了,明天再来吧",65532:"同时转贴的人太多了,请稍等一会儿哈",3011:"只能转到你关注过的吧",308:"用户权限不足"};for(var r in a)!function(t){e.postService.resultHandlerManager.registerHandler(t,function(){e.showErrorTip(a[t])})}(r);e.postService.success(function(t,i){e.$pic_repost_tip.text("转发成功!").removeClass("ele_hidden"),e.$pic_repost_tip.prepend(' '),e.$pic_repost_tip.append('查看转贴 '),"pb"==PageData.product&&void 0!==e.repostData.canva_from&&"poster"==e.repostData.canva_from?setTimeout(function(){var t=$.tb.location.getHash();"#pic_sort_new"!=t?$.tb.location.setHref("/p/"+e.repostData.thread_id+"#pic_sort_new"):$.tb.location.reload()},1e3):setTimeout(function(){$.tb.location.reload()},1e3)}),e.postService.post("repost",{ptid:e.repostData.thread_id,ftid:e.forumIdMap[t],title:e.$pic_repost_title.val(),content:e.repostData.pic_encode+"#"+o,ie:"utf-8",tbs:PageData.tbs,new_vcode:1,tag:11,ppid:e.repostData.post_id,activity_id:e.repostData.activity_id,act_type:"photo"},i)},getLikedForumName:function(){for(var e=this,t=e.userFormList.length,i=[],o={},a={},r="",s=0;t>s;s++)a=e.userFormList[s],r=$.tb.unescapeHTML(a.forum_name.replace(/\s/g," ")),a.forum_name!=PageData.forum.forum_name&&i.push(r),o[r]=a.id;return e.forumIdMap=o,i},showWarningTip:function(e){var t=new Array;t.push(''+e+"
");new $.dialog({html:t.join(""),title:"温馨提示",showTitle:!0,draggable:!1,width:300,holderClassName:"pat-noTitle"})},showErrorTip:function(e){var t=this;t.$dlgRoot.addClass("msg_dialog_holder"),t.$pic_repost_tip.text(e).removeClass("ele_hidden"),setTimeout(function(){t.$pic_repost_tip.addClass("ele_hidden"),t.$dlgRoot.removeClass("msg_dialog_holder")},1500)}}});_.Module.define({path:"common/component/Card",requires:[],sub:{_option:{},_j_card:null,_open_timer:null,_close_timer:null,_is_show:!1,_is_first_show:!0,_default_option:{content:"",arrow_dir:"down",arrow_pos:{},card_css:{width:170,"z-index":1001},arrow_req:!0,auto_positon:!1,event_target:null,offset:{x:0,y:0},card_leave_display:!1,card_hover_show:!0,card_leave_hide:!1,attr:"",wrap:$("body")},initial:function(t){var i=this;i._option=$.extend(!0,{},i._default_option,t),this._buildCard()},_buildCard:function(){var t=this._option,i=this._genericTpl(),e=t.wrap;this._j_card=$(i),this._j_card.find(".j_content").html(t.content),e.append(this._j_card),delete t.card_css.height,this._j_card.css(t.card_css),t.card_css.height=this._j_card.find(".j_content").outerHeight(!0),this._arrow=this._j_card.find(".j_ui_white_arrow"),void 0===t.arrow_pos.left&&(this._arrow_left=t.card_css.width/2-10,this._arrow.css({left:this._arrow_left})),this._arrow.css(t.arrow_pos),t.arrow_req||this._j_card.find(".j_ui_white_arrow").hide(),t.auto_positon&&this._autoPosition()},_autoPosition:function(){var t=this._option,i={},e=$(window).height(),_=$(window).width(),o=($(document).scrollLeft(),$(document).scrollTop()),r=(t.event_target.innerWidth(),t.event_target.innerHeight()),s="",a={x:t.event_target.offset().left-t.card_css.width/2+t.event_target.outerWidth(!0)/2,y:t.event_target.offset().top-t.card_css.height-10,width:this._j_card.innerWidth(),height:this._j_card.innerHeight()+this._arrow.innerHeight()};i.left=a.x,i.top=a.y;var n=t.arrow_pos.left||this._arrow_left,d=15,h=_;_<$(document).width()&&(h=$(document).width());var c=h-(t.card_css.width+d);i.leftc&&(n+=i.left-c,i.left=c),i.topo+e?-r-(a.height||0):0,s="down",i.top+=t.offset.y),this._arrow.removeClass("ui_white_down").removeClass("ui_white_up").addClass("ui_white_"+s).css({left:n}),this._j_card.css(i)},_genericTpl:function(){var t=this._option.attr,i=this._option.arrow_dir,e=['"].join("");return e},showCard:function(t){var i=this;i._close_timer&&clearTimeout(i._close_timer),t&&"delayShow"==t.type?(i._open_timer&&clearTimeout(i._open_timer),i._open_timer=setTimeout(function(){i._showCardDo()},t.time)):i._showCardDo()},closeCard:function(t){var i=this;i._open_timer&&clearTimeout(i._open_timer),t&&"delayClose"==t.type?i._close_timer=setTimeout(function(){i._closeCardDo()},t.time):i._closeCardDo()},hideCard:function(t){var i=this;i._open_timer&&clearTimeout(i._open_timer),t&&"delayHide"==t.type?i._close_timer=setTimeout(function(){i._hideCardDo()},t.time):i._hideCardDo()},_showCardDo:function(){var t=this;t._is_first_show&&(this._j_card.bind("mouseenter",function(){t._option.card_hover_show&&(t._is_show=!0)}),this._j_card.bind("mouseleave",function(){return t._option.card_leave_display?!1:(t._is_show=!1,void(t._option.card_leave_hide?t.hideCard():t.closeCard()))}),t._is_first_show=!1),this._j_card.css({visibility:"visible"})},_closeCardDo:function(){var t=this;this._j_card&&!this._is_show&&t._j_card.remove()},_hideCardDo:function(){var t=this;this._j_card&&!this._is_show&&t._j_card.css({visibility:"hidden"})},setContent:function(t){var i=this._option;if(null!==this._j_card){var e=this._j_card.find(".j_content");e.html(t),i.card_css.height=e.outerHeight(!0),this._j_card.css({height:i.card_css.height}),i.auto_positon&&this._autoPosition()}}}});_.Module.define({path:"pb/widget/postList/FeedBack",sub:{initial:function(){try{this.autoResponseHelp(),this.autoResponseForNotLouzhu(),this.autoResponseClickEvt()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/feedback.js",method:"",ln:13}),e}},autoResponseForNotLouzhu:function(){0!=$(".not-louzhu-response").length&&$(".not-louzhu-response").each(function(e,l){var t=$(l).data("replyHelp"),p="",a={content:"",arrow_dir:"up",bubble_css:{top:0,left:0,right:10,width:280},arrow_pos:{left:30},attr:" id='tb_message_tip_n' ",wrap:$(l),closeBtn:!1,level:1,arrowReq:!0};1==t?p='楼主暂未对此答复进行评价哦~
':2==t?p='楼主对此答复评价为“有帮助”哦~
':t>2&&(p='楼主对此答复评价为“无帮助”哦~小助手会继续努力哒~
',a.bubble_css.width=345),a.content=p;var i=new UiBubbleTipBase(a);i.showBubble()})},autoResponseHelp:function(){if(0!=$("#plReplyHelpBubble").length){var e={content:"",arrow_dir:"up",bubble_css:{top:0,left:0,right:10,width:280},arrow_pos:{left:30},attr:" id='tb_message_tip_n' ",wrap:$("#plReplyHelpBubble"),closeBtn:!1,level:1,arrowReq:!0},l=$("#plReplyHelpBubble").data("replyHelp");1==l?e.content='亲,以上内容是否解决了您的问题呢?
是 否
':l>1&&(e.content='感谢您的反馈,小助手会继续努力哒~
');var t=new UiBubbleTipBase(e);t.showBubble(),this.autoResponseClickEvt()}},autoResponseClickEvt:function(){var e=this;$("#plReplyHelpBubble").on("click",".reply-help-tips input",function(){try{var l=$(this).val(),t={};2==l?($("#plReplyHelpBubble .p-not-helpable").hide(),t={thread_id:$("#plReplyHelpBubble").data("threadId"),reply_pid:$("#plReplyHelpBubble").data("postId"),reply_help:l},e.autoResponsePost(t)):$("#plReplyHelpBubble .p-not-helpable").show()}catch(p){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:p.message||p.description,path:"pb:widget/post_list/feedback.js",method:"",ln:105}),p}}).on("click",".p-not-helpable li input",function(){try{var l={thread_id:$("#plReplyHelpBubble").data("threadId"),reply_pid:$("#plReplyHelpBubble").data("postId"),reply_help:$(this).val()};e.autoResponsePost(l)}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/feedback.js",method:"",ln:112}),t}})},autoResponsePost:function(e){var l=this;$.post("/hermes/commit/help",e,function(e){e.errno||($("#plReplyHelpBubble").html("").data("replyHelp",2),l.autoResponseHelp())},"json")}}});
;_.Module.define({path:"pb/widget/postList/PostPic",sub:{initial:function(){try{"album_pb"!=PageData.pageType&&this._bindOpenImg()}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/post_pic.js",method:"",ln:14}),t}},_isAlbumImg:function(t){var e=/^http:\/\/[^\/\?]*?\.baidu\.com[:8090]*\/(\w+)\/([^\/\?]+)\/([^\/\?]+)\/(\w+?)\.(?:webp|jpg)/;return e.test(t)},_bindOpenImg:function(){for(var t,e,a,s,i=this,p=$("#j_p_postlist").find(".BDE_Image"),n=$.browser.msie&&$.browser.version<=7,o=0,c=p.length;c>o;o++){var r=p[o];if(r&&(t=$(r),a=t.height(),s=t.width(),i._isAlbumImg(r.src)&&a>=80&&s>=80&&a*s>=1e4&&(t.click(function(t){try{var a=t.target||t.srcElement,s=1,i=$(a).tbattr("src"),p=$(a).closest(".l_post");if(p){postData=p.getData(),postData.author.user_name!=PageData.thread.author&&(s=0),e=i.substring(i.lastIndexOf("/")+1,i.lastIndexOf("."));var n=$(a).closest(".j_d_post_content").find("#j_pb_repost"),o="";if(0==n.length)o="http://tieba.baidu.com/photo/p?kw="+PageData.forum.name_url+"&flux=1&tid="+PageData.thread.thread_id+"&pic_id="+e+"&pn=1&fp=2&see_lz="+s;else{var c=n.getData();o="http://tieba.baidu.com/photo/p?kw="+c.fname+"&flux=1&tid="+c.tid+"&pic_id="+e+"&pn=1&fp=2&see_lz="+s}window.open(o,"_blank")}}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/post_pic.js",method:"",ln:61}),t}}),n?$(r).css("cursor","pointer").tbattr("title","点击进入连续看图模式"):$(r).css("cursor","url('http://tb2.bdstatic.com/tb/static-pb/img/cur_zin.cur'),pointer")),a>999)){var d=$(document.createElement("div")),l=$(document.createElement("div"));html=s>160?'点击展开,查看完整图片 ':' ',l.html(html),d.addClass("replace_div").css("width",s),l.addClass("replace_tip").css("width",s-2);var m=t.clone(!0);d.append(m),d.append(l),t.replaceWith(d)}}}}});
;_.Module.define({path:"pb/widget/postList/HidePost",sub:{initial:function(){try{1==PageData.forum.shield_post&&this._bindEvent()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/hide_post.js",method:"",ln:13}),e}},_bindEvent:function(){var e,t,s,i,o=$('
'),a=$(''),n=!1,d=!1,r={110000:"你还没有登录,请先登录。",210009:"系统出现错误。",210004:"系统出现错误。","000000":"操作成功。"},l=function(l){var p={},h=d?void 0:i.content.post_no;1==h?"hide-post"==l?(p.type=2,p.fname=PageData.forum.forum_name,p.tid=PageData.thread.thread_id):(p.type=1,p.hide_un=t):"hide-post"==l?(p.type=3,p.pid=d?i.spid:i.content.post_id,p.tid=PageData.thread.thread_id):(p.type=1,p.hide_un=t),p.ie="utf-8",$.ajax({url:"/tphide/add",data:p,type:"post",dataType:"json",success:function(i){if(0==i.no)if(n=!1,1==h)$.tb.location.setHref("/f?kw="+PageData.forum.forum_name);else if("hide-post"==l)if(s.close(),o.hide(),a.hide(),$("body").append(o).append(a),d===!1)e.parents("div.l_post").remove();else{var p=e.parent().find("li.lzl_single_post");if(p.length<2){e.parents("div.j_lzl_container").hide().find("li.lzl_li_pager").remove();var c=e.parents("div.j_lzl_wrapper");c.find("a.lzl_link_unfold").show().text("回复"),c.find("span.lzl_link_fold").hide()}e.remove()}else t==PageData.thread.author?$.tb.location.setHref("/f?kw="+PageData.forum.forum_name):$.tb.location.reload();else{s.close();var u=new $.dialog({html:''+(r[i.no]||"系统出现错误。")+"
",title:"提示",width:400,closeable:!0,draggable:!1,show:!0});setTimeout(function(){u.close(),n=!1},4500)}}})};$("#pb_content").delegate(".user-hide-post-action","click",function(e){try{var o,a=$(e.target).tbattr("class"),r=d?void 0:i.content.post_no;if("hide-post"==a)o=1==r?"隐藏1楼贴子,该主题的全部回复也将被隐藏 确认要隐藏这个贴子吗?":"操作之后,将无法恢复这条贴子的隐藏状态 确认要隐藏这条贴子吗?";else{if("hide-author"!=a)return;o=t==PageData.thread.author?'隐藏的用户为本贴的楼主,操作之后:该主题的全部回复也将被隐藏,且3天内 将无法看到该用户发布的所有贴子 确认要隐藏'+t+"的所有贴子吗?":'操作之后,3天内 将无法看到该用户发布的所有贴子 确认要隐藏'+t+"的所有贴子吗?"}o+='确认 取消
',s=new $.dialog({html:''+o+"
",title:"提示",width:400,closeable:!1,draggable:!1,show:!0}),$("div.user-hide-post-confirm").click(function(e){try{var t=$(e.target).tbattr("class");"cancel"==t?s.close():"confirm"==t&&n===!1&&(n=!0,l(a))}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/hide_post.js",method:"",ln:145}),e}})}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/hide_post.js",method:"",ln:146}),e}}).delegate(".user-hide-post-down","click",function(){try{var s,o=$(this);o.tbattr("class","user-hide-post-up"),a.css({top:parseInt(o.css("top"))+15,right:parseInt(o.css("right"))+2}).appendTo(e),d===!1?(i=e.parents("div.l_post").getData(),t=i.author.user_name):(i=e.getData(),t=i.user_name),s="对我隐藏该用户的所有贴子3天",a.show().find("a.hide-author").html(s)}catch(o){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:o.message||o.description,path:"pb:widget/post_list/hide_post.js",method:"",ln:165}),o}}).delegate(".user-hide-post-up","click",function(){try{var e=$(this);e.tbattr("class","user-hide-post-down"),a.hide()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/hide_post.js",method:"",ln:169}),e}}).delegate(".p_content","mouseenter",function(){var t=$(this).parents("div.l_post"),s=t.getData();return""==PageData.user.user_name||PageData.user.user_name==(s&&s.author&&s.author.user_name)?!1:(e=$(this),d=!1,window.postDown=$(this).find(".user-hide-post-down"),window.postDown.show(),void 0)}).delegate(".p_content","mouseleave",function(){var e=window.postDown;return"undefined"==typeof e?!1:(e.hasClass("user-hide-post-up")&&e.tbattr("class","user-hide-post-down"),e.hide(),$(this).find(".user-hide-post-action").hide(),void 0)}).find("li.lzl_single_post").live("mouseenter","li.lzl_single_post",function(){e=$(this);var t=e.getData();if(""==PageData.user.user_name||PageData.user.user_name==t.user_name)return!1;o.appendTo(e);var s={};PageData.is_posts_admin||PageData.is_thread_admin?(s=e.find(".j_lzl_o_l").position(),o.css({top:s.top,right:536-s.left}).show()):(s=e.find(".lzl_time").position(),o.css({top:s.top,right:536-s.left+38}).show()),d=!0}).live("mouseleave","li.lzl_single_post",function(){o.hasClass("user-hide-post-up")&&o.tbattr("class","user-hide-post-down"),o.hide(),a.hide()}),window.global=window.global||{},window.global.shieldPost=function(){$("body").append(o).append(a)}}}});
;_.Module.define({path:"pb/widget/postList/PrintFlower",sub:{initial:function(){try{this._bindEvent()}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/print_flower.js",method:"",ln:11}),t}},_bindEvent:function(){var t=this;$("#j_p_postlist").delegate(".j_print_reward","click",function(){try{var e=$(this),a=e.tbattr("data-pid"),s=e.tbattr("data-uid");t._introducePrintDialog(a,s)}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"pb:widget/post_list/print_flower.js",method:"",ln:19}),i}}).delegate(".j_click_flower","click",function(){try{$.stats.track("stamp_flower_show","fudai","frs/pb","click")}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/print_flower.js",method:"",ln:21}),t}}).delegate(".j_award_flower","mouseover",function(){$(this).parent().next(".what_flower").css("display","block")}).delegate(".j_award_flower","mouseout",function(){$(this).parent().next(".what_flower").css("display","none")}).delegate(".what_flower","mouseover",function(){$(this).css("display","block")}).delegate(".what_flower","mouseout",function(){$(this).parent().next(".what_flower").css("display","none")})},_introducePrintDialog:function(t,e){var a=this,s='请选择你要奖励的印花数
',i='+5 ',n='+10 ',o='+50 ',p='请输入印花数 ',r=i+n+o+p,c='',l='",d=$.dialog.open(l,{title:"印花奖励",width:428});$(".j_notice_ok").click(function(s){try{s.preventDefault(),a._stampAjax(t,e)}catch(s){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:s.message||s.description,path:"pb:widget/post_list/print_flower.js",method:"",ln:48}),s}}),this.bind("showtips",function(t,e){e&&setTimeout(function(){d.close()},500)}),$(".j_notice_no").click(function(t){try{t.preventDefault(),d.close()}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/print_flower.js",method:"",ln:59}),t}})},_stampAjax:function(t,e){var a=this,s=$('input:radio[name="stamp_num"]:checked').val(),i=0;if(1==s){if(i=$(".stamp_input").val(),""==i)return $(".stamp_error").css("display","inline-block"),!1}else i=s;var n={word:PageData.forum.forum_name,tbs:PageData.tbs,add_point:i,uid:e,post_id:t,ie:"utf-8"};$.post("/bawu2/fortune/addPoint?",n,function(t){t&&0==t.errno?(_html='奖励成功
',$(".stamp_wrapper").append(_html),a.trigger("showtips",!0)):($(".stamp_error_tip").css("display","block"),a.trigger("showtips",!1))},"json")}}});
;_.Module.define({path:"pb/widget/postList/TbmallGuide",requires:["common/component/Card"],sub:{initial:function(){try{this._bindEvent()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/tbmall_guide.js",method:"",ln:12}),e}},_private_guide_card:"",_guideTimeoutId:"",_bindEvent:function(){var e=this;$("#j_p_postlist").delegate(".j_tbmall_guide","click",function(){try{e.preventDefault(),$(window).scrollTop($("[name='sub']").offset().top),$(".edui-btn-medal").click(),e.stopPropagation()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/tbmall_guide.js",method:"",ln:22}),e}}).delegate(".j_nameplate","mouseenter",function(){clearTimeout(e._guideTimeoutId),e._showTip($(this))}).delegate(".j_nameplate","mouseleave",function(){clearTimeout(e._guideTimeoutId),e._guideTimeoutId=setTimeout(function(){e._hideTip($(this))},300)})},_showTip:function(e){var t=this;t._private_guide_card&&t._private_guide_card.closeCard();var a=e.offset(),i=(e.hasClass("j_nameplate")||e.hasClass("p_mall_tail")?a.top:a.top+43,e.hasClass("p_mall_tail")?a.left+132:a.left+105,""),l=180;e.hasClass("j_self_has_nameplate")?(i='铭牌现在可以重铸了哦~ ',l=140):e.hasClass("j_self_nameplate")?(i='重铸铭牌 ',l=100):i=e.hasClass("j_self_no_nameplate")?'':'',t._private_guide_card=t.use("common/component/Card",{content:i,arrow_dir:"left",arrow_pos:{left:-7,top:9},card_css:{top:a.top+(e.outerHeight()-34)/2,left:a.left+e.outerWidth()+7,width:l,height:50}}),t._private_guide_card.showCard(),t._private_guide_card._j_card.on("mouseenter",function(){clearTimeout(t._guideTimeoutId)}).on("mouseleave",function(){t._private_guide_card.closeCard()})},_hideTip:function(){self._private_guide_card&&self._private_guide_card.closeCard()}}});
;_.Module.define({path:"pb/widget/postList",requires:["pb/widget/Posts","album/widget/imgLikeAction","pb/widget/pic_act_vote","pb/widget/pic_act_repost","pb/widget/sub_list/subListTotal"],sub:{initial:function(t){try{var e=this;if(this.posts=e.use("pb/widget/Posts"),this._bindOperatePower(),this._loadSubList(t),this._processSaveFaceBubble(),this.use("pb/widget/postList/FeedBack"),this.use("pb/widget/postList/PostPic"),this._loadPlaform(),Page.checkLoadedModules("forumList"))return;this.use("pb/widget/postList/HidePost"),this.use("pb/widget/postList/PrintFlower"),this.use("pb/widget/postList/TbmallGuide"),this.use("album/widget/imgLikeAction"),this._bindEvents()}catch(i){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:i.message||i.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:46}),i}},_loadSubList:function(t){var e=this;e.use("pb/widget/postList/Lzl"),t.tailList=PageUnit.load("tail_config"),e._loadSubList=e.use("pb/widget/sub_list/subListTotal",t),F.use(["datalazyload"],function(t){window.datalazyload=new t($(document.body),{diff:500,autoDestroy:!1,subListOnloadCallback:function(t){e._loadSubList.showLzlPost(t)}})})},_loadPlaform:function(){"12"!=PageData.thread.thread_type||Page.checkLoadedModules("pic_act_vote")||Page.checkLoadedModules("pic_act_repost")||(this.use("pb/widget/pic_act_vote"),this.use("pb/widget/pic_act_repost"))},_bindEvents:function(){var t=this;$("#pb_content").delegate(".j_quick_reply, a.p_reply_first","click",function(e){try{return e.preventDefault(),e.stopPropagation(),PageData.user.is_login?setTimeout(function(){t.fire("wanna_post")},50):TbCom.process("User","buildLoginFrame",null,null,null,"quick_reply"),!1}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:85}),e}}).delegate(".j_louzhubiaoshi","mouseenter",function(){var t=$(this),e=t.position(),i={content:"点击即可“只看楼主”哟~",arrow_dir:"up",arrow_pos:{left:20},bubble_css:{top:e.top+36,left:e.left,width:140},wrap:t.parent(),closeBtn:!1},s=new UiBubbleTipBase(i);s.showBubble({zIndex:$.getcurzIndex()}),t.one("mouseleave",function(){s.closeBubble()})}).delegate(".j_voice_ad_gif","click",function(){try{$.stats.track("voice_ad_gif","voice"),$("body").trigger("showvoicedialog",!0)}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:112}),t}}).delegate(".replace_tip","click",function(t){try{$(this).hide().parent(".replace_div").css("height","auto"),$(this).closest(".j_d_post_content").find(".cnt_act_vote_area").css("z-index",10)}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:115}),t}}).delegate(".j_lzl_forbidden_tip_close","click",function(){try{$(this).parent().parent().slideUp()}catch(t){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:t.message||t.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:117}),t}})},_processSaveFaceBubble:function(){var t=$.tb.Storage.get("fisfbb_shown_times")||0,e=$.tb.Storage.get("fisfbb_is_today_shown")||!1,i=new Date;i.setDate(i.getDate()+1),i.setHours(0),i.setMinutes(0),i.setSeconds(0),3>t&&!e&&$(".j_fisfbb").on("click",".j_close",function(e){try{$.tb.Storage.set("fisfbb_is_today_shown",!0,i),$.tb.Storage.set("fisfbb_shown_times",++t),$(this).remove()}catch(e){throw"undefined"!=typeof alog&&alog("exception.fire","catch",{msg:e.message||e.description,path:"pb:widget/post_list/post_list_main.js",method:"",ln:134}),e}}).show()},_bindOperatePower:function(){Page.checkLoadedModules("pbAdmin")||(PageData.is_thread_admin||PageData.is_posts_admin)&&_.Module.use("pb/widget/Admin",[],function(t){t.loadThreadManage(),t.bindAdminEvents(),t.bindLzlAdminEvents()})}}});_.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())?void e.showErrorForum("empty"):$.trim(n).length>0&&!e.util._isPositiveDigital(n)?void e._printTimeErrorInfo("请输入正确的数值"):parseInt($.trim(n),10)>120?(e._printTimeErrorInfo("最多充值120个月"),void $(this).val(120)):e.opts.isClickByUser?r>i?void e.initTdouNotEnough(i,r):void e.initBuyMember():void 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()}):r>i?void e.initTdouNotEnough(i,r):void e.initBuyMember()}),$(".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)?void e._printTimeErrorInfo("请输入正确的数值"):parseInt($.trim(t),10)>120?(e._printTimeErrorInfo("最多充值120个月"),$(this).val(120),void e.changeTdouNum()):(e._close_tip_bubble(),void e.changeTdouNum())}),$(".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)?void e.showErrorForum("empty"):$.trim(t).length>0&&!e.util._isPositiveDigital(t)?void e._printTimeErrorInfo("请输入正确的数值"):parseInt($.trim(t),10)>120?(e._printTimeErrorInfo("最多充值120个月"),void $(this).val(120)):(e._close_tip_bubble(),void e.checkHasForum(t))}),$(".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,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,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}),_=n.element;_.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:['"].join(""),features:['',"<%for(var i = 0; i< features.length; i++){%>",'<%=features[i].type%>',"<%if (!!features[i].num) {%>","X<%= features[i].num %> ","<%}%>"," ","<%}%>"," "].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"]%> ',"<%}%>",'
","<%}%>","
","
"].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}
',"
",'','',"红色标题
"," "," ",'',"经验加速
"," "," ",'',"直送经验
"," "," ",'',"道具赠送
",'补签卡X1 ','魔拜X1 ','魔蛋X1 '," "," ",'','详细了解特权 ','关闭 ',"
"].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()})}}});