(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mail-apply-list-apply-list"],{1524:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"rounded mr-2 px-2 py-1",class:t.disabled?"bg-light border":"main-bg-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickEvent.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"font",class:t.disabled?"text-light-muted":"text-white"},[t._v(t._s(t.name))])],1)},r=[]},"40db":function(t,e,n){"use strict";n.r(e);var a=n("1524"),i=n("9857");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var s,o=n("f0c5"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"40510ab7",null,!1,a["a"],s);e["default"]=u.exports},"6fa0":function(t,e,n){"use strict";n.r(e);var a=n("a4eb"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},9857:function(t,e,n){"use strict";n.r(e);var a=n("9a79"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},"9a79":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{name:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{clickEvent:function(){this.disabled||this.$emit("click")}}};e.default=a},a4eb:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),r=n("26cb"),s={data:function(){return{page:1,loadmore:"上拉加载更多"}},filters:{formatTitle:function(t){var e={agree:"已通过",refuse:"已拒绝",ignore:"已忽略"};return e[t.status]}},computed:(0,i.default)({},(0,r.mapState)({applyList:function(t){return t.user.apply.rows}})),onLoad:function(){this.$store.commit("updateApply",{k:"count",v:0})},onShow:function(){this.page=1,this.loadmore="上拉加载更多",this.$store.dispatch("getApply",this.page)},onBackPress:function(){this.$store.commit("updateApply",{k:"count",v:0})},onPullDownRefresh:function(){this.page=1,this.loadmore="上拉加载更多",this.$store.dispatch("getApply",this.page).then((function(t){uni.showToast({title:"刷新成功",icon:"none"}),uni.stopPullDownRefresh()}))},onReachBottom:function(){var t=this;"上拉加载更多"===this.loadmore&&(this.loadmore="加载中...",this.page=this.page+1,this.$store.dispatch("getApply",this.page).then((function(e){t.loadmore=t.applyList.length==10*t.page?"上拉加载更多":"没有更多了"})).catch((function(e){t.page=t.page-1,t.loadmore="上拉加载更多"})))},methods:{handle:function(t){uni.navigateTo({url:"../add-friend/add-friend?id="+t.id})}}};e.default=s},b578:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}));var a={freeNavBar:n("3e12").default,freeListItem:n("7474").default,freeMainButton:n("40db").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page"},[n("free-nav-bar",{attrs:{title:"好友申请列表",showBack:!0,showRight:!1}}),t._l(t.applyList,(function(e,a){return n("free-list-item",{key:a,attrs:{title:e.applyUser.nickname?e.applyUser.nickname:e.applyUser.username,cover:e.applyUser.avatar?e.applyUser.avatar:"/static/images/userpic.png",showRight:!0,showRightIcon:!1}},[n("v-uni-view",{attrs:{slot:"right"},slot:"right"},["pending"===e.status?n("free-main-button",{attrs:{name:"同意"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.handle(e)}}}):n("v-uni-text",{staticClass:"text-muted font-sm"},[t._v(t._s(t._f("formatTitle")(e)))])],1)],1)})),t.applyList.length>=10?n("v-uni-view",{staticClass:"flex align-center justify-center py-5 bg-light"},[n("v-uni-text",{staticClass:"text-muted font"},[t._v(t._s(t.loadmore))])],1):t._e()],2)},r=[]},feba:function(t,e,n){"use strict";n.r(e);var a=n("b578"),i=n("6fa0");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var s,o=n("f0c5"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"7172040b",null,!1,a["a"],s);e["default"]=u.exports}}]);