|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ae438f6"],{"07d5":function(t,e,n){"use strict";n("7ec4")},"623d":function(t,e,n){"use strict";n("dbc0")},"7ec4":function(t,e,n){},a9c2:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.psInfo?n("div",{staticClass:"acea-row row-middle"},[n("div",{staticClass:"avatar mr15"},[n("div",{staticClass:"block"},[n("el-avatar",{attrs:{size:50,src:t.psInfo.avatar?t.psInfo.avatar:t.moren}})],1)]),t._v(" "),n("div",{staticClass:"dashboard-workplace-header-tip"},[n("p",{staticClass:"dashboard-workplace-header-tip-title",domProps:{textContent:t._s(t.psInfo.nickname||"-")}}),t._v(" "),n("div",{staticClass:"dashboard-workplace-header-tip-desc"},[n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("余额: "+t._s(t.psInfo.now_money))]),t._v(" "),n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("总计订单: "+t._s(t.psInfo.pay_count))]),t._v(" "),n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("总消费金额: "+t._s(t.psInfo.pay_price))]),t._v(" "),n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("本月订单: "+t._s(t.psInfo.total_pay_count))]),t._v(" "),n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("本月消费金额: "+t._s(t.psInfo.total_pay_price))]),t._v(" "),t.psInfo.is_svip?n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("会员到期时间: "+t._s(t.psInfo.svip_endtime))]):t._e(),t._v(" "),t.cancelTime?n("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("注销时间: "+t._s(t.cancelTime))]):t._e()])])]):t._e(),t._v(" "),n("el-row",{staticClass:"ivu-mt mt20",attrs:{align:"middle",gutter:10}},[n("el-col",{attrs:{span:4}},[n("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"0"},on:{select:t.changeType}},t._l(t.list,(function(e,a){return n("el-menu-item",{key:a,attrs:{name:e.val,index:e.val}},[n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.label))])])})),1)],1),t._v(" "),n("el-col",{attrs:{span:20}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:t.type,ref:"tabe",staticClass:"tabNumWidth",attrs:{data:t.tableData.data,size:"mini"}},[t._l(t.columns,(function(t,e){return n("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),t._v(" "),"3"===t.type?n("el-table-column",{key:111,attrs:{label:"有效期","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("filterEmpty")(e.row?e.row.start_time+"-"+e.row.end_time:"")))])]}}],null,!1,3673940515)}):t._e(),t._v(" "),"2"===t.type?n("el-table-column",{key:112,attrs:{label:"上级推荐人头像","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.spread&&e.row.spread.avatar?e.row.spread.avatar:t.moren,"preview-src-list":[e.row.avatar||t.moren]}})],1)]}}],null,!1,3621700489)}):t._e()],2),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[6,12,18,24],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)],1)},i=[],s=(n("c5f6"),n("c24f")),o={name:"UserDetails",props:{uid:{type:Number,default:null},cancelTime:{type:Number,default:null}},data:function(){return{moren:n("cdfe"),loading:!1,columns:[],Visible:!1,list:[{val:"0",label:"消费记录"},{val:"3",label:"持有优惠券"},{val:"4",label:"余额变动"},{val:"2",label:"推荐人修改记录"}],tableData:{data:[],total:0},tableFrom:{page:1,limit:6},psInfo:null,type:"0"}},mounted:function(){this.uid&&(this.getHeader(),this.getInfo("0"))},beforeUpdate:function(){var t=this;this.$nextTick((function(){t.$refs["tabe"].doLayout()}))},methods:{changeType:function(t){this.type=t,this.tableFrom.page=1,this.getInfo(t)},getInfo:function(t){var e=this;switch(this.loading=!0,t){case"0":Object(s["fb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"订单ID",key:"order_id",minWidth:250},{title:"收货人",key:"real_name",minWidth:90},{title:"商品数量",key:"total_num",minWidth:80},{title:"商品总价",key:"total_price",minWidth:90},{title:"实付金额",key:"pay_price",minWidth:90},{title:"交易完成时间",key:"pay_time",minWidth:160}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"2":Object(s["V"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"上级推荐人ID",key:"spread_uid",minWidth:120},{title:"上级推荐人昵称",key:"spread.nickname",minWidth:120},{title:"绑定时间",key:"create_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"3":Object(s["bb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",key:"coupon_price",minWidth:120},{title:"最低消费额",key:"use_min_price",minWidth:120},{title:"兑换时间",key:"use_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;default:Object(s["ab"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"变动金额",key:"number",minWidth:90},{title:"变动后",key:"balance",minWidth:90},{title:"类型",key:"title",minWidth:100},{title:"创建时间",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}))}},pageChange:function(t){this.tableFrom.page=t,this.getInfo(this.type)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getInfo(this.type)},getHeader:function(){var t=this;Object(s["cb"])(this.uid).then((function(e){t.psInfo=e.data}))}}},r=o,l=(n("ea0e"),n("2877")),c=Object(l["a"])(r,a,i,!1,null,"3cf4c5d8",null);e["a"]=c.exports},b7be:function(t,e,n){"use strict";n.d(e,"gb",(function(){return i})),n.d(e,"fb",(function(){return s})),n.d(e,"bb",(function(){return o})),n.d(e,"ab",(function(){return r})),n.d(e,"Z",(function(){return l})),n.d(e,"cb",(function(){return c})),n.d(e,"db",(function(){return u})),n.d(e,"eb",(function(){return d})),n.d(e,"N",(function(){return m})),n.d(e,"I",(function(){return p})),n.d(e,"J",(function(){return h})),n.d(e,"L",(function(){return f})),n.d(e,"K",(function(){return _})),n.d(e,"W",(function(){return b})),n.d(e,"H",(function(){return v})),n.d(e,"o",(function(){return g})),n.d(e,"u",(function(){return w})),n.d(e,"m",(function(){return k})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return C})),n.d(e,"X",(function(){return x})),n.d(e,"Y",(function(){return F})),n.d(e,"pb",(function(){return D})),n.d(e,"r",(function(){return I})),n.d(e,"q",(function(){return L})),n.d(e,"v",(function(){return O})),n.d(e,"a",(function(){return S})),n.d(e,"ob",(function(){return $})),n.d(e,"lb",(function(){return j})),n.d(e,"nb",(function(){return z})),n.d(e,"kb",(function(){return W})),n.d(e,"mb",(function(){return N})),n.d(e,"hb",(function(){return T})),n.d(e,"qb",(function(){return P})),n.d(e,"p",(function(){return M})),n.d(e,"t",(function(){return V})),n.d(e,"s",(function(){return H})),n.d(e,"F",(function(){return E})),n.d(e,"x",(function(){return B})),n.d(e,"A",(function(){return U})),n.d(e,"B",(function(){return R})),n.d(e,"z",(function(){return K})),n.d(e,"C",(function(){return Y})),n.d(e,"G",(function(){return A})),n.d(e,"E",(function(){return G})),n.d(e,"D",(function(){return q})),n.d(e,"w",(function(){return J})),n.d(e,"y",(function(){return Q})),n.d(e,"M",(function(){return X})),n.d(e,"V",(function(){return Z})),n.d(e,"U",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"T",(function(){return nt})),n.d(e,"rb",(function(){return at})),n.d(e,"S",(function(){return it})),n.d(e,"Q",(function(){return st})),n.d(e,"R",(function(){return ot})),n.d(e,"ib",(function(){return rt})),n.d(e,"O",(function(){return lt})),n.d(e,"f",(function(){return ct})),n.d(e,"e",(function(){return ut})),n.d(e,"d",(function(){return dt})),n.d(e,"c",(function(){return mt})),n.d(e,"b",(function(){return pt})),n.d(e,"P",(function(){return ht})),n.d(e,"k",(function(){return ft})),n.d(e,"i",(function(){return _t})),n.d(e,"h",(function(){return bt})),n.d(e,"j",(function(){return vt})),n.d(e,"g",(function(){return gt}));var a=n("0c6d");function i(t){return a["a"].get("/store/coupon/platformLst",t)}function s(t){return a["a"].get("/store/coupon/update/".concat(t,"/form"))}function o(t){return a["a"].get("/store/coupon/show/".concat(t))}function r(t){return a["a"].delete("store/coupon/delete/".concat(t))}function l(t){return a["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function c(t){return a["a"].get("store/coupon/sys/issue",t)}function u(t,e){return a["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return a["a"].get("/store/coupon/send/lst",t)}function m(t){return a["a"].post("store/coupon/send",t)}function p(t){return a["a"].get("store/coupon/detail/".concat(t))}function h(t){return a["a"].get("store/coupon/lst",t)}function f(t,e){return a["a"].post("store/coupon/status/".concat(t),{status:e})}function _(){return a["a"].get("store/coupon/create/form")}function b(t){return a["a"].get("store/coupon/issue",t)}function v(t){return a["a"].delete("store/coupon/delete/".concat(t))}function g(t){return a["a"].get("broadcast/room/lst",t)}function w(t,e){return a["a"].post("broadcast/room/status/".concat(t),e)}function k(t){return a["a"].delete("broadcast/room/delete/".concat(t))}function y(t){return a["a"].get("broadcast/room/apply/form/".concat(t))}function C(t){return a["a"].get("broadcast/room/detail/".concat(t))}function x(t,e){return a["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function F(t,e){return a["a"].post("broadcast/room/comment/".concat(t),{status:e})}function D(t,e){return a["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function I(t){return a["a"].get("broadcast/goods/lst",t)}function L(t){return a["a"].get("broadcast/goods/detail/".concat(t))}function O(t,e){return a["a"].post("broadcast/goods/status/".concat(t),e)}function S(t){return a["a"].get("broadcast/goods/apply/form/".concat(t))}function $(){return a["a"].get("seckill/config/create/form")}function j(t){return a["a"].get("seckill/config/lst",t)}function z(t){return a["a"].get("seckill/config/update/".concat(t,"/form"))}function W(t){return a["a"].delete("seckill/config/delete/".concat(t))}function N(t,e){return a["a"].post("seckill/config/status/".concat(t),{status:e})}function T(t,e){return a["a"].get("seckill/product/detail/".concat(t),e)}function P(t,e){return a["a"].get("broadcast/room/goods/".concat(t),e)}function M(t){return a["a"].delete("broadcast/goods/delete/".concat(t))}function V(t,e){return a["a"].post("broadcast/room/sort/".concat(t),e)}function H(t,e){return a["a"].post("broadcast/goods/sort/".concat(t),e)}function E(t){return a["a"].post("config/others/group_buying",t)}function B(){return a["a"].get("config/others/group_buying")}function U(t){return a["a"].get("store/product/group/lst",t)}function R(t){return a["a"].get("store/product/group/get/".concat(t))}function K(t){return a["a"].get("store/product/group/detail/".concat(t))}function Y(t){return a["a"].post("store/product/group/status",t)}function A(t,e){return a["a"].post("store/product/group/is_show/".concat(t),{status:e})}function G(t){return a["a"].get("store/product/group/get/".concat(t))}function q(t,e){return a["a"].post("store/product/group/update/".concat(t),e)}function J(t){return a["a"].get("store/product/group/buying/lst",t)}function Q(t,e){return a["a"].get("store/product/group/buying/detail/".concat(t),e)}function X(t,e){return a["a"].get("store/coupon/product/".concat(t),e)}function Z(){return a["a"].get("user/integral/title")}function tt(t){return a["a"].get("user/integral/lst",t)}function et(t){return a["a"].get("user/integral/excel",t)}function nt(){return a["a"].get("user/integral/config")}function at(t){return a["a"].post("user/integral/config",t)}function it(t){return a["a"].get("discounts/lst",t)}function st(t,e){return a["a"].post("discounts/status/".concat(t),{status:e})}function ot(t){return a["a"].get("discounts/detail/".concat(t))}function rt(t){return a["a"].get("marketing/spu/lst",t)}function lt(t){return a["a"].post("activity/atmosphere/create",t)}function ct(t,e){return a["a"].post("activity/atmosphere/update/".concat(t),e)}function ut(t){return a["a"].get("activity/atmosphere/lst",t)}function dt(t){return a["a"].get("activity/atmosphere/detail/".concat(t))}function mt(t,e){return a["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function pt(t){return a["a"].delete("activity/atmosphere/delete/".concat(t))}function ht(t){return a["a"].post("activity/border/create",t)}function ft(t,e){return a["a"].post("activity/border/update/".concat(t),e)}function _t(t){return a["a"].get("activity/border/lst",t)}function bt(t){return a["a"].get("activity/border/detail/".concat(t))}function vt(t,e){return a["a"].post("activity/border/status/".concat(t),{status:e})}function gt(t){return a["a"].delete("activity/border/delete/".concat(t))}},b9c2:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("el-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.user_type,callback:function(e){t.user_type=e},expression:"user_type"}},[n("el-tab-pane",{attrs:{label:"全部用户",name:""}}),t._v(" "),n("el-tab-pane",{attrs:{label:"微信用户",name:"wechat"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"小程序用户",name:"routine"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"H5用户",name:"h5"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"APP",name:"app"}}),t._v(" "),n("el-tab-pane",{attrs:{label:"PC",name:"pc"}})],1),t._v(" "),n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small","label-position":t.labelPosition,"label-width":"100px"}},[n("el-row",[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[n("el-form-item",{attrs:{label:"会员昵称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入昵称",clearable:""},model:{value:t.userFrom.nickname,callback:function(e){t.$set(t.userFrom,"nickname",e)},expression:"userFrom.nickname"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"手机号:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入手机号",clearable:""},model:{value:t.userFrom.phone,callback:function(e){t.$set(t.userFrom,"phone",e)},expression:"userFrom.phone"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"用户ID:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户ID",clearable:""},model:{value:t.userFrom.uid,callback:function(e){t.$set(t.userFrom,"uid",e)},expression:"userFrom.uid"}})],1)],1),t._v(" "),t.collapse?[n("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"会员分组:"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},model:{value:t.userFrom.group_id,callback:function(e){t.$set(t.userFrom,"group_id",e)},expression:"userFrom.group_id"}},[n("el-option",{attrs:{value:""}},[t._v("全部")]),t._v(" "),t._l(t.groupList,(function(t,e){return n("el-option",{key:e,attrs:{value:t.group_id,label:t.group_name}})}))],2)],1)],1),t._v(" "),n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"会员标签:"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},model:{value:t.userFrom.label_id,callback:function(e){t.$set(t.userFrom,"label_id",e)},expression:"userFrom.label_id"}},[n("el-option",{attrs:{value:""}},[t._v("全部")]),t._v(" "),t._l(t.labelLists,(function(t,e){return n("el-option",{key:e,attrs:{value:t.label_id,label:t.label_name}})}))],2)],1)],1)],1),t._v(" "),n("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"性别:"}},[n("el-radio-group",{staticClass:"selWidth",attrs:{type:"button"},model:{value:t.userFrom.sex,callback:function(e){t.$set(t.userFrom,"sex",e)},expression:"userFrom.sex"}},[n("el-radio-button",{attrs:{label:""}},[n("span",[t._v("全部")])]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[n("span",[t._v("男")])]),t._v(" "),n("el-radio-button",{attrs:{label:"2"}},[n("span",[t._v("女")])]),t._v(" "),n("el-radio-button",{attrs:{label:"0"}},[n("span",[t._v("保密")])])],1)],1)],1),t._v(" "),n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"身份:"}},[n("el-radio-group",{staticClass:"selWidth",attrs:{type:"button"},model:{value:t.userFrom.is_promoter,callback:function(e){t.$set(t.userFrom,"is_promoter",e)},expression:"userFrom.is_promoter"}},[n("el-radio-button",{attrs:{label:""}},[n("span",[t._v("全部")])]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[n("span",[t._v("推广员")])]),t._v(" "),n("el-radio-button",{attrs:{label:"0"}},[n("span",[t._v("普通会员")])])],1)],1)],1)],1),t._v(" "),n("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"访问情况:"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},model:{value:t.userFrom.user_time_type,callback:function(e){t.$set(t.userFrom,"user_time_type",e)},expression:"userFrom.user_time_type"}},[n("el-option",{attrs:{value:"visit",label:"最后访问"}}),t._v(" "),n("el-option",{attrs:{value:"add_time",label:"首次访问"}})],1)],1)],1),t._v(" "),n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{attrs:{label:"消费情况:"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},model:{value:t.userFrom.pay_count,callback:function(e){t.$set(t.userFrom,"pay_count",e)},expression:"userFrom.pay_count"}},[n("el-option",{attrs:{value:"-1",label:"0次"}}),t._v(" "),n("el-option",{attrs:{value:"0",label:"1次及以上"}}),t._v(" "),n("el-option",{attrs:{value:"1",label:"2次及以上"}}),t._v(" "),n("el-option",{attrs:{value:"2",label:"3次及以上"}}),t._v(" "),n("el-option",{attrs:{value:"3",label:"4次及以上"}}),t._v(" "),n("el-option",{attrs:{value:"4",label:"5次及以上"}})],1)],1)],1)],1),t._v(" "),n("el-col",{attrs:{xs:24,sm:24,md:24,lg:18,xl:18}},[n("el-col",t._b({},"el-col",t.grid,!1),[n("el-form-item",{staticClass:"timeBox",attrs:{label:"访问时间:"}},[n("el-date-picker",{staticClass:"selWidth",attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)],1)]:t._e(),t._v(" "),n("el-col",{staticClass:"text-right userFrom",attrs:{xs:24,sm:24,md:24,lg:6,xl:6}},[n("el-form-item",[n("el-button",{staticClass:"mr15",attrs:{type:"primary",icon:"ios-search",label:"default",size:"small"},on:{click:t.userSearchs}},[t._v("搜索")]),t._v(" "),n("el-button",{staticClass:"ResetSearch mr10",attrs:{size:"small",type:"reset"},on:{click:function(e){return t.reset("userFrom")}}},[t._v("重置")]),t._v(" "),n("a",{staticClass:"ivu-ml-8",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v("\n 收起 "),n("i",{staticClass:"el-icon-arrow-up"})]:[t._v("\n 展开 "),n("i",{staticClass:"el-icon-arrow-down"})]],2)],1)],1)],2)],1)],1),t._v(" "),n("div",{staticClass:"mb15"},[n("el-button",{staticClass:"mr10",attrs:{size:"mini"},on:{click:t.createUser}},[t._v("创建用户")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:"wechat"===t.user_type,expression:"user_type === 'wechat'"}],staticClass:"mr10",attrs:{size:"mini"},on:{click:t.sendNews}},[t._v("发送图文消息")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:0!=t.checkedIds.length,expression:"checkedIds.length != 0"}],staticClass:"mr10",attrs:{size:"mini"},on:{click:t.batchGroup}},[t._v("批量设置分组")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:0!=t.checkedIds.length,expression:"checkedIds.length != 0"}],attrs:{size:"mini"},on:{click:t.batchlabel}},[t._v("批量设置标签")]),t._v(" "),n("el-button",{staticClass:"mr15",staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"ios-search",label:"default",size:"mini"},on:{click:t.sendCoupon}},[t._v("发送优惠券")])],1),t._v(" "),t.checkedIds.length>0||t.allCheck?n("el-alert",{attrs:{title:t.allCheck?"已选择 "+t.tableData.total+" 项":"已选择 "+t.checkedIds.length+" 项",type:"info","show-icon":""}}):t._e()],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""},on:{"selection-change":t.handleSelectionChange}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[n("el-form-item",{attrs:{label:"首次访问:"}},[n("span",[t._v(t._s(e.row.create_time))])]),t._v(" "),n("el-form-item",{attrs:{label:"近次访问:"}},[n("span",[t._v(t._s(e.row.last_time))])]),t._v(" "),n("el-form-item",{attrs:{label:"身份证号:"}},[n("span",[t._v(t._s(e.row.card_id))])]),t._v(" "),n("el-form-item",{attrs:{label:"手机号:"}},[n("span",[t._v(t._s(e.row.phone))])]),t._v(" "),n("el-form-item",{attrs:{label:"真实姓名:"}},[n("span",[t._v(t._s(e.row.real_name))])]),t._v(" "),n("el-form-item",{attrs:{label:"标签:"}},t._l(e.row.label,(function(e,a){return n("span",{key:a,domProps:{textContent:t._s(e)}})})),0),t._v(" "),n("el-form-item",{attrs:{label:"生日:"}},[n("span",[t._v(t._s(e.row.birthday))])]),t._v(" "),n("el-form-item",{attrs:{label:"地址:"}},[n("span",[t._v(t._s(e.row.addres))])]),t._v(" "),n("el-form-item",{attrs:{label:"备注:"}},[n("span",[t._v(t._s(e.row.mark))])])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{width:"50"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[n("div",[n("span",{staticClass:"spBlock onHand",class:{check:"dan"===t.chkName},on:{click:function(n){return t.onHandle("dan",e.$index)}}},[t._v("选中本页")]),t._v(" "),n("span",{staticClass:"spBlock onHand",class:{check:"duo"===t.chkName},on:{click:function(e){return t.onHandle("duo")}}},[t._v("选中全部")])]),t._v(" "),n("el-checkbox",{attrs:{slot:"reference",value:"dan"===t.chkName&&t.checkedPage.indexOf(t.userFrom.page)>-1||"duo"===t.chkName},on:{change:t.changeType},slot:"reference"})],1)]}},{key:"default",fn:function(e){return[n("el-checkbox",{attrs:{disabled:e.row.cancel_time,value:!e.row.cancel_time&&(t.checkedIds.indexOf(e.row.uid)>-1||"duo"===t.chkName&&-1===t.noChecked.indexOf(e.row.uid))},on:{change:function(n){return t.changeOne(n,e.row)}}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{label:"头像","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.avatar?e.row.avatar:t.moren,"preview-src-list":[e.row.avatar||t.moren]}})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"昵称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("div",{staticClass:"acea-row"},[n("i",{directives:[{name:"show",rawName:"v-show",value:1===a.sex,expression:"row.sex===1"}],staticClass:"el-icon-male mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#2db7f5"}}),t._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:2===a.sex,expression:"row.sex===2"}],staticClass:"el-icon-female mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#ed4014"}}),t._v(" "),n("div",{domProps:{textContent:t._s(a.nickname)}})])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"is_svip",label:"付费会员","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.is_svip>0?"是":"否"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"等级","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.member?a.member.brokerage_name:"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"分组","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.group?a.group.group_name:"无"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"推荐人","min-width":"140"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(a.spread?a.spread.nickname+" / "+a.spread.uid:"-"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s("routine"===a.user_type?"小程序":"wechat"===a.user_type?"公众号":"app"===a.user_type||"App"===a.user_type?"App":"pc"===a.user_type?"PC":"H5"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"now_money",label:"余额",sortable:"","min-width":"100","sort-method":function(t,e){return t.now_money-e.now_money}}}),t._v(" "),n("el-table-column",{attrs:{prop:"integral",label:"当前可用积分","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"130",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.cancel_time?t._e():n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.uid)}}},[t._v("编辑")]),t._v(" "),n("el-dropdown",[n("span",{staticClass:"el-dropdown-link"},[t._v("\n 更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return t.onDetails(e.row.uid)}}},[t._v("用户详情")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setMoney(e.row)}}},[t._v("设置余额")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.changeIntegral(e.row)}}},[t._v("设置积分")]),t._v(" "),e.row.vip_name&&!e.row.cancel_time?n("el-dropdown-item",[t._v("清除等级")]):t._e(),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setGroup(e.row)}}},[t._v("设置分组")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setLabel(e.row)}}},[t._v("设置标签")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setModify(e.row)}}},[t._v("修改推荐人")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setPassword(e.row)}}},[t._v("修改密码")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.setMember(e.row)}}},[t._v("编辑会员等级")]),t._v(" "),e.row.cancel_time?t._e():n("el-dropdown-item",{nativeOn:{click:function(n){return t.giveMember(e.row)}}},[t._v("付费会员设置")])],1)],1)]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.userFrom.limit,"current-page":t.userFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("el-dialog",{staticClass:"dia",attrs:{title:"提示",visible:t.visible,width:"1000px","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[t.visible?n("news-category",{attrs:{"is-show-send":t.isShowSend,"wechat-ids":t.wechatIds,"user-ids":t.ids,"max-cols":t.maxCols}}):t._e()],1),t._v(" "),t.uid?n("el-dialog",{attrs:{title:"用户详情",visible:t.visibleDetail,width:"1000px","before-close":t.Close},on:{"update:visible":function(e){t.visibleDetail=e}}},[t.visibleDetail?n("user-details",{ref:"userDetails",attrs:{uid:t.uid,"cancel-time":t.cancel_time}}):t._e()],1):t._e(),t._v(" "),t.visibleCoupon?n("el-dialog",{attrs:{title:"优惠券列表",visible:t.visibleCoupon,width:"1000px"},on:{"update:visible":function(e){t.visibleCoupon=e}}},[t.visibleCoupon?n("coupon-List",{ref:"couponList",attrs:{couponForm:t.couponForm,checkedIds:t.checkedIds,allCheck:t.allCheck,userFrom:t.userFrom},on:{sendSuccess:t.sendSuccess}}):t._e()],1):t._e()],1)},i=[],s=n("c80c"),o=(n("96cf"),n("3b8d")),r=(n("456d"),n("7514"),n("ac6a"),n("c24f")),l=n("c42b"),c=n("a9c2"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.coupon_name,callback:function(e){t.$set(t.tableFrom,"coupon_name",e)},expression:"tableFrom.coupon_name"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","max-height":"400","tooltip-effect":"dark"}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-radio",{attrs:{label:e.row.coupon_id},nativeOn:{change:function(n){return t.getTemplateRow(e.row)}},model:{value:t.templateRadio,callback:function(e){t.templateRadio=e},expression:"templateRadio"}},[t._v(" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),t._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(t._s(t._f("couponTypeFilter")(a.type)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.use_min_price?"不限制":e.row.use_min_price))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1===e.row.coupon_type?e.row.use_start_time+" 一 "+e.row.use_end_time:e.row.coupon_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0===e.row.is_limited?"不限量":e.row.remain_count))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small",disabled:t.multipleSelection.coupon_id!=e.row.coupon_id},on:{click:function(n){return t.send(e.row.coupon_id)}}},[t._v("发送")])]}}])})],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[5,10,10,20],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1),t._v(" "),n("div")],1)},d=[],m=n("b7be"),p=n("83d6"),h={name:"CouponList",props:{couponForm:{type:Object,required:!0},checkedIds:{type:Array,default:[]},allCheck:{type:Boolean,default:!1},userFrom:{type:Object,required:!0}},data:function(){return{roterPre:p["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,coupon_name:"",status:1},multipleSelection:{coupon_id:""},templateRadio:0}},mounted:function(){this.tableFrom.page=1,this.getList(1)},methods:{getTemplateRow:function(t){this.multipleSelection={coupon_id:t.coupon_id}},send:function(t){var e=this;delete this.userFrom["page"],delete this.userFrom["limit"];var n=this;n.$confirm("确定要发送优惠券吗?发送优惠券后将无法恢复,请谨慎操作!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={coupon_id:t,search:n.userFrom,mark:n.filter(e.couponForm),is_all:n.allCheck?1:0,uid:n.checkedIds};Object(m["N"])(a).then((function(t){n.$message.success(t.message),n.$emit("sendSuccess")})).catch((function(t){n.$message.error(t.message)}))})).catch((function(t){n.$message({type:"info",message:"已取消"})}))},filter:function(t){for(var e in t)""===t[e]&&delete t[e];return t},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(m["gb"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},f=h,_=(n("07d5"),n("2877")),b=Object(_["a"])(f,u,d,!1,null,"0bb9d05e",null),v=b.exports,g={name:"UserList",components:{newsCategory:l["a"],userDetails:c["a"],couponList:v},data:function(){return{moren:n("cdfe"),pickerOptions:{shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]},timeVal:[],collapse:!1,visibleDetail:!1,maxCols:3,isShowSend:!0,visible:!1,user_type:"",tableData:{data:[],total:0},listLoading:!0,multipleSelection:[],ids:"",wechatIds:"",uid:"",labelPosition:"right",userProps:{children:"children",label:"name",value:"name"},userFrom:{label_id:"",user_type:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",phone:"",province:"",city:"",page:1,limit:20,group_id:""},address:[],grid:{xl:8,lg:12,md:12,sm:24,xs:24},grid2:{xl:18,lg:16,md:12,sm:24,xs:24},grid3:{xl:8,lg:12,md:12,sm:24,xs:24},addresData:[],groupList:[],labelLists:[],chkName:"",checkedIds:[],noChecked:[],checkedPage:[],visibleCoupon:!1,couponForm:{"用户标签":"","用户类型":"","性别":"","身份":"","消费情况":"","访问情况":"","访问时间":"","昵称":""},allCheck:!1,cancel_time:null}},mounted:function(){this.groupLists(),this.getTagList(),this.getList("")},methods:{onHandle:function(t){this.chkName=this.chkName===t?"":t,this.changeType(!(""===this.chkName))},changeType:function(t){t?this.chkName||(this.chkName="dan"):(this.chkName="",this.allCheck=!1);var e=this.checkedPage.indexOf(this.userFrom.page);"dan"===this.chkName?this.checkedPage.push(this.userFrom.page):e>-1&&this.checkedPage.splice(e,1),this.syncCheckedId()},syncCheckedId:function(){var t=this,e=this.tableData.data.map((function(t){if(!t.cancel_time)return t.uid}));"duo"===this.chkName?(this.checkedIds=[],this.allCheck=!0):"dan"===this.chkName?(this.allCheck=!1,e.forEach((function(e){var n=t.checkedIds.indexOf(e);-1===n&&t.checkedIds.push(e)}))):e.forEach((function(e){var n=t.checkedIds.indexOf(e);n>-1&&t.checkedIds.splice(n,1)}))},changeOne:function(t,e){if(t)if("duo"===this.chkName){var n=this.noChecked.indexOf(e.uid);n>-1&&this.noChecked.splice(n,1)}else{var a=this.checkedIds.indexOf(e.uid);-1===a&&this.checkedIds.push(e.uid)}else if("duo"===this.chkName){var i=this.noChecked.indexOf(e.uid);-1===i&&this.noChecked.push(e.uid)}else{var s=this.checkedIds.indexOf(e.uid);s>-1&&this.checkedIds.splice(s,1)}console.log("分开选择",this.checkedIds)},sendCoupon:function(){0==this.checkedIds.length&&0==this.allCheck?this.$message.warning("请选择用户"):this.visibleCoupon=!0},sendSuccess:function(){this.visibleCoupon=!1},getCoupounParmas:function(){var t=""==this.userFrom.label_id?"":this.getLabelValue(),e=this.findKey(this.userFrom.user_type,{"":"","微信用户":"wechat","小程序用户":"routine","H5用户":"h5"}),n=this.findKey(this.userFrom.sex,{"男":"1","女":"2","保密":"0","":""}),a=this.findKey(this.userFrom.sex,{"0次":"-1","1次以上":"0","2次以上":"1","3次以上":"2","4次以上":"3","5次以上":"4","":""}),i=this.findKey(this.userFrom.is_promoter,{"推广员":"1","普通用户":"0","":""}),s="visit"==this.userFrom.user_time_type?"最后访问":"add_time"==this.userFrom.user_time_type?"首次访问":"";this.couponForm={"用户标签":t,"用户类型":e,"性别":n,"消费情况":a,"身份":i,"访问情况":s,"访问时间":this.userFrom.user_time,"昵称":this.userFrom.nickname}},findKey:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t,e){return t===e};return Object.keys(e).find((function(a){return n(e[a],t)}))},getLabelValue:function(){for(var t="",e=0;e<this.labelLists.length;e++)if(this.labelLists[e]["label_id"]===this.userFrom.label_id)return t=this.labelLists[e]["label_name"],t},selectChange:function(t){this.timeVal=[],this.userFrom.user_time=t,this.getList("")},onchangeTime:function(t){this.timeVal=t,this.userFrom.user_time=t?this.timeVal.join("-"):""},userSearchs:function(){this.userFrom.user_time_type&&!this.userFrom.user_time?this.$message.error("请选择访问时间"):!this.userFrom.user_time_type&&this.userFrom.user_time?this.$message.error("请选择访问情况"):this.getList(1)},createUser:function(){var t=this;this.$modalForm(Object(r["n"])()).then((function(){return t.getList("")}))},groupLists:function(){var t=this;Object(r["x"])({page:1,limit:9999}).then(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(n){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.groupList=n.data.list;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},getTagList:function(){var t=this;Object(r["H"])({page:1,limit:9999}).then((function(e){t.labelLists=e.data.list})).catch((function(e){t.$message.error(e.message)}))},onDetails:function(t){this.uid=t,this.cancel_time=this.tableData.data.find((function(e){return e.uid===t})).cancel_time,this.visibleDetail=!0},Close:function(){this.visibleDetail=!1},sendNews:function(){if(0===this.checkedIds.length&&0==this.allCheck)return this.$message.warning("请先选择用户");this.visible=!0,this.wechatIds=this.getWechatUsers(this.tableData.data,this.checkedIds)},handleClose:function(){this.visible=!1},getWechatUsers:function(t,e){var n=[];if(this.allCheck)for(var a=0;a<t.length;a++)t[a]["wechat_user_id"]&&n.push(t[a]["wechat_user_id"]);else for(var i=0;i<t.length;i++)for(var s=0;s<e.length;s++)t[i]["uid"]===e[s]&&t[i]["wechat_user_id"]&&n.push(e[s]);return n},handleSelectionChange:function(t){this.multipleSelection=t;var e=[],n=[];this.multipleSelection.map((function(t){e.push(t.uid),n.push(t.wechat_user_id)})),this.ids=e.join(","),this.wechatIds=n.join(",")},setGroup:function(t){var e=this;this.$modalForm(Object(r["i"])(t.uid)).then((function(){return e.getList("")}))},batchGroup:function(){if(0===this.checkedIds.length)return this.$message.warning("请先选择用户");this.$modalForm(Object(r["c"])({ids:this.checkedIds.join(",")}))},batchlabel:function(){if(0===this.checkedIds.length)return this.$message.warning("请先选择用户");this.$modalForm(Object(r["d"])({ids:this.checkedIds.join(",")}))},setLabel:function(t){var e=this;this.$modalForm(Object(r["m"])(t.uid)).then((function(){return e.getList("")}))},setMember:function(t){var e=this;this.$modalForm(Object(r["j"])(t.uid)).then((function(){return e.getList("")}))},giveMember:function(t){var e=this;this.$modalForm(Object(r["t"])(t.uid)).then((function(){return e.getList("")}))},setModify:function(t){var e=this;this.$modalForm(Object(r["W"])(t.uid)).then((function(t){t.message;e.getList("")}))},setPassword:function(t){var e=this;this.$modalForm(Object(r["U"])(t.uid)).then((function(){return e.getList("")}))},setMoney:function(t){var e=this;this.$modalForm(Object(r["l"])(t.uid)).then((function(){return e.getList("")}))},changeIntegral:function(t){var e=this;this.$modalForm(Object(r["k"])(t.uid)).then((function(){return e.getList("")}))},getList:function(t){var e=this;this.listLoading=!0,this.userFrom.page=t||this.userFrom.page,this.userFrom.user_type=this.user_type,this.userFrom.province=this.address[0],this.userFrom.city=this.address[1],"0"===this.userFrom.user_type&&(this.userFrom.user_type=""),Object(r["db"])(this.userFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1,e.getCoupounParmas(),e.checkedIds=[]})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.userFrom.page=t,this.getList("")},handleSizeChange:function(t){this.userFrom.limit=t,this.getList("")},onEdit:function(t){var e=this;this.$modalForm(Object(r["hb"])(t)).then((function(){return e.getList("")}))},reset:function(){this.userFrom={label_id:"",user_type:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",province:"",city:"",page:1,limit:20,group_id:""},this.timeVal=[]}}},w=g,k=(n("623d"),Object(_["a"])(w,a,i,!1,null,"5f77ad86",null));e["default"]=k.exports},cdfe:function(t,e,n){t.exports=n.p+"system/img/f.5aa43cd3.png"},cf26:function(t,e,n){},dbc0:function(t,e,n){},ea0e:function(t,e,n){"use strict";n("cf26")}}]); |