(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1128:function(t,e,a){"use strict";a.r(e);a(32),a(86),a(27);var r,s,n,i,o,c=a(5),u=a(669),p=a(670),l=a(655),h=a(654),d=a(710),m=a(733),y=a(734),f=a(644),g=a(645),_=a(702),v=a(618),w=a(595),b=a(912),k=a(602),x=a(701),$={layout:"main",mixins:[w.a],components:{ChannelTags:u.a,HeaderNav:l.a,HotPoet:p.a,Poem:_.a,InfoCard:g.a,Download:d.a,PoemCard:f.a,PoemType:m.a,SliderCard:y.a,Pagination:k.a,MiniSearch:x.a,Header:h.a},asyncData:(o=Object(c.a)(regeneratorRuntime.mark(function t(e){var a,r,s,n,i,o,c,u,p,l,h,d,m,y,f,g,_,w;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.app,a=e.query,r=e.$axios,s=e.error,e.store,n=10,i=a.page||1,o=a.keyword||"",c=a.type||"",t.next=7,Object(v.m)({params:{type:"poetry"}});case 7:if(u=t.sent,p=u.data.data,!(h=p.find(function(t){return t.name===c}))){t.next=18;break}return d=h.list.scheme_url,m="".concat(d).concat(encodeURI(o),"&page=").concat(i,"&pageSize=").concat(n),t.next=15,r(m,{});case 15:l=t.sent,t.next=22;break;case 18:return y={page:i,pageSize:10},t.next=21,r("/mobi/mg/poetry/getPoetryListByAuthor",{params:y});case 21:l=t.sent;case 22:if(f=l.data.data.data_list,g=f.list,_=f.totalNum,w=f.hasMore,0!==g.length){t.next=25;break}return t.abrupt("return",s({statusCode:404,message:"Page not found"}));case 25:return t.abrupt("return",{pageSize:n,list:g,totalNum:_,hasMore:w,keyword:o,typeList:p});case 26:case"end":return t.stop()}},t)})),function(t){return o.apply(this,arguments)}),beforeRouteUpdate:(i=Object(c.a)(regeneratorRuntime.mark(function t(e,a,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r();case 1:case"end":return t.stop()}},t)})),function(t,e,a){return i.apply(this,arguments)}),data:function(){return{}},watch:{$route:function(t){this.keyword=t.query.keyword||"",this.getPoemList()}},mounted:function(){},head:function(){var t=Object(b.a)("",""),e=t.title,a=t.description;return{title:e,__dangerouslyDisableSanitizers:["script"],meta:[{hid:"keywords",name:"keywords",content:t.keywords},{hid:"description",name:"description",content:a}],link:[{rel:"canonical",href:"".concat("https://www.juzikong.com").concat(this.$route.fullPath)}]}},computed:{page:function(){return this.$route.query.page||1},currkeyword:function(){return this.$route.query.keyword||""},currType:function(){return this.$route.query.type||""}},methods:{getPoemList:(n=Object(c.a)(regeneratorRuntime.mark(function t(){var e,a,r,s,n,i,o,c,u,p=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(a=this.typeList.find(function(t){return t.name===p.currType}))){t.next=9;break}return r=a.list.scheme_url,s="".concat(r).concat(this.keyword,"&page=").concat(this.page,"&pageSize=").concat(this.pageSize),t.next=6,this.$axios(s,{params:{}});case 6:e=t.sent,t.next=13;break;case 9:return n={page:this.page,pageSize:this.pageSize},t.next=12,this.$axios("/mobi/mg/poetry/getPoetryListByAuthor",{params:n});case 12:e=t.sent;case 13:i=e.data.data.data_list,o=i.list,c=i.totalNum,u=i.hasMore,this.list=o,this.totalNum=c,this.hasMore=u;case 17:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)}),fetchData:(s=Object(c.a)(regeneratorRuntime.mark(function t(){var e,a,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e={start:this.posts.start,keyword:this.posts.keyword,limit:this.posts.limit},t.next=3,this.$axios(this.url,{params:e});case 3:a=t.sent,r=a.data.data,this.posts.list=r.list,this.posts.start=r.nextStart,this.posts.total=r.totalNum;case 8:case"end":return t.stop()}},t,this)})),function(){return s.apply(this,arguments)}),onCurrentChange:function(t){this.posts.start=(t-1)*this.posts.limit,this.fetchData()},onSearch:(r=Object(c.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.posts.start=0,this.$router.push({path:this.$route.path,query:{keyword:this.posts.keyword}});case 2:case"end":return t.stop()}},t,this)})),function(){return r.apply(this,arguments)}),showTip:function(){this.$message.warning("没有权限")},showFullIntro:function(){this.showMore=!1,this.intro=this.author.intro}}},S=a(995),C=a(1);var P=Object(C.a)($,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:[t.$style.container]},[a("Header",{attrs:{path:"/p/v"}}),t._v(" "),a("div",{class:t.$style.topTools},[a("div",{class:t.$style.content},[a("div",{class:t.$style.crumb},[a("img",{attrs:{src:"https://static.juzicon.com/images/image-231109140400-FJSQ.png",alt:""}}),t._v(" "),a("span",[t._v("当前位置:")]),t._v(" "),a("p",[a("nuxt-link",{staticStyle:{color:"#262626 !important"},attrs:{to:"/p"}},[t._v("古诗词")])],1),t._v(" "),t._m(0),t._v(" "),a("p",{class:t.$style.curr},[t._v("诗词大全")])]),t._v(" "),a("div",{class:t.$style.right},[a("div",{class:t.$style.search},[a("MiniSearch")],1)])])]),t._v(" "),a("div",{class:t.$style.wrapper},[a("div",{class:t.$style.box},[a("div",{class:t.$style.right},[a("div",{class:t.$style.name},[t._v(t._s(t.keyword||"诗词大全"))]),t._v(" "),a("div",{class:t.$style.poemList},[t._l(t.list,function(e){return[a("PoemCard",{key:e.uuid,attrs:{record:e},on:{toDetail:function(a){return t.$router.push("/poems/verse/"+e.uuid)}}})]})],2),t._v(" "),a("div",{class:t.$style.pagin},[a("Pagination",{staticClass:"pagination",attrs:{total:t.totalNum,"page-size":t.pageSize}})],1)]),t._v(" "),a("div",{class:t.$style.left},[t._l(t.typeList,function(t){return[a("SliderCard",{key:t.name,attrs:{title:t.name,options:t.list.data,toMore:"作者"===t.name&&"/p/a"}})]})],2)])])],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("span",[e("i",{staticClass:"el-icon-d-arrow-right"})])}],!1,function(t){this.$style=S.default.locals||S.default},null,null);e.default=P.exports},819:function(t,e,a){t.exports={container:"container__9NJZ",topCover:"topCover_2NlHZ",tabsWrapper:"tabsWrapper_gYZ1E",tabs:"tabs_1zohw",tab:"tab_2JlMP",active:"active_EGGAH",mainWrapper:"mainWrapper_3BKaN",main:"main_1P0go",yiwen:"yiwen_3jS14",right:"right_1rHb4",pagin:"pagin_rKEUi",topTools:"topTools_1Lm7j",logo:"logo_LsXBW",crumb:"crumb_SBB8R",curr:"curr_JE9iO",content:"content_2QS5C",left:"left_yBi_i",wrapper:"wrapper_1jQMI",box:"box_bhZqT",name:"name_2bfJ-",exactDesc:"exactDesc_cCqHJ"}},995:function(t,e,a){"use strict";var r=a(819),s=a.n(r);e.default=s.a}}]);