(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-follow-index"],{"5db5":function(t,s,a){"use strict";a.r(s);var i=a("de6b"),e=a.n(i);for(var l in i)"default"!==l&&function(t){a.d(s,t,(function(){return i[t]}))}(l);s["default"]=e.a},"744c":function(t,s,a){"use strict";a.r(s);var i=a("98fe"),e=a("5db5");for(var l in e)"default"!==l&&function(t){a.d(s,t,(function(){return e[t]}))}(l);var o,n=a("f0c5"),r=Object(n["a"])(e["default"],i["b"],i["c"],!1,null,"7f38dd10",null,!1,i["a"],o);s["default"]=r.exports},"98fe":function(t,s,a){"use strict";var i;a.d(s,"b",(function(){return e})),a.d(s,"c",(function(){return l})),a.d(s,"a",(function(){return i}));var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"main-body",attrs:{id:"App"}},[a("div",{staticClass:"tabs-border"},[a("div",{staticClass:"tabs-border-item ",class:"follow"==t.tab?"tabs-border-active":"",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.setTab("follow")}}},[t._v("关注")]),a("div",{staticClass:"tabs-border-item",class:"followed"==t.tab?"tabs-border-active":"",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.setTab("followed")}}},[t._v("粉丝")])]),a("div",{staticClass:"list"},[0==Object.keys(t.list).length?a("div",{staticClass:"emptyData"},[t._v("暂无")]):t._e(),t._l(t.list,(function(s,i){return a("div",{key:i,staticClass:"row-box flex mgb-5"},[a("img",{staticClass:"wh-60 mgr-5",attrs:{src:s.user_head+".100x100.jpg"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goUser(s.userid)}}}),a("div",{staticClass:"flex-1"},[a("div",{staticClass:"mgb-5",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goUser(s.userid)}}},[t._v(t._s(s.nickname))]),a("div",{staticClass:"flex"},[a("div",{staticClass:"mgr-5"},[t._v("关注")]),a("div",{staticClass:"mgr-5 cl-num"},[t._v(t._s(s.follow_num))]),a("div",{staticClass:"mgr-5"},[t._v("粉丝")]),a("div",{staticClass:"cl-num"},[t._v(t._s(s.followed_num))])])]),a("div",[s.isfollow?a("div",{staticClass:"btn-mini",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.followToggle(s)}}},[t._v("取消关注")]):a("div",{staticClass:"btn-mini",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.followToggle(s)}}},[t._v("关注")])])])}))],2)])},l=[]},de6b:function(t,s,a){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var i={data:function(){return{list:[],tab:"follow",isFirst:!0,per_page:0}},created:function(){this.getFollow()},methods:{getFollow:function(){var t=this;if(t.per_page&&!t.isFirst)return!1;t.app.get({url:t.app.apiHost+"/index.php?m=follow&ajax=1",dataType:"json",success:function(s){for(var a in t.isFirst=!1,t.per_page=s.data.per_page,s.data.list)t.list.push(s.data.list[a])}})},getFollowed:function(){var t=this;t.app.get({url:t.app.apiHost+"/index.php?m=follow&a=followed&ajax=1",dataType:"json",success:function(s){for(var a in t.isFirst=!1,t.per_page=s.data.per_page,s.data.list)t.list.push(s.data.list[a])}})},setTab:function(t){this.tab=t,this.list=[],this.per_page=0,this.isFirst=!0,"follow"==t?this.getFollow():this.getFollowed()},followToggle:function(t){var s=this;switch(s.tab){case"follow":uni.showModal({title:"提示",content:"确认取消关注吗?",success:function(a){a.confirm&&s.app.get({url:s.app.apiHost+"/index.php?m=follow&a=Toggle&ajax=1",dataType:"json",data:{t_userid:t.userid},success:function(a){var i=Array();for(var e in s.list)s.list[e].userid!=t.userid&&i.push(s.list[e]);s.list=i}})}});break;default:s.app.get({url:s.app.apiHost+"/index.php?m=follow&a=Toggle&ajax=1",dataType:"json",data:{t_userid:t.userid},success:function(s){t.isfollow=s.follow}});break}},goUser:function(t){uni.navigateTo({url:"../../pagesblog/sblog_home/index?userid="+t})}}};s.default=i}}]);