(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-contents-randlist"],{"385b":function(t,e,n){"use strict";n.r(e);var i=n("c08c"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},6373:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"userpost",class:t.AppStyle},[i("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[i("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px"}},[i("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),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",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.reload.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"cuIcon-refresh"})],1)],1)],1),i("v-uni-view",{style:[{padding:t.NavBar+"px 10px 0px 10px"}]}),i("v-uni-view",{staticClass:"data-box"},[0==t.contentsList.length?i("v-uni-view",{staticClass:"no-data"},[i("v-uni-text",{staticClass:"cuIcon-text"}),t._v("暂时没有数据")],1):t._e(),i("v-uni-view",{staticClass:"cu-card article no-card"},[t._l(t.contentsList,(function(t,e){return[i("articleItem",{key:e+"_0",attrs:{item:t}})]}))],2)],1),0==t.isLoading?i("v-uni-view",{staticClass:"loading"},[i("v-uni-view",{staticClass:"loading-main"},[i("v-uni-image",{attrs:{src:n("9057")}})],1)],1):t._e()],1)},a=[]},c08c:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5"),n("e966"),n("f7a5");var i=n("95d0"),a={data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,contentsList:[],isLoading:0}},onShow:function(){this.getContentsList()},onLoad:function(){},methods:{back:function(){uni.navigateBack({delta:1})},reload:function(){this.getContentsList()},getContentsList:function(){var t=this,e="";if(i.localStorage.getItem("userinfo")){var n=JSON.parse(i.localStorage.getItem("userinfo"));e=n.token}t.$Net.request({url:t.$API.getContentsList(),data:{searchParams:JSON.stringify(t.$API.removeObjectEmptyKey({type:"post"})),limit:10,page:1,random:1,token:e},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){if(1==e.data.code){var n=e.data.data;n.length>0&&(t.contentsList=n)}setTimeout((function(){t.isLoading=1,clearTimeout("timer")}),300)},fail:function(e){uni.showToast({title:"网络开小差了哦",icon:"none"});setTimeout((function(){t.isLoading=1,clearTimeout("timer")}),300)}})},toPost:function(){uni.navigateTo({url:"../edit/articlePost"})},toEdit:function(t){uni.navigateTo({url:"../edit/articlePost?type=edit&cid="+t})},subText:function(t,e){return t.length<null?t.substring(0,e)+"……":t},formatDate:function(t){t=new Date(parseInt(1e3*t));var e=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),i=("0"+t.getDate()).slice(-2),a=("0"+t.getHours()).slice(-2),s=("0"+t.getMinutes()).slice(-2),o=e+"-"+n+"-"+i+" "+a+":"+s;return o}}};e.default=a},c454:function(t,e,n){"use strict";n.r(e);var i=n("6373"),a=n("385b");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);var o=n("828b"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"3a1ea90a",null,!1,i["a"],void 0);e["default"]=c.exports}}]);