(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-list-group-member"],{5388:function(e,t,i){"use strict";var n=i("744d"),r=i.n(n);r.a},"744d":function(e,t,i){var n=i("d992");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i("967d").default;r("e052e090",n,!0,{sourceMap:!1,shadowMode:!1})},ba72:function(e,t,i){"use strict";i.r(t);var n=i("e6be"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=r.a},c17f:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"item"},e._l(e.members,(function(t,n){return i("v-uni-view",{key:t.id,staticClass:"container"},[i("v-uni-view",{staticClass:"avatar-container",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toPersonInfo(t.id)}}},[i("v-uni-image",{staticClass:"avatar",attrs:{src:t.avatar}})],1),i("v-uni-view",{staticClass:"content",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.toPersonInfo(t.id)}}},[i("v-uni-text",{staticClass:"name"},[e._v(e._s(t.nickname)),i("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:e.owner_id==t.id,expression:"owner_id==person.id"}]},[e._v("(群主)")])],1),i("v-uni-text",{staticClass:"preview"},[e._v(e._s("D id: "+t.loginId))])],1),i("v-uni-button",{directives:[{name:"show",rawName:"v-show",value:e.owner_id!=t.id&&e.owner_id==e.user.id,expression:"owner_id!=person.id&&owner_id==user.id"}],staticClass:"btn",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.kickout(t.id)}}},[e._v("踢出")])],1)})),1)],1)},r=[]},cb6d:function(e,t,i){"use strict";i.r(t);var n=i("c17f"),r=i("ba72");for(var o in r)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return r[e]}))}(o);i("5388");var a=i("828b"),s=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"32694e41",null,!1,n["a"],void 0);t["default"]=s.exports},d992:function(e,t,i){var n=i("c86c");t=n(!1),t.push([e.i,".preview[data-v-32694e41]{margin-bottom:0;font-size:smaller}.btn[data-v-32694e41]{background-color:red;color:azure;width:%?120?%;height:80%;font-size:smaller;margin-top:auto;margin-bottom:auto;margin-right:%?50?%}.arrow[data-v-32694e41]{margin-top:auto;margin-bottom:auto;color:#8f8f94;margin-right:%?5?%;margin-left:%?20?%;font-weight:600}.divider[data-v-32694e41]{margin-top:%?10?%;padding-left:%?20?%;background-color:#c5c3c4;border-radius:%?10?%}.divider-text[data-v-32694e41]{font-size:smaller}.item[data-v-32694e41]{border-radius:%?15?%\n\t/* background-color: rgb(200,199,204); */}.item[data-v-32694e41] :hover{border-radius:%?15?%;background-color:#c8c7cc}.container[data-v-32694e41]{border-radius:%?20?%;margin-left:%?20?%;margin-right:%?40?%;border-radius:%?30?%;width:100%;display:flex;margin-top:%?10?%;background-color:#e1e1e1}.avatar-container[data-v-32694e41]{position:relative;margin:%?10?%}.avatar[data-v-32694e41]{width:%?110?%;height:%?110?%;border-radius:%?20?%}.content[data-v-32694e41]{display:flex;align-items:auto;flex-direction:column;justify-content:center;padding-left:%?10?%}.name[data-v-32694e41]{text-align:left;margin-top:0;font-weight:1000;font-size:large}",""]),e.exports=t},e6be:function(e,t,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i("2634")),o=n(i("2fdc")),a=n(i("9b1b")),s=n(i("d53b")),d=(n(i("ee0c")),i("bf7f")),u=i("8f59"),c={data:function(){return{members:[],owner_id:-1,index:-1,group_id:-1,group:{}}},onLoad:function(e){this.owner_id=e.owner_id,this.index=e.index,this.group_id=e.id,this.getMembersInfo(e.id),this.group=this.groups[this.index]},computed:(0,a.default)({},(0,u.mapGetters)(["user","groups"])),methods:{kickout:function(e){if(this.group.ownerId==this.user.id){var t=this;uni.showModal({title:"提示",content:"确认踢出该成员",confirmText:"确定",confirmColor:"#D94B4D",cancelText:"取消",success:function(i){if(i.confirm){var n={type:"kick-person",from:t.$store.getters.user.id,to:e,group:t.groups[t.index]};s.default.sendMessage(n),setTimeout((function(){t.getMembersInfo(t.group_id)}),300)}}})}else uni.showToast({title:"只有群主允许此操作！",icon:"error"})},getMembersInfo:function(e){var t=this;return(0,o.default)((0,r.default)().mark((function i(){var n,o;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return uni.showLoading({title:"正在拉取成员信息..."}),i.next=3,(0,d.getMember)({id:e});case 3:n=i.sent,o=n.content,"not found"==o?(uni.showToast({title:"获取信息失败！",icon:"error",duration:500}),setTimeout((function(){uni.navigateBack({animationType:"slide-out-left"})}),500)):t.members=o;case 6:case"end":return i.stop()}}),i)})))()},toPersonInfo:function(e){uni.navigateTo({url:"../../other/search/info?id="+e+"&from=group",animationType:"slide-in-right"})}}};t.default=c}}]);