(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-forum-moderators"],{"2abd":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("e966"),i("f7a5");var a=i("95d0"),n={data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,vipImg:this.$API.SPvip(),lvImg:this.$API.SPLv(),moderators:[],isLoad:0,isLoading:0,id:0}},onPullDownRefresh:function(){this.page=1,this.getUserList(!1),setTimeout((function(){uni.stopPullDownRefresh()}),1e3)},onReachBottom:function(){0==this.isLoad&&this.loadMore()},onShow:function(){this.page=1},onLoad:function(t){t.id&&(this.id=t.id,this.getSectionInfo())},methods:{back:function(){uni.navigateBack({delta:1})},getLv:function(t){if(!t)t=0;var e=this.$API.getLever(t);return e},formatDate:function(t){t=new Date(parseInt(1e3*t));var e=t.getFullYear(),i=("0"+(t.getMonth()+1)).slice(-2),a=("0"+t.getDate()).slice(-2),n=("0"+t.getHours()).slice(-2),s=("0"+t.getMinutes()).slice(-2),o=e+"-"+i+"-"+a+" "+n+":"+s;return o},getSectionInfo:function(){var t=this,e="";if(a.localStorage.getItem("userinfo")){var i=JSON.parse(a.localStorage.getItem("userinfo"));e=i.token}t.$Net.request({url:t.$API.sectionInfo(),data:{id:t.id,token:e},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){t.isLoad=1,t.isLoading=1,1==e.data.code&&(t.moderators=e.data.data.moderators)},fail:function(t){uni.showToast({title:"网络开小差了哦",icon:"none"})}})},toUserContents:function(t){var e=t.name,i=t.name+"的信息";t.screenName&&(i=t.screenName+" 的信息",e=t.screenName);var a=t.uid;uni.navigateTo({url:"/pages/contents/userinfo?title="+i+"&name="+e+"&uid="+a+"&avatar="+encodeURIComponent(t.avatar)})},subText:function(t,e){return t?t.length>e?(t=t.substring(0,e),t+"……"):t:"Ta还没有个人介绍哦"}}};e.default=n},"47f3":function(t,e,i){"use strict";i.r(e);var a=i("2abd"),n=i.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);e["default"]=n.a},b3ce:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"user",class:t.$store.state.AppStyle,staticStyle:{"background-color":"#f6f6f6"}},[a("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[a("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px"}},[a("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"cuIcon-back"})],1),a("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v("圈主列表")]),a("v-uni-view",{staticClass:"action"})],1)],1),a("v-uni-view",{style:[{padding:t.NavBar+"px 10px 0px 10px"}]}),a("v-uni-view",{staticClass:"cu-list menu-avatar userList",staticStyle:{"margin-top":"20upx"}},[0==t.moderators.length?a("v-uni-view",{staticClass:"no-data"},[a("v-uni-text",{staticClass:"cuIcon-text"}),t._v("暂时没有数据")],1):t._e(),t._l(t.moderators,(function(e,i){return a("v-uni-view",{key:i,staticClass:"cu-item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toUserContents(e.userJson)}}},[a("v-uni-view",{staticClass:"cu-avatar round lg",style:{"background-image":"url("+e.userJson.avatar+")"}}),a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"text-grey"},[a("v-uni-view",{staticClass:"forum-userinfo-name",class:e.userJson.isvip>0?"name-vip":""},[t._v(t._s(e.userJson.name)),e.userJson.isvip>0?a("v-uni-image",{staticStyle:{"border-radius":"0px","margin-left":"6upx","margin-right":"0upx",width:"70upx",height:"35upx"},attrs:{src:t.vipImg,mode:"widthFix"}}):t._e(),a("v-uni-image",{staticStyle:{"border-radius":"0px","margin-left":"6upx","margin-right":"0upx",width:"44upx",height:"22upx"},attrs:{src:t.lvImg+t.getLv(e.userJson.experience)+".png",mode:"widthFix"}})],1)],1),a("v-uni-view",{staticClass:"text-gray text-sm flex"},[a("v-uni-view",{staticClass:"text-cut"},[t._v(t._s(t.subText(e.userJson.introduce,100)))])],1)],1),a("v-uni-view",{staticClass:"action goUserIndex"},[a("v-uni-view",{staticClass:"cu-btn bg-gradual-orange",staticStyle:{"font-size":"26upx",height:"55upx","border-radius":"100upx"}},[t._v("主页")])],1)],1)}))],2),0==t.isLoading?a("v-uni-view",{staticClass:"loading"},[a("v-uni-view",{staticClass:"loading-main"},[a("v-uni-image",{attrs:{src:i("9057")}})],1)],1):t._e()],1)},n=[]},fc3c:function(t,e,i){"use strict";i.r(e);var a=i("b3ce"),n=i("47f3");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);var o=i("828b"),u=Object(o["a"])(n["default"],a["b"],a["c"],!1,null,"cc7cc87a",null,!1,a["a"],void 0);e["default"]=u.exports}}]);