define("baijia_portal:static/js/page/details/author",function(t,a,e){{var i=t("baijia_portal:static/js/widget/list"),l=window.MP.utils,r=l.getFollow();l.toast}e.exports={init:function(){var t=this;t.articlePicHtml=i.articlePicHtml,t.articleHtml=i.articleHtml,t.getDateOpts=i.getDateOpts,t.skip=0,t.page=1,t.limit=20,$("#getMoreArticles_author").on("click",function(){t.getMore()}),$(".author-panel-subcribe-button").add(".author-panel-unsubcribe-button").click(r.btnClick),i.setQrcode(),i.share(),t.lstFr="wfr=pc&fr=app_list"},getMore:function(){var t=this;t.time={month:$.trim($("#articleTree span.month:last").text()),date:$.trim($("#articleTree span.date:last").text())},t.skip=t.page*t.limit,$.ajax({url:window.MP.baseUrl.commonUrl+"/writerlistarticle",type:"GET",dataType:"json",data:{ajax:"json",app_id:$("#app_id").val(),_limit:t.limit,_skip:t.skip}}).done(function(a){var e;try{e=a.data.WriterArticleList}catch(i){e={total:0,count:0,items:[]}}for(var l=e.items,r=0,s=l.length;s>r;r++){var n=t.articleTreeHtml(l[r]);n.isNewDateHtml?$("#articleTree").append(n.html):$("#articleTree .date-box:last .article-list").append(n.html)}e.total-t.skip>t.limit?t.page++:$("#getMoreArticles_author").unbind().parent().removeClass("title").addClass("noarticles").text("没有更多文章了")}).fail(function(){})},formatToString:function(t){return 10>t?"0"+t:""+t},articleTreeHtml:function(t){var a=this,e="",i="",l=a.getDateOpts({publishAt:t.created_at,createdAt:t.created_at});if(i+="three"===t.cover_layout?a.articlePicHtml(t,"authorPage"):a.articleHtml(t,"authorPage"),l.month===a.time.month&&l.date!==a.time.date)e+='
'+l.month+"月
",e+=''+l.date+"