12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29410c88"],{"0011":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAJNJREFUOE9jZKAQMGLTr5v2Rff3n38WN+bxzSZkPoYB2slfPP4z/F/5/z/DxOvzeOtIMkAr7Ws6w99/UxgYGFj+/2doJt6Ahv9MWo+/djIw/C+B2UiSAdopX+L+//8fBNHM6MXA8J+VJAOQ/amV/PkjAwMD36gBIzsMNJM+lTIwMrL//8dw+MZ83oMk5QVCirHJAwC86W0Rh+7EKAAAAABJRU5ErkJggg=="},"02b8":function(t,e,i){},"09c2":function(t,e,i){},"2e08":function(t,e,i){var a=i("9def"),r=i("9744"),s=i("be13");t.exports=function(t,e,i,n){var c=String(s(t)),o=c.length,l=void 0===i?" ":String(i),u=a(e);if(u<=o||""==l)return c;var f=u-o,p=r.call(l,Math.ceil(f/l.length));return p.length>f&&(p=p.slice(0,f)),n?p+c:c+p}},"34bb":function(t,e,i){"use strict";i("decd")},"396c":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAIxJREFUOE9jZKAQMBKjXzPlmwUDw39nxn8M/6/N425D1kOkAV9KGf//72JgYPx3bS4P86gBIz4M/jMyMOwBpYN/jP/XX5/DO53EhARNQv8Ze6/JcZcxNDD+I9WAPwxMTLnXZnPPgKVGUgyoYWRgDL86l2cHyUlZI/FLJAszw9Urc3guoWc+olyAL8cCABNCZxFw7yBDAAAAAElFTkSuQmCC"},"4e22":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{staticClass:"header"},[e("div",{staticClass:"search"},[e("SearchTab",{attrs:{tabList:t.tabList},on:{changeCurrent:t.changeCurrent},model:{value:t.currentType,callback:function(e){t.currentType=e},expression:"currentType"}})],1),e("div",{staticClass:"sort"},[e("SearchSort",{on:{changeSort:t.changeSort},model:{value:t.params.sort_type,callback:function(e){t.$set(t.params,"sort_type",e)},expression:"params.sort_type"}})],1)]),e("div",{staticClass:"list"},[t._l(t.list,(function(i){return e("div",{staticClass:"list-item",on:{click:function(e){return t.toDetail(i)}}},["video"==t.currentType.key?e("VideoCard",{attrs:{info:i}}):"image-text"==t.currentType.key?e("ImageTextCard",{attrs:{info:i}}):"information"==t.currentType.key?e("InformationCard",{attrs:{info:i}}):t._e()],1)})),t.list.length&&!t.finished?e("div",{staticClass:"loading-more",on:{click:t.TouchBottom}},[t._v("\n 加载更多\n ")]):t._e(),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])},r=[],s=(i("1c01"),i("58b2"),i("8e6e"),i("f3e2"),i("d25f"),i("456d"),i("2909")),n=i("3835"),c=(i("ac6a"),i("ffc1"),i("0cd8"),i("6d67"),i("7514"),i("ade3")),o=i("f523"),l=i("2f62"),u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-tab"},t._l(t.tabList,(function(i){return e("div",{key:i.key,staticClass:"tab-item",class:{"tab-item-current":t.currentType.key==i.key},on:{click:function(e){t.$emit("current",i),t.$emit("changeCurrent",i)}}},[t._v("\n "+t._s(i.label)+"\n ")])})),0)},f=[],p={name:"SearchTab",props:{currentType:{type:Object},tabList:{type:Array}},model:{prop:"currentType",event:"current"},data:function(){return{}}},d=p,h=(i("a3fc"),i("2877")),A=Object(h["a"])(d,u,f,!1,null,"256d4224",null),v=A.exports,g=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-sort"},[e("div",{staticClass:"sort-item",class:{select:1==t.current},on:{click:function(e){return t.changeSort(1)}}},[t._v("\n 默认排序\n ")]),e("div",{staticClass:"sort-item",class:{select:1!=t.current},on:{click:function(e){return t.changeSort(2==t.current?3:2)}}},[t._v("\n 时间\n "),1==t.current?e("img",{attrs:{src:i("dafb")}}):2==t.current?e("img",{attrs:{src:i("0011")}}):e("img",{attrs:{src:i("396c")}})])])},b=[],m=(i("c5f6"),{props:{current:{type:Number}},model:{prop:"current",event:"current"},methods:{changeSort:function(t){this.$emit("current",t),this.$emit("changeSort",t)}}}),C=m,S=(i("8e6d"),Object(h["a"])(C,g,b,!1,null,"7585b040",null)),O=S.exports,y=(i("6762"),i("2fdb"),i("28a5"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"video-card"},[e("div",{staticClass:"cover-box"},[e("img",{staticClass:"cover",attrs:{src:t.info.cover}}),t.info.is_vip?e("img",{staticClass:"vip",attrs:{src:i("cfa8")}}):t._e(),e("div",{staticClass:"type"},[t._v("视频")]),e("div",{staticClass:"time"},[t._v(t._s(t.time))])]),e("div",{staticClass:"info-box"},[e("div",{staticClass:"title",domProps:{innerHTML:t._s(t.info.title)}}),t.info.label?e("div",{staticClass:"label"},t._l(t.info.label.split(","),(function(i){return e("div",{staticClass:"label-item",class:{highlight:i.includes("<span")},domProps:{innerHTML:t._s(i)}})})),0):e("div",{staticClass:"label"}),e("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"观看·"+t._s(t.info.release_time))]),e("div",{staticClass:"app"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))])])])])}),x=[],_=(i("6b54"),i("87b3"),i("f576"),{name:"VideoCard",props:{info:{type:Object}},computed:{time:function(){var t=this.info.duration,e=Math.floor(t/60),i=Math.floor(t-60*e);return 0==i&&(i=1),e.toString().padStart(2,"0")+":"+i.toString().padStart(2,"0")}}}),N=_,I=(i("6e2d"),Object(h["a"])(N,y,x,!1,null,"628c999a",null)),w=I.exports,j=function(){var t=this,e=t._self._c;return e("div",{staticClass:"video-card"},[e("div",{staticClass:"cover-box"},[e("img",{staticClass:"cover",attrs:{src:t.info.cover}}),t.info.is_vip?e("img",{staticClass:"vip",attrs:{src:i("cfa8")}}):t._e(),e("div",{staticClass:"type"},[t._v("图文")])]),e("div",{staticClass:"info-box"},[e("div",{staticClass:"title",domProps:{innerHTML:t._s(t.info.title)}}),t.info.label?e("div",{staticClass:"label"},t._l(t.info.label.split(","),(function(i){return e("div",{staticClass:"label-item",class:{highlight:i.includes("<span")},domProps:{innerHTML:t._s(i)}})})),0):e("div",{staticClass:"label"}),e("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"观看·"+t._s(t.info.release_time))]),e("div",{staticClass:"app"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))])])])])},B=[],E={name:"ImageTextCard",props:{info:{type:Object}}},P=E,T=(i("34bb"),Object(h["a"])(P,j,B,!1,null,"cf23e9e2",null)),V=T.exports,M=function(){var t=this,e=t._self._c;return e("div",{staticClass:"video-card"},[e("div",{staticClass:"file-icon-box"},[e("img",{staticClass:"file-icon",attrs:{src:t.fileIcon}}),t.info.is_vip?e("img",{staticClass:"vip",attrs:{src:i("cfa8")}}):t._e()]),e("div",{staticClass:"info-box"},[e("div",{staticClass:"title",domProps:{innerHTML:t._s(t.info.title)}}),t.info.label?e("div",{staticClass:"label"},t._l(t.info.label.split(","),(function(i){return e("div",{staticClass:"label-item",class:{highlight:i.includes("<span")},domProps:{innerHTML:t._s(i)}})})),0):e("div",{staticClass:"label"}),e("div",{staticClass:"app"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),e("div",{staticClass:"read"},[t._v(t._s(t.info.read_num)+"阅读量")])])])])},D=[],k=i("325c"),R={name:"InformationCard",props:{info:{type:Object}},computed:{fileType:function(){return Object(k["f"])(this.info.url||"")},fileIcon:function(){return Object(k["e"])("".concat(this.fileType,"_bg"))}}},U=R,K=(i("b93d"),Object(h["a"])(U,M,D,!1,null,"d4a1d736",null)),Y=K.exports;function Q(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function z(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(i),!0).forEach((function(e){Object(c["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var L={components:{SearchTab:v,SearchSort:O,VideoCard:w,ImageTextCard:V,InformationCard:Y},data:function(){return{type:"",tabList:[{label:"视频",value:"video",key:"video",detailKey:["id","videoArrId"]},{label:"图文",value:"article",key:"image-text",detailKey:["id","item_id"]},{label:"资料",value:"datum",key:"information",detailKey:["id","url_id"]}],params:{page:1,page_num:20,sort_type:1},currentType:{},list:[],finished:!1}},computed:z({},Object(l["b"])(["searchState"])),watch:{"searchState.status":function(){this.params.page=1,window.scrollTo(0,0),this.handleSearch()}},mounted:function(){var t=this;this.currentType=this.searchState.type?this.tabList.find((function(e){return e.key==t.searchState.type})):this.tabList[0],this.handleSearch()},methods:{changeCurrent:function(t){this.list=[],this.params.page=1,this.currentType=t,this.finished=!1,this.handleSearch()},changeSort:function(){this.list=[],this.params.page=1,this.finished=!1,this.handleSearch()},TouchBottom:function(){this.finished||this.handleSearch()},handleSearch:function(){var t=this;if(this.searchState.value){var e=z({module:this.currentType.value,title:this.searchState.value,search:this.searchState.value},this.params);o["e"].elasticSearch(e).then((function(e){var i=e.data,a=i.list.hits.hits.map((function(t){return t.highlight?z(z({},t._source),Object.entries(t.highlight).reduce((function(t,e){var i=Object(n["a"])(e,2),a=i[0],r=i[1];return t[a]=r[0],t}),{})):z({},t._source)}));t.list=1===t.params.page?a:[].concat(Object(s["a"])(t.list),Object(s["a"])(a)),a.length<t.params.page_num?t.finished=!0:t.params.page++}))}},toDetail:function(t){var e={};e[this.currentType.detailKey[0]]=t.series_id,e[this.currentType.detailKey[1]]=t.id,this.$router.push({path:"/".concat(this.currentType.key,"-details"),query:e})}}},X=L,F=(i("ce4a"),Object(h["a"])(X,a,r,!1,null,"7359d0e6",null));e["default"]=F.exports},"504c":function(t,e,i){var a=i("9e1e"),r=i("0d58"),s=i("6821"),n=i("52a7").f;t.exports=function(t){return function(e){var i,c=s(e),o=r(c),l=o.length,u=0,f=[];while(l>u)i=o[u++],a&&!n.call(c,i)||f.push(t?[i,c[i]]:c[i]);return f}}},"6e2d":function(t,e,i){"use strict";i("09c2")},7514:function(t,e,i){"use strict";var a=i("5ca1"),r=i("0a49")(5),s="find",n=!0;s in[]&&Array(1)[s]((function(){n=!1})),a(a.P+a.F*n,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")(s)},"7e60":function(t,e,i){},"840a":function(t,e,i){},"8e6d":function(t,e,i){"use strict";i("d975")},9744:function(t,e,i){"use strict";var a=i("4588"),r=i("be13");t.exports=function(t){var e=String(r(this)),i="",s=a(t);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(i+=e);return i}},a3fc:function(t,e,i){"use strict";i("02b8")},aa77:function(t,e,i){var a=i("5ca1"),r=i("be13"),s=i("79e5"),n=i("fdef"),c="["+n+"]",o="
",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=function(t,e,i){var r={},c=s((function(){return!!n[t]()||o[t]()!=o})),l=r[t]=c?e(p):n[t];i&&(r[i]=l),a(a.P+a.F*c,"String",r)},p=f.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=f},b93d:function(t,e,i){"use strict";i("840a")},c5f6:function(t,e,i){"use strict";var a=i("7726"),r=i("69a8"),s=i("2d95"),n=i("5dbc"),c=i("6a99"),o=i("79e5"),l=i("9093").f,u=i("11e9").f,f=i("86cc").f,p=i("aa77").trim,d="Number",h=a[d],A=h,v=h.prototype,g=s(i("2aeb")(v))==d,b="trim"in String.prototype,m=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():p(e,3);var i,a,r,s=e.charCodeAt(0);if(43===s||45===s){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+e}for(var n,o=e.slice(2),l=0,u=o.length;l<u;l++)if(n=o.charCodeAt(l),n<48||n>r)return NaN;return parseInt(o,a)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof h&&(g?o((function(){v.valueOf.call(i)})):s(i)!=d)?n(new A(m(e)),i,h):m(e)};for(var C,S=i("9e1e")?l(A):"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;S.length>O;O++)r(A,C=S[O])&&!r(h,C)&&f(h,C,u(A,C));h.prototype=v,v.constructor=h,i("2aba")(a,d,h)}},ce4a:function(t,e,i){"use strict";i("7e60")},cfa8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAcCAYAAAAuh5ywAAAAAXNSR0IArs4c6QAABl9JREFUWEfVWHtQVFUY/51lHzwEpMTJclKTfOWjdFQeMj5AHgY2WsA0NSKKkuaD8tFgIoo66GgNOm06pdgKwhRh5jMnUlOsDcFBoyFJRg0UB0wERRBtb3PP3r333N27uxf9x/afhbvnnvN93+/3fb/vfAQAuKqsQbCQHBBEAsQPhADQgH7Tv4VvopH+VnrGrnX3vrhWOMe2n7gvf6b9ecz/NtuIpg1EUwqdNoP4RdYSqzOcGSABioY7c4g1iDXCpaN2BrkLlCxAdg7Kgk2D0gKdNphw5zNLwJGZj49GN410cF4h6nSN0r5KaDLPPDT7CVeZ2SrRz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elwB2zGxM8nxOLwKY2bBt234Wi8gxgN0iwOJOqjoDsP8P2OgBAbz9evbi7pOVR9pi4o9WRO5SShf5sUoBXwDO3P1xfrkSwKWInKSUXrdlYQRgr2ma97qup3lYVQckPyPiYzl8a9NYkvBvInXsEUsQYC4AAAAASUVORK5CYII="},decd:function(t,e,i){},f576:function(t,e,i){"use strict";var a=i("5ca1"),r=i("2e08"),s=i("a25f"),n=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);a(a.P+a.F*n,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},ffc1:function(t,e,i){var a=i("5ca1"),r=i("504c")(!0);a(a.S,"Object",{entries:function(t){return r(t)}})}}]);
- //# sourceMappingURL=chunk-29410c88.961c004f.js.map
|