(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pagesblog-sblog_people-index"],{1843:function(t,e,s){"use strict";var a;s.d(e,"b",(function(){return i})),s.d(e,"c",(function(){return n})),s.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-uni-view",[s("div",{staticClass:"row-box mgb-5 flex"},[s("v-uni-input",{staticClass:"input-flex-text",attrs:{type:"text"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),s("div",{staticClass:"input-flex-btn w50",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.search.apply(void 0,arguments)}}},[t._v("搜")])],1),s("v-uni-view",{staticClass:"tabs-border"},[s("div",{staticClass:"tabs-border-item",class:"recommend"==t.type?"tabs-border-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType("recommend")}}},[t._v("推荐")]),s("div",{staticClass:"tabs-border-item",class:"vip"==t.type?"tabs-border-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType("vip")}}},[t._v("Vip")]),s("div",{staticClass:"tabs-border-item",class:"new"==t.type?"tabs-border-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType("new")}}},[t._v("新人")]),s("div",{staticClass:"tabs-border-item",class:"all"==t.type?"tabs-border-active":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setType("all")}}},[t._v("全部")])]),0==Object.keys(t.list).length?s("div",{staticClass:"emptyData"},[t._v("暂无")]):t._e(),t._l(t.list,(function(e,a){return s("div",{key:a,staticClass:"row-box flex mgb-5"},[s("img",{staticClass:"wh-60 mgr-5",attrs:{src:e.user_head+".100x100.jpg"},on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.goUser(e.userid)}}}),s("div",{staticClass:"flex-1"},[s("div",{staticClass:"mgb-5",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.goUser(e.userid)}}},[t._v(t._s(e.nickname))]),s("div",{staticClass:"flex mgb-5"},[s("div",{staticClass:"mgr-5"},[t._v("关注")]),s("div",{staticClass:"mgr-5 cl-num"},[t._v(t._s(e.follow_num))]),s("div",{staticClass:"mgr-5"},[t._v("粉丝")]),s("div",{staticClass:"cl-num"},[t._v(t._s(e.followed_num))])]),s("div",{staticClass:"cl2 f12 pd-5"},[t._v(t._s(e.description))])]),s("div",[e.isfollow?s("div",{staticClass:"btn-mini",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.followToggle(e)}}},[t._v("取消关注")]):s("div",{staticClass:"btn-mini",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.followToggle(e)}}},[t._v("关注")])])])})),t.per_page>0?s("div",{staticClass:"loadMore",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getList.apply(void 0,arguments)}}},[t._v("加载更多")]):t._e(),s("mt-footer",{attrs:{tab:"people"}})],2)},n=[]},"436f":function(t,e,s){"use strict";s.r(e);var a=s("97f8"),i=s.n(a);for(var n in a)"default"!==n&&function(t){s.d(e,t,(function(){return a[t]}))}(n);e["default"]=i.a},"97f8":function(t,e,s){"use strict";var a=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(s("a463")),n={components:{mtFooter:i.default},data:function(){return{list:[],pageLoad:!1,type:"recommend",per_page:0,isFirst:!0,keyword:""}},onLoad:function(){this.getPage()},onReachBottom:function(){this.getList()},methods:{setType:function(t){var e=this;this.type=t,e.per_page=0,e.isFirst=!0,this.getList()},search:function(){var t=this;t.per_page=0,t.isFirst=!0,console.log("search"),t.getList()},getPage:function(){var t=this;t.app.get({url:t.app.apiHost+"/module.php?m=sblog_people&a=list&ajax=1",data:{type:t.type},dataType:"json",success:function(e){t.pageLoad=!0,t.per_page=e.data.per_page,t.list=e.data.list}})},getList:function(){var t=this;if(0==this.per_page&&!this.isFirst)return!1;t.app.get({url:t.app.apiHost+"/module.php?m=sblog_people&a=list&ajax=1",data:{type:t.type,per_page:t.per_page,keyword:t.keyword},dataType:"json",success:function(e){if(t.pageLoad=!0,t.per_page=e.data.per_page,t.isFirst)t.list=[],t.list=e.data.list,t.isFirst=!1;else for(var s in e.data.list)t.list.push(e.data.list[s])}})},goUser:function(t){uni.navigateTo({url:"../sblog_home/index?userid="+t})},followToggle:function(t){var e=this;e.app.get({url:e.app.apiHost+"/index.php?m=follow&a=Toggle&ajax=1",dataType:"json",data:{t_userid:t.userid},success:function(e){if(e.error)return uni.showToast({title:e.message}),!1;t.isfollow=e.follow}})}}};e.default=n},ad02:function(t,e,s){"use strict";s.r(e);var a=s("1843"),i=s("436f");for(var n in i)"default"!==n&&function(t){s.d(e,t,(function(){return i[t]}))}(n);var o,l=s("f0c5"),r=Object(l["a"])(i["default"],a["b"],a["c"],!1,null,"d6f54b34",null,!1,a["a"],o);e["default"]=r.exports}}]);