chunk-4bbb1d1c.ec88083f.js 16 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4bbb1d1c"],{"010d":function(t,n,e){"use strict";var i=function(){var t=this,n=t._self._c;return n("div",{staticClass:"content-tab"},[t._l(t.tabList,(function(e,i){return n("div",{staticClass:"tab-item",class:{select:i==t.current},on:{click:function(n){return t.$emit("changeTab",i)}}},[t._v("\n "+t._s(t.text[i])+"\n ")])})),t.showRefresh?n("div",{staticClass:"refresh",on:{click:function(n){return t.$emit("handleRefresh")}}},[n("img",{staticClass:"icon",attrs:{src:e("9c7f"),alt:""}}),n("span",[t._v("换一换")])]):t._e()],2)},a=[],r=(e("c5f6"),{name:"ContentTab",props:{current:{type:Number},showRefresh:{type:Boolean,default:!0},text:{type:Array,default:function(){return["为你推荐","全部"]}}},data:function(){return{tabList:[{name:"为你推荐"},{name:"全部"}]}}}),s=r,c=(e("b7f7"),e("2877")),o=Object(c["a"])(s,i,a,!1,null,"dee3fa1a",null);n["a"]=o.exports},"0525":function(t,n,e){},"0f79":function(t,n,e){},"18f9":function(t,n,e){"use strict";e("940f")},"1c53":function(t,n,e){},"41ca":function(t,n,e){},"4ad0":function(t,n,e){"use strict";e("1c53")},5212:function(t,n,e){"use strict";e("54fd")},"54fd":function(t,n,e){},"55ee":function(t,n,e){"use strict";e("41ca")},"940f":function(t,n,e){},"9c7f":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6BJREFUWEfFlllsFWUUx39ner135rI0tqIBVxKXBKVGAopoYmPC4gOSlhmMTXhogssLhMQXN3zR4LPBBZQgicZUZ241hISIL9RoFJOiFTXyghENAWmg0LQzd5tj5rYY6l0HRpnH+f7f//y+c77lCFf5k6scn2QBbP9VhOXkzV72yXgri0sYIBgB7QLZgmfu+P8BnPzzaPg6yFE8s+u/AXD8hSjdIItA5kEI6CgiP4EeQ2UIuAbRFbjZb5pBtFgCFTYUHMJwK/BgE9OIyEDZS87qv3KA9cEdiL4HPDJlJmXgR+Aw6OnpfzcADwBdoG3TQScRcwGunG8E0TgDG4oPEZb2AR1AgMgOCN/EzZ6oMn1MM8wKXgFe/GdMZQ058/PLA+idWIZhRPW0QL5HeBLXPFYz8Gx/CxhbUV1QGVfGEd6mw9zGu1KMD+CMzyNMDSPcjMgQ+czauufa9rcDL0wHOYMYb1BMv8VnMtas/pWC1hTZwU7QZ4DfEHMprpyta+b4j4K8jPIpktmNK34rgS9qqgEqm45fQFMgq/HMg3EM42qrAZz8a2j4EjCEZ3XHNYyrrwaw/V+BuxD6ca29cQ3j6mcCPK5zSOfHQA1SegsD2T/iGsbVzwTonViCYQyDXMAz2+OaNdT3FO7FKC8mZ314qW4mgF1cAaWvgZN41o2JAjjBUVTvQXU5uezh2qfgicIyyuXvgLN4VmeiAHYQlbYdabsPN/1DbYDoAtLUX5XBtNnBR3IuEQjnfAeaGQUVpDwfd/ap+veA7Ucb7yZUbXLZXDIAkz2oDAK/41m31d8D0YgdvAP6LCI5XNNOBMAOBkF7gN141lONAZzC/Wj4LaiiRhe5zM9XBLE+fzcSjgBtSNtS3PRwY4CpLBwAXVN580fNhzkkpcuC6NYU1wVfTjUxchDPXP1vn9qPkRPcjnIEdA6wB8/cBKKxIWx/D9APMkmoixm0jrcGEKkcvw+VDyq3IgxQMJ9utdVm1alZzG1/P3IhahrF6MPNfFxrAY07ItvfBOyq9HjR04yxDUkP4FbasuovSnlnwUGizphbQUoYxmY+Se+sl73mTalTXImWokdpqtuB6AzvR+QIIX8iYqA6H2EJ6Drg+mndaUQ24ppfNCpdc4Bodp9eSzF4DmUzMLfxXtAxkF1MTG7nQOeFZvumNYCLLms1S7qwCtGViN6JSrTyEqrnEBkB+YozJ/dzaGHQLHD9m7DVmQnp4mUgoaCX2vwN+m8uMHgqzPAAAAAASUVORK5CYII="},a049:function(t,n,e){"use strict";var i=function(){var t=this,n=t._self._c;return n("div",{staticClass:"screen"},[n("div",{staticClass:"parents"},t._l(t.list,(function(e){return n("div",{staticClass:"parents-item",class:{"parents-select":e.id==t.current.id},on:{click:function(n){t.current=e,t.childrenCurrent=t.childrenList[0]}}},[t._v("\n "+t._s(e.title)+"\n ")])})),0),t.show_second?n("div",{staticClass:"children"},t._l(t.childrenList,(function(e){return n("div",{staticClass:"children-item",class:{"children-select":e.id==t.childrenCurrent.id},on:{click:function(n){t.childrenCurrent=e}}},[t._v("\n "+t._s(e.title)+"\n ")])})),0):t._e()])},a=[],r=e("2909"),s={name:"Screen",props:{list:{type:Array},show_second:{type:Boolean,default:!0}},data:function(){return{current:{},childrenCurrent:{}}},watch:{childrenCurrent:{handler:function(){this.$emit("changeCurrent",this.current,this.childrenCurrent)},deep:!0}},computed:{childrenList:function(){return this.current.children?[{id:0,title:"全部"}].concat(Object(r["a"])(this.current.children)):[]}},mounted:function(){this.current=this.list[0],this.childrenCurrent=this.childrenList[0]}},c=s,o=(e("5212"),e("2877")),l=Object(o["a"])(c,i,a,!1,null,"2ec891a6",null);n["a"]=l.exports},a737:function(t,n,e){},a93a:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t._self._c;return n("div",{staticClass:"wrap"},[t.$route.meta.children?n("ChildContent",{attrs:{menu:t.menu}}):n("Content")],1)},a=[],r=function(){var t=this,n=t._self._c;return n("div",{staticClass:"content"},[n("div",{staticClass:"tab"},[n("ContentTab",{attrs:{current:t.current,showRefresh:!t.current,text:["为你推荐","专栏"]},on:{changeTab:t.changeTab,handleRefresh:t.handleRefresh}})],1),0==t.current?n("div",{staticClass:"list",style:{opacity:0==t.current?1:0}},[t._l(t.recommendList,(function(e){return n("div",{staticClass:"card-item",on:{click:function(n){return t.toDetail(e.datum_id,e.id)}}},[n("InformationRecommendCard",{attrs:{info:e}})],1)})),!t.recommendList.length||t.finished||t.loading?t._e():n("div",{staticClass:"loading-more",on:{click:t.TouchBottom}},[t._v("\n 加载更多\n ")])],2):t._e(),t.loading?n("div",{staticClass:"loading"},[n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{span:24}})],1):t._e(),n("div",{staticClass:"empty"},[0==t.current&&t.finished?n("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],1),1==t.current?n("div",{staticClass:"all",style:{opacity:1==t.current?1:0}},[n("div",{staticClass:"card-box"},t._l(t.allList,(function(e){return n("div",{staticClass:"card-item",on:{click:function(n){return t.toDetail(e.id)}}},[n("InformationAllCard",{attrs:{info:e}})],1)})),0)]):t._e()])},s=[],c=(e("ac6a"),e("f3e2"),e("2909")),o=e("f523"),l=e("010d"),u=e("a049"),f=e("b157"),d=function(){var t=this,n=t._self._c;return n("div",{staticClass:"information-recommend-card"},[n("img",{staticClass:"file-icon",attrs:{src:t.fileIcon}}),n("div",{staticClass:"info"},[n("div",{staticClass:"title"},[t._v(t._s(t.info.title))]),n("div",{staticClass:"bottom"},[n("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo}}),n("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),n("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"阅读量·")]),n("div",{staticClass:"time"},[t._v(t._s(t.info.release_time.slice(0,10)))])])]),t.info.is_vip?n("img",{staticClass:"vip",attrs:{src:e("cfa8")}}):t._e()])},m=[],h=e("325c"),p={name:"InformationRecommendCard",props:{info:{type:Object,default:function(t){}}},data:function(){return{}},computed:{fileType:function(){return Object(h["d"])(this.info.url||"")},fileIcon:function(){return Object(h["c"])("".concat(this.fileType,"_bg"))}},methods:{}},g=p,v=(e("18f9"),e("2877")),A=Object(v["a"])(g,d,m,!1,null,"37a68ab7",null),C=A.exports,b=function(){var t=this,n=t._self._c;return n("div",{staticClass:"information-recommend-card"},[n("img",{staticClass:"file-icon",attrs:{src:t.fileIcon}}),n("div",{staticClass:"info"},[n("div",{staticClass:"title"},[t._v(t._s(t.info.title))]),n("div",{staticClass:"bottom"},[n("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"阅读量·")]),n("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["c"])("folder_bg")}},methods:{}},N=O,I=(e("4ad0"),Object(v["a"])(N,b,y,!1,null,"8bc02184",null)),P=I.exports,_={name:"Content",components:{ContentTab:l["a"],InformationRecommendCard:C,Screen:u["a"],Sort:f["a"],InformationAllCard:P},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(){this.getRecommendList(),this.getCateTree(),this.$store.state.userInfo&&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,n){this.listParams.first_classify=t.id,this.listParams.second_classify=n.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 n="";1==this.recommendParams.page&&(n=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})),o["d"].getRecommendList(this.recommendParams).then((function(e){var i=e.data,a=i.list;n&&n.close(),t.recommendList=1===t.recommendParams.page?a:[].concat(Object(c["a"])(t.recommendList),Object(c["a"])(a)),a.length<t.recommendParams.page_num||t.recommendList.length==i.total_count?t.finished=!0:t.recommendParams.page++})).catch((function(){t.finished=!0})).finally((function(){t.loading=!1}))},getCateTree:function(){var t=this;o["d"].getDatumCate({type:2}).then((function(n){var e=n.data;e.list.forEach((function(t){t.children=t.datum_list})),t.cateTree=e.list}))},getInformationList:function(){var t=this,n="";1==this.listParams.page&&(n=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})),o["d"].getDatumList(this.listParams).then((function(e){var i=e.data,a=i.list;n&&n.close(),t.allList=1===t.listParams.page?a:[].concat(Object(c["a"])(t.allList),Object(c["a"])(a)),a.length<t.listParams.page_num?t.finished=!0:t.listParams.page++}))},toDetail:function(t,n){this.current?this.$router.push({path:"/information-collection",query:{id:t}}):this.$router.push({path:"/information-details",query:{url_id:n,id:t}})}}},B=_,L=(e("ff32"),Object(v["a"])(B,r,s,!1,null,"4d2bb7d8",null)),D=L.exports,j=function(){var t=this,n=t._self._c;return n("div",{staticClass:"child"},[n("div",{staticClass:"navbar"},[n("ChildNavbar",{attrs:{num:t.informationMarkNum,menu:t.menu}})],1),n("div",{staticClass:"content"},[n("router-view")],1)])},x=[],E=(e("1c01"),e("58b2"),e("8e6e"),e("d25f"),e("456d"),e("ade3")),S=e("69e6"),w=e("2f62");function R(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function k(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?R(Object(e),!0).forEach((function(n){Object(E["a"])(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):R(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var V={name:"childContent",components:{ChildNavbar:S["a"]},props:{menu:{type:Array}},data:function(){return{}},computed:k({},Object(w["b"])({informationMarkNum:function(t){return t.mark_num.informationMarkNum}})),mounted:function(){this.$store.dispatch("getMarkNum","information")},methods:{}},M=V,z=(e("dd15"),Object(v["a"])(M,j,x,!1,null,"cb372c32",null)),Q=z.exports,X={components:{Content:D,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"}]}}},Y=X,T=(e("dc55"),Object(v["a"])(Y,i,a,!1,null,"647c0c9b",null));n["default"]=T.exports},aa77:function(t,n,e){var i=e("5ca1"),a=e("be13"),r=e("79e5"),s=e("fdef"),c="["+s+"]",o="​…",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=function(t,n,e){var a={},c=r((function(){return!!s[t]()||o[t]()!=o})),l=a[t]=c?n(d):s[t];e&&(a[e]=l),i(i.P+i.F*c,"String",a)},d=f.trim=function(t,n){return t=String(a(t)),1&n&&(t=t.replace(l,"")),2&n&&(t=t.replace(u,"")),t};t.exports=f},b157:function(t,n,e){"use strict";var i=function(){var t=this,n=t._self._c;return n("div",{staticClass:"sort"},t._l(t.list,(function(e){return n("div",{staticClass:"sort-item",class:{select:t.current==e.type},on:{click:function(n){return t.$emit("changeSort",e.type)}}},[t._v("\n "+t._s(e.label)+"\n ")])})),0)},a=[],r=(e("c5f6"),{name:"Sort",props:{current:{type:Number,default:1},list:{type:Array,default:function(){return[{label:"默认排序",type:1},{label:"按时间升序",type:2},{label:"按时间降序",type:3}]}}}}),s=r,c=(e("55ee"),e("2877")),o=Object(c["a"])(s,i,a,!1,null,"36514e32",null);n["a"]=o.exports},b7f7:function(t,n,e){"use strict";e("a737")},c5f6:function(t,n,e){"use strict";var i=e("7726"),a=e("69a8"),r=e("2d95"),s=e("5dbc"),c=e("6a99"),o=e("79e5"),l=e("9093").f,u=e("11e9").f,f=e("86cc").f,d=e("aa77").trim,m="Number",h=i[m],p=h,g=h.prototype,v=r(e("2aeb")(g))==m,A="trim"in String.prototype,C=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=A?n.trim():d(n,3);var e,i,a,r=n.charCodeAt(0);if(43===r||45===r){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===r){switch(n.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+n}for(var s,o=n.slice(2),l=0,u=o.length;l<u;l++)if(s=o.charCodeAt(l),s<48||s>a)return NaN;return parseInt(o,i)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof h&&(v?o((function(){g.valueOf.call(e)})):r(e)!=m)?s(new p(C(n)),e,h):C(n)};for(var b,y=e("9e1e")?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;y.length>O;O++)a(p,b=y[O])&&!a(h,b)&&f(h,b,u(p,b));h.prototype=g,g.constructor=h,e("2aba")(i,m,h)}},cfa8:function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAcCAYAAAAuh5ywAAAAAXNSR0IArs4c6QAABl9JREFUWEfVWHtQVFUY/51lHzwEpMTJclKTfOWjdFQeMj5AHgY2WsA0NSKKkuaD8tFgIoo66GgNOm06pdgKwhRh5jMnUlOsDcFBoyFJRg0UB0wERRBtb3PP3r333N27uxf9x/afhbvnnvN93+/3fb/vfAQAuKqsQbCQHBBEAsQPhADQgH7Tv4VvopH+VnrGrnX3vrhWOMe2n7gvf6b9ecz/NtuIpg1EUwqdNoP4RdYSqzOcGSABioY7c4g1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lvK1MmIC0pWKhW1jxQg9C69DhEThgmGspLxr37Xai+dB1G0wlcqW+me25alYSE+BDHoiAEwqUOsd1De+cjjE/OR8eDR5gaPAA7P54mUArI3nkapkMXQAjBmb2p6BPoL4ugmhxyp0X877GTR2Hb+lnw8BC0UKFBdqtDklMapH/yEw6dvgy9zgPlBXPg62OAhSMInbUbzS33MX5kXxRuTnRQ9CdxSK/TYuTQvkiaHowZsWNBhC5DXralftCtDrEonayoR+r6YzSYWz6IwMyIoTD/fgPvZOynz3KWTkVizAgHfVDjUNaS1xERNlRWFPjWx9/Px9pZKHXgCvc2VTpkqzSPLEDo7Hz809qBiWNeRN666VhtPIWiY9VW1IrS4Ovj6YjQE+oQyxLpzsZqZzd1iL34rfuiDHsPV0ProcFZ02zELizE7bZOxIQFwbg6XvF2qwYhscq5vDi6uQ8RAlU6JPKVaFB1qQlvrrBSLDpkII7/WmcV3Mx4RIUG2V3R1Vc5dzokdeLMaEC5KHT/PhSRVoSrja1iYfLvYYB533zo9VoVCHVfh2Q9G3+qw/1NQk61DrFVZVtRBbYXWZtQ/vN27HBsWMzPV9h2XjpYjQ7JKSfvoJ0Oatii0F0dsjpkTb5rjW1YuvVH0aGsBZPx2pA+TvurXcXlOPzzn3R9yWcpoo5U1dzA2u1H6fNlqVMRPk4Qa7UzhSfVIVmk7G63ijSQjaYUrvmi4U5oxL7P6o9s0OJ4H3IyJPmfzOXYAQ3hhySVmSWAMMZyNzx0Nlp6GuZyvA10jMUOGh9rSvqUzOVsg0Y+IalTIDng2FGw0qTyKZzL0VEwKYVFl0ECI2v/A5efXosLxT9xAAAAAElFTkSuQmCC"},dc55:function(t,n,e){"use strict";e("0f79")},dd15:function(t,n,e){"use strict";e("0525")},e4e0:function(t,n,e){},fdef:function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ff32:function(t,n,e){"use strict";e("e4e0")}}]);
  2. //# sourceMappingURL=chunk-4bbb1d1c.ec88083f.js.map