(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216596"],{c1a3:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(t){t.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.text+"("+e.val+")",name:e.key}})})),1)]}},{key:"table-column-smallAvatarUrl",fn:function(t){var n=t.scope;return[a("cl-avatar",{style:{margin:"auto"},attrs:{shape:"square",size:40,src:e._f("default_avatar")(n.row.smallAvatarUrl)}})]}},{key:"table-column-balance",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(n.row.userAsset.balance))])]}},{key:"table-column-growth",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(n.row.userAsset.growth))])]}},{key:"table-column-subscribe",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(1==n.row.subscribe?"有":"没有"))])]}}])})],1)},r=[],l=(a("63ff"),a("e5af")),s={data:function(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"粉丝",key:"1",val:0},{text:"会员",key:"2",val:0}]}},mounted:function(){},methods:{handleClick:function(){this.app.refresh({status:this.tabIndex})},onLoad:function(e){var t=this,a=e.ctx,n=e.app;this.app=n,a.service(this.$service.sassPtMember).set("table",{columns:[{prop:"id",label:"ID",align:"center"},{prop:"smallAvatarUrl",label:"头像",align:"center"},{prop:"userName",label:"来源昵称",align:"center"},{prop:"mobile",label:"手机号",align:"center"},{prop:"merchantName",label:"商家",align:"center",emptyText:"无"},{prop:"memberLevel",label:"会员级别",align:"center",emptyText:"无"},{prop:"balance",label:"余额",align:"center",emptyText:"无"},{prop:"growth",label:"成长值",align:"center",emptyText:"无"},{prop:"subscribe",label:"关注公众号",align:"center",emptyText:"无"},{prop:"visitTimeFormat",label:"最近访问",align:"center",emptyText:"无"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(a,n){var r,l,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.next,e.next=3,r(a);case 3:l=e.sent,s=l.asset,t.tabsData[0].val=s.totalUser,t.tabsData[1].val=s.totalFans,t.tabsData[2].val=s.totalMember;case 8:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),n.refresh()}}},o=s,c=a("5511"),i=Object(c["a"])(o,n,r,!1,null,null,null);t["default"]=i.exports}}]);