chunk-382864fe.ca4c51c1.js 8.3 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-382864fe"],{"0525":function(t,i,n){},"0f79":function(t,i,n){},"0f79f":function(t,i,n){},"18f9":function(t,i,n){"use strict";n("940f")},"1c53":function(t,i,n){},"24ce":function(t,i,n){"use strict";n("0f79")},"4ad0":function(t,i,n){"use strict";n("1c53")},"940f":function(t,i,n){},a93a:function(t,i,n){"use strict";n.r(i);var e=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[t.$route.meta.children?i("ChildContent",{attrs:{menu:t.menu}}):i("Content")],1)},a=[],s=function(){var t=this,i=t._self._c;return i("div",{staticClass:"content"},[i("div",{staticClass:"tab"},[i("ContentTab",{attrs:{current:t.current,showRefresh:!t.current,text:["为你推荐","专栏"]},on:{changeTab:t.changeTab,handleRefresh:t.handleRefresh}})],1),0==t.current?i("div",{staticClass:"list",style:{opacity:0==t.current?1:0}},[t._l(t.recommendList,(function(n){return i("div",{staticClass:"card-item",on:{click:function(i){return t.toDetail(n.datum_id,n.id)}}},[i("InformationRecommendCard",{attrs:{info:n}})],1)})),!t.recommendList.length||t.finished||t.loading?t._e():i("div",{staticClass:"loading-more",on:{click:t.TouchBottom}},[t._v("\n 加载更多\n ")])],2):t._e(),t.loading?i("div",{staticClass:"loading"},[i("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{span:24}})],1):t._e(),i("div",{staticClass:"empty"},[0==t.current&&t.finished?i("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],1),1==t.current?i("div",{staticClass:"all",style:{opacity:1==t.current?1:0}},[i("div",{staticClass:"card-box"},t._l(t.allList,(function(n){return i("div",{staticClass:"card-item",on:{click:function(i){return t.toDetail(n.id)}}},[i("InformationAllCard",{attrs:{info:n}})],1)})),0)]):t._e()])},o=[],r=(n("ac6a"),n("f3e2"),n("2909")),c=n("f523"),l=n("010d"),m=n("a049"),d=n("b157"),u=function(){var t=this,i=t._self._c;return i("div",{staticClass:"information-recommend-card"},[i("img",{staticClass:"file-icon",attrs:{src:t.fileIcon}}),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[t._v(t._s(t.info.title))]),i("div",{staticClass:"bottom"},[i("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo}}),i("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),i("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"阅读量·")]),i("div",{staticClass:"time"},[t._v(t._s(t.info.release_time.slice(0,10)))])])]),t.info.is_vip?i("img",{staticClass:"vip",attrs:{src:n("cfa8")}}):t._e()])},f=[],h=n("325c"),p={name:"InformationRecommendCard",props:{info:{type:Object,default:function(t){}}},data:function(){return{}},computed:{fileType:function(){return Object(h["f"])(this.info.url||"")},fileIcon:function(){return Object(h["e"])("".concat(this.fileType,"_bg"))}},methods:{}},g=p,v=(n("18f9"),n("2877")),_=Object(v["a"])(g,u,f,!1,null,"37a68ab7",null),b=_.exports,C=function(){var t=this,i=t._self._c;return i("div",{staticClass:"information-recommend-card"},[i("img",{staticClass:"file-icon",attrs:{src:t.fileIcon}}),i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[t._v(t._s(t.info.title))]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"阅读量·")]),i("div",{staticClass:"time"},[t._v(t._s(t.info.create_at))])])])])},y=[],O={name:"InformationAllCard",props:{info:{type:Object,default:function(t){}}},data:function(){return{}},computed:{fileIcon:function(){return Object(h["e"])("folder_bg")}},methods:{}},k=O,P=(n("4ad0"),Object(v["a"])(k,C,y,!1,null,"8bc02184",null)),j=P.exports,L={name:"Content",components:{ContentTab:l["a"],InformationRecommendCard:b,Screen:m["a"],Sort:d["a"],InformationAllCard:j},data:function(){return{current:0,recommendParams:{page:1,page_num:20},recommendList:[],loading:!1,finished:!1,cateTree:[],listParams:{first_classify:0,second_classify:0,page:1,page_num:20,sort_type:1},allList:[]}},mounted:function(){window.scrollTo(0,0),this.getRecommendList(),this.getCateTree(),localStorage.getItem("user_info")&&this.$store.dispatch("getMarkNum","information")},methods:{changeTab:function(t){this.current=t,this.loading=!1,this.finished=!1,this.recommendParams.page=1,this.listParams.page=1,this.recommendList=[],this.allList=[],0==t?this.getRecommendList():this.getInformationList()},handleRefresh:function(){this.loading=!1,this.finished=!1,this.recommendParams.page=1,this.getRecommendList()},changeCurrent:function(t,i){this.listParams.first_classify=t.id,this.listParams.second_classify=i.id,this.listParams.page=1,this.loading=!1,this.finished=!1,this.getInformationList()},changeSort:function(t){this.listParams.sort_type=t,this.listParams.page=1,this.loading=!1,this.finished=!1,this.getInformationList()},TouchBottom:function(){this.finished||this.loading||(0==this.current?this.getRecommendList():this.getInformationList())},getRecommendList:function(){var t=this;this.loading=!0;var i="";1==this.recommendParams.page&&(i=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})),c["d"].getRecommendList(this.recommendParams).then((function(n){var e=n.data,a=e.list;i&&i.close(),t.recommendList=1===t.recommendParams.page?a:[].concat(Object(r["a"])(t.recommendList),Object(r["a"])(a)),a.length<t.recommendParams.page_num||t.recommendList.length==e.total_count?t.finished=!0:t.recommendParams.page++})).catch((function(){t.finished=!0})).finally((function(){t.loading=!1}))},getCateTree:function(){var t=this;c["d"].getDatumCate({type:2}).then((function(i){var n=i.data;n.list.forEach((function(t){t.children=t.datum_list})),t.cateTree=n.list}))},getInformationList:function(){var t=this,i="";1==this.listParams.page&&(i=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})),c["d"].getDatumList(this.listParams).then((function(n){var e=n.data,a=e.list;i&&i.close(),t.allList=1===t.listParams.page?a:[].concat(Object(r["a"])(t.allList),Object(r["a"])(a)),a.length<t.listParams.page_num?t.finished=!0:t.listParams.page++}))},toDetail:function(t,i){this.current?this.$router.push({path:"/information-collection",query:{id:t}}):this.$router.open({path:"/information-details",query:{url_id:i,id:t}})}}},w=L,I=(n("24ce"),Object(v["a"])(w,s,o,!1,null,"ac314136",null)),T=I.exports,R=function(){var t=this,i=t._self._c;return i("div",{staticClass:"child"},[i("div",{staticClass:"navbar"},[i("ChildNavbar",{attrs:{num:t.informationMarkNum,menu:t.menu}})],1),i("div",{staticClass:"content"},[i("router-view")],1)])},x=[],D=(n("1c01"),n("58b2"),n("8e6e"),n("d25f"),n("456d"),n("ade3")),N=n("69e6"),$=n("2f62");function S(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,e)}return n}function M(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?S(Object(n),!0).forEach((function(i){Object(D["a"])(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}var A={name:"childContent",components:{ChildNavbar:N["a"]},props:{menu:{type:Array}},data:function(){return{}},computed:M({},Object($["b"])({informationMarkNum:function(t){return t.mark_num.informationMarkNum}})),mounted:function(){this.$store.dispatch("getMarkNum","information")},methods:{}},K=A,E=(n("dd15"),Object(v["a"])(K,R,x,!1,null,"cb372c32",null)),q=E.exports,B={components:{Content:T,ChildContent:q},data:function(){return{menu:[{title:"评论我的",link:"/information/comment-on-my",numKey:"comment_num"},{title:"回复我的",link:"/information/reply-on-my",numKey:"reply_num"},{link:"/information/like-on-my",title:"点赞我的",numKey:"praise_num",shape:"round"},{title:"我的订阅",link:"/information/my-chasingFun",numKey:"follow_num"},"line",{title:"我的评论",link:"/information/my-comment"},{title:"我的回复",link:"/information/my-reply"},{title:"我的点赞",link:"/information/my-like"},{title:"我的发布",link:"/information/my-release"},{title:"我的收藏",link:"/information/my-collect"},{title:"学习历史",link:"/information/study-history"}]}}},J=B,F=(n("dc55"),Object(v["a"])(J,e,a,!1,null,"647c0c9b",null));i["default"]=F.exports},dc55:function(t,i,n){"use strict";n("0f79f")},dd15:function(t,i,n){"use strict";n("0525")}}]);
  2. //# sourceMappingURL=chunk-382864fe.ca4c51c1.js.map