(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-contents-metas"],{1173:function(t,a,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("d4b5"),e("c223"),e("5c47"),e("a1c1");e("25a6");var n=i(e("5fb9")),s={mixins:[n.default],data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,Topic:[],moreText:"加载更多",page:1,isLoading:0}},onPullDownRefresh:function(){},onShow:function(){},onReachBottom:function(){this.loadMore()},onLoad:function(t){this.getTopPic(!1)},methods:{back:function(){uni.navigateBack({delta:1})},loadMore:function(){this.moreText="正在加载中...",0==this.isLoad&&this.getTopPic(!0)},getTopPic:function(t){var a=this,e=a.page;t&&e++,a.$Net.request({url:a.$API.getMetasList(),data:{searchParams:JSON.stringify(a.$API.removeObjectEmptyKey({isrecommend:"1"})),limit:14,order:"order",page:e},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){if(a.isLoading=1,a.isLoad=0,1==e.data.code){var i=e.data.data;if(i.length>0){var n=i;t?(a.page++,a.Topic=a.Topic.concat(n)):a.Topic=n}else a.moreText="没有更多数据了"}},fail:function(t){a.isLoading=1,a.isLoad=0,a.moreText="加载更多"}})},replaceSpecialChar:function(t){return t=t.replace(/&quot;/g,'"'),t=t.replace(/&amp;/g,"&"),t=t.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&nbsp;/g," "),t},toCategoryContents:function(t,a){uni.navigateTo({url:"/pages/contents/contentlist?title="+t+"&type=meta&id="+a})}}};a.default=s},"3c9a":function(t,a,e){"use strict";e.r(a);var i=e("1173"),n=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(s);a["default"]=n.a},"5ad3":function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"userpost",class:[t.isDark?"dark":"",t.AppStyle],style:{"background-color":t.isDark?"#1c1c1c":"#f6f6f6","min-height":t.isDark?"100vh":"auto"}},[i("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[i("v-uni-view",{staticClass:"cu-bar",class:t.isDark?"dark":"bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px","background-color":t.isDark?"#1c1c1c":"#ffffff"}},[i("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.back.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"cuIcon-back"})],1),i("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v(" 全部推荐专题 ")]),i("v-uni-view",{staticClass:"action"})],1)],1),i("v-uni-view",{style:[{padding:t.NavBar+"px 10px 0px 10px"}]}),i("v-uni-view",{staticClass:"data-box"},[i("v-uni-view",{staticClass:"topic grid col-2"},t._l(t.Topic,(function(a,e){return i("v-uni-view",{key:e,staticClass:"topic-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toCategoryContents(a.name,a.mid)}}},[i("v-uni-view",{staticClass:"topic-main"},[i("v-uni-image",{attrs:{src:a.imgurl,mode:"aspectFill"}}),"tag"==a.type?i("v-uni-view",{staticClass:"topic-text"},[t._v("#"+t._s(t.replaceSpecialChar(a.name))+"#")]):i("v-uni-view",{staticClass:"topic-text"},[t._v(t._s(t.replaceSpecialChar(a.name)))])],1)],1)})),1),t.Topic.length>0?i("v-uni-view",{staticClass:"load-more",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.loadMore.apply(void 0,arguments)}}},[i("v-uni-text",[t._v(t._s(t.moreText))])],1):t._e()],1),0==t.isLoading?i("v-uni-view",{staticClass:"loading"},[i("v-uni-view",{staticClass:"loading-main"},[i("v-uni-image",{attrs:{src:e("b587")}})],1)],1):t._e()],1)},n=[]},"653d":function(t,a,e){"use strict";e.r(a);var i=e("5ad3"),n=e("3c9a");for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(s);var o=e("828b"),c=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"c31feaec",null,!1,i["a"],void 0);a["default"]=c.exports}}]);