(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["userList"],{"1d22":function(t,e,s){},2335:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ant-card",attrs:{id:"course_category"}},[t.$route.meta.isShow?s("a-spin",{attrs:{spinning:t.spinning,size:"large"}},[s("div",{staticClass:"ant-card-body"},[s("a-alert",{staticStyle:{"margin-bottom":"30px"},attrs:{message:"暂时仅支持查询前一日数据",type:"warning","show-icon":""}}),s("div",{staticClass:"head-box"},[s("div",{staticClass:"table-operator"},[s("span",{staticClass:"item"},[s("a-input",{staticStyle:{width:"210px"},attrs:{placeholder:"用户手机号"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1),s("span",{staticClass:"item"},[s("a-button",{staticClass:"margin_right10",attrs:{type:"primary"},on:{click:t.searchClick}},[t._v("搜索")])],1)])]),s("div",{staticClass:"contant-box"},[s("a-table",{ref:"table",attrs:{columns:t.columns,"data-source":t.tableList,"row-key":function(t){return t.userNo},expandedRowKeys:t.expandedRowKeys,loading:t.tableLoading,pagination:!1},on:{expand:t.expandClick,change:t.sorterFun},scopedSlots:t._u([{key:"vipStatus",fn:function(e,a){return s("span",{},[s("span",[t._v(t._s(1==a.vipStatus?"仅注册":2==a.vipStatus?"会期内":3==a.vipStatus?"会期过期":"--"))])])}},{key:"nickName",fn:function(e,a){return s("span",{},[s("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"avatar",staticStyle:{"border-radius":"50%"},attrs:{src:a.imageUrl,alt:"头像"}}),s("span",[t._v(t._s(a.nickName))])])}},{key:"source",fn:function(e,a){return s("span",{},[1==a.source?s("span",[t._v("APP_Android")]):2==a.source?s("span",[t._v("APP_iOS")]):3==a.source?s("span",[t._v("直播_视频号")]):4==a.source?s("span",[t._v("直播_抖音")]):5==a.source?s("span",[t._v("直播预约小程序")]):6==a.source?s("span",[t._v("H5阅读大使推广二维码")]):7==a.source?s("span",[t._v("H5大使推广二维码")]):8==a.source?s("span",[t._v("人工操作")]):9==a.source?s("span",[t._v("历史注册")]):10==a.source?s("span",[t._v("H5官方网站")]):99==a.source?s("span",[t._v("其他")]):s("span",[t._v("--")])])}},{key:"lastPay",fn:function(e,a){return s("span",{},[s("span",[t._v(t._s("0001-01-01 00:00:00"==a.lastPay?"--":a.lastPay))])])}},{key:"action",fn:function(e,a){return s("span",{},[s("span",{staticClass:"margin_right10"},[s("a-dropdown",{scopedSlots:t._u([{key:"overlay",fn:function(){return[s("a-menu",[t.isUserDetail?s("a-menu-item",[s("a",{staticStyle:{color:"#1890ff"},on:{click:function(e){return t.userDetails(a)}}},[t._v("查看用户详情")])]):t._e()],1)]},proxy:!0}],null,!0)},[s("a",{staticClass:"ant-dropdown-link",on:{click:function(t){t.preventDefault()}}},[t._v("更多操作")])])],1),2==a.enableFlag&&t.isLockUser?s("a",{on:{click:function(e){return t.isLockingClick(a)}}},[t._v("正常")]):1==a.enableFlag&&t.isLockUser?s("a",{on:{click:function(e){return t.isLockingClick(a)}}},[t._v("锁定")]):t._e()])}},{key:"expandedRowRender",fn:function(e){return s("div",{},[s("ul",{staticClass:"contentRender"},[s("li",{staticClass:"tables"},[s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("注册归属:")]),s("p",{staticClass:"substance"},[t._v(t._s(e.registerAgentName))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("购买商品/课程:")]),s("p",{staticClass:"substance"},[t._v(t._s(e.buyCourse?e.buyCourse:"--"))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("会员VIP日期:")]),s("p",{staticClass:"substance"},[t._v(t._s("0001-01-01 00:00:00"==e.vipStart?"":e.vipStart)+" -- "+t._s("0001-01-01 00:00:00"==e.vipEnd?"":e.vipEnd))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("学习阶段:")]),s("p",{staticClass:"substance"},[t._v(t._s(0==e.grade?"学前":1==e.grade?"一年级":2==e.grade?"二年级":3==e.grade?"三年级":4==e.grade?"四年级":5==e.grade?"五年级":6==e.grade?"六年级":7==e.grade?"初一":8==e.grade?"初二":9==e.grade?"初三":10==e.grade?"高一":11==e.grade?"高二":12==e.grade?"高三":13==e.grade?"自由学习者":"--"))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("生日:")]),s("p",{staticClass:"substance"},[t._v(t._s(e.birthday))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("性别:")]),s("p",{staticClass:"substance"},[t._v(t._s(1==e.sex?"男":2==e.sex?"女":3==e.sex||0==e.sex?"保密":"--"))])]),s("div",{staticClass:"items"},[s("p",{staticClass:"title"},[t._v("账号状态:")]),s("p",{staticClass:"substance"},[t._v(t._s(1==e.enableFlag?"正常":"锁定"))])])]),s("li",{staticClass:"chart"},[s("div",{staticClass:"chartTitle"},[t._v("最近一周打开APP的次数:"+t._s(t.varsum))]),s("div",{ref:"echartPicRef",staticClass:"chartCom"})])])])}}],null,!1,1171511705)})],1),t.tableList.length>0?s("MyPagination",{attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}}):t._e()],1)]):t._e(),s("a-modal",{attrs:{title:"账号锁定"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[s("a-form-model",{ref:"ruleForm",attrs:{model:t.locking,rules:t.rules}},[s("a-form-model-item",{ref:"name",attrs:{label:"用户名称",prop:"name"}},[s("a-input",{attrs:{disabled:!0,placeholder:"请输入用户名称"},model:{value:t.locking.name,callback:function(e){t.$set(t.locking,"name",e)},expression:"locking.name"}})],1),s("a-form-model-item",{ref:"phone",attrs:{label:"用户手机号",prop:"phone"}},[s("a-input",{attrs:{disabled:!0,placeholder:"请输入用户手机号"},model:{value:t.locking.phone,callback:function(e){t.$set(t.locking,"phone",e)},expression:"locking.phone"}})],1),s("a-form-model-item",{ref:"isLocking",attrs:{label:"账号状态",prop:"isLocking"}},[s("a-radio-group",{attrs:{name:"radioGroup"},model:{value:t.locking.isLocking,callback:function(e){t.$set(t.locking,"isLocking",e)},expression:"locking.isLocking"}},[s("a-radio",{attrs:{value:1}},[t._v("正常")]),s("a-radio",{attrs:{value:2}},[t._v("锁定")])],1)],1),s("a-form-model-item",{ref:"remarks",attrs:{label:"状态备注",prop:"remarks"}},[s("a-textarea",{attrs:{rows:4,placeholder:"请输入状态备注","max-length":6},model:{value:t.locking.remarks,callback:function(e){t.$set(t.locking,"remarks",e)},expression:"locking.remarks"}})],1)],1)],1),s("a-modal",{attrs:{title:"导出"},scopedSlots:t._u([{key:"footer",fn:function(){return[s("div",{staticStyle:{display:"flex","justify-content":"flex-end"}},[s("a-button",{staticClass:"margin_right20",on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),s("download-excel",{attrs:{data:t.exportList,fields:t.tableDataName,name:"用户数据.xls"}},[s("a-button",{attrs:{type:"primary"},on:{click:function(e){t.visibleShow=!1}}},[t._v("确定")])],1)],1)]},proxy:!0}]),model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[s("p",[s("a-icon",{style:{fontSize:"16px",color:"#FF8200"},attrs:{type:"info-circle"}}),s("span",{staticStyle:{"margin-left":"10px"}},[t._v("确定要导出此数据吗?")])],1)]),s("router-view")],1)},i=[],o=(s("d3b7"),s("25f0"),s("a434"),s("b0c0"),s("313e")),r=s("3ced"),n=s("6ffe"),l=s("425c"),c=s("b893"),d={components:{MyPagination:n["a"],Treeselect:r["a"]},created:function(){Object(c["a"])("/adminv2/usercenter/lockUser")&&(this.isLockUser=!0),Object(c["a"])("/adminv2/usercenter/userDetail")&&(this.isUserDetail=!0),Object(c["a"])("/adminv2/usercenter/userList/export")&&(this.isExport=!0)},data:function(){return{isLockUser:!1,isUserDetail:!1,isExport:!1,form:{phone:"",channel:[],registerSource:void 0,courseName:void 0,vipStatus:void 0,registerDate:"",registerEndDate:"",vipEnd:void 0,gmv:void 0,gmval:"",lastPayStart:"",lastPayEnd:"",datePicker:[],datePickerArr:[],sortType:"",sortField:""},visible:!1,visibleShow:!1,spinning:!1,tableLoading:!1,expandedRowKeys:[],columns:[{title:"用户手机",dataIndex:"userName",key:"userName"},{title:"用户姓名",dataIndex:"nickName",key:"nickName",scopedSlots:{customRender:"nickName"}},{title:"会期状态",dataIndex:"vipStatus",key:"vipStatus",scopedSlots:{customRender:"vipStatus"}},{title:"所属渠道",dataIndex:"newestAgentName",key:"newestAgentName"},{title:"所在地",dataIndex:"phoneBelong",key:"phoneBelong"},{title:"注册方式",dataIndex:"source",key:"source",scopedSlots:{customRender:"source"}},{title:"注册时间",dataIndex:"registerTime",key:"registerTime"},{title:"最近付费时间",dataIndex:"lastPay",key:"lastPay",scopedSlots:{customRender:"lastPay"}},{title:"总GMV",dataIndex:"totalGmv",key:"totalGmv",sorter:!0},{title:"可用积分",dataIndex:"totalCredit",key:"totalCredit",sorter:!0},{title:"操作",dataIndex:"action",key:"action",width:"130px",scopedSlots:{customRender:"action"}}],tableList:[],locking:{userNo:"",name:"",phone:"",isLocking:1,remarks:""},rules:{isLocking:[{required:!0,message:"请选择账号状态",trigger:"change"}]},pageNo:1,pageSize:20,count:0,isDateShow:!0,exportList:[],tableDataName:{"用户手机号":"userName","用户姓名":"nickName","会期状态":{field:"vipStatus",callback:function(t){return 1==t?"仅注册":2==t?"会期内":3==t?"会期过期":"--"}},"所属渠道":"newestAgentName","所在地":"phoneBelong","注册方式":{field:"source",callback:function(t){return 1==t?"APP_Android":2==t?"APP_iOS":3==t?"直播_视频号":4==t?"直播_抖音":5==t?"直播预约小程序":6==t||6==t?"H5阅读大使推广二维码":7==t?"H5大使推广二维码":8==t?"人工操作":9==t?"历史注册":10==t?"H5官方网站":99==t?"其他":"--"}},"注册时间":"registerTime","最近付费时间":{field:"lastPay",callback:function(t){return"0001-01-01 00:00:00"==t?"--":t}},"总GMV":"totalGmv","可用积分":"totalCredit","购买商品/课程":{field:"buyCourse",callback:function(t){return t||"--"}},"会员VIP日期开始时间":{field:"vipStart",callback:function(t){return"0001-01-01 00:00:00"==t?"--":t}},"会员VIP日期结束时间":{field:"vipEnd",callback:function(t){return"0001-01-01 00:00:00"==t?"--":t}}},varsum:0,options:[]}},watch:{$route:function(t){if("/userManage/userList"===t.path){this.getTagList();var e=this.expandedRowKeys.toString();e&&this.init(e)}}},methods:{sorterFun:function(t,e,s){this.pageNo=1,this.pageSize=this.pageSize,this.form.sortType="ascend"==s.order?"asc":"descend"==s.order?"desc":"",this.form.sortField="totalGmv"==s.columnKey?"total_gmv":"total_credit",this.getTagList()},searchClick:function(){this.pageNo=1,this.pageSize=this.pageSize,this.options=[],this.getTagList();var t=this.expandedRowKeys.toString();t&&this.init(t)},resetClick:function(){this.pageNo=1,this.pageSize=this.pageSize,this.form.phone="",this.form.channel=[],this.form.registerSource=void 0,this.form.courseName=void 0,this.form.vipStatus=void 0,this.form.registerDate="",this.form.registerEndDate="",this.form.vipEnd=void 0,this.form.gmv=void 0,this.form.gmval="",this.form.lastPayStart="",this.form.lastPayEnd="",this.form.datePicker=[],this.form.datePickerArr=[],this.isDateShow=!1,this.getTagList()},init:function(t){var e=this;this.$nextTick((function(){e.appNum(t)}))},expandClick:function(t,e){if(t)if(this.expandedRowKeys.length>0){var s=this.expandedRowKeys.indexOf(e.userNo);s>-1?(this.expandedRowKeys.splice(s,1),this.init(e.userNo)):(this.expandedRowKeys.splice(0,this.expandedRowKeys.length),this.expandedRowKeys.push(e.userNo),this.init(e.userNo))}else this.expandedRowKeys.push(e.userNo),this.init(e.userNo);else{var a=this.expandedRowKeys.indexOf(e.id);this.expandedRowKeys.splice(a,1)}},gmvChange:function(t){0==t?this.form.gmval="":1==t?this.form.gmval="0,500":2==t?this.form.gmval="500,1000":3==t?this.form.gmval="1000,3000":4==t?this.form.gmval="3000,5000":5==t?this.form.gmval="5000,7000":6==t?this.form.gmval="7000,9000":7==t?this.form.gmval="9000,11000":8==t?this.form.gmval="11000,13000":9==t?this.form.gmval="13000,15000":10==t?this.form.gmval="15000,20000":11==t&&(this.form.gmval="20000")},treeDataChange:function(t){this.form.channel=t,this.isDateShow=!0},registerChange:function(t,e){""!=e[0]?(this.form.registerDate=e[0],this.form.registerEndDate=e[1]):(this.form.registerDate="",this.form.registerEndDate="")},onChangeDate:function(t,e){""!=e[0]?(this.form.lastPayStart=e[0],this.form.lastPayEnd=e[1]):(this.form.lastPayStart="",this.form.lastPayEnd="")},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},getTagList:function(){var t=this;this.form.phone?(this.tableLoading=!0,Object(l["n"])({phone:this.form.phone,channel:void 0==this.form.channel?"":this.form.channel.toString(),registerSource:void 0==this.form.registerSource?0:this.form.registerSource,courseName:void 0==this.form.courseName?"":this.form.courseName,vipStatus:void 0==this.form.vipStatus?0:this.form.vipStatus,registerDate:this.form.registerDate,registerEndDate:this.form.registerEndDate,lastPayStart:this.form.lastPayStart,lastPayEnd:this.form.lastPayEnd,vipEnd:void 0==this.form.vipEnd?0:this.form.vipEnd,gmv:this.form.gmval,sortField:this.form.sortType?this.form.sortField:"",sortType:this.form.sortType,pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(t.tableList=e.data.list,t.count=e.data.count),t.tableLoading=!1}))):this.tableList=[]},exportClick:function(){var t=this;Object(l["n"])({phone:this.form.phone,channel:void 0==this.form.channel?"":this.form.channel.toString(),registerSource:void 0==this.form.registerSource?0:this.form.registerSource,courseName:void 0==this.form.courseName?"":this.form.courseName,vipStatus:void 0==this.form.vipStatus?0:this.form.vipStatus,registerDate:this.form.registerDate,registerEndDate:this.form.registerEndDate,lastPayStart:this.form.lastPayStart,lastPayEnd:this.form.lastPayEnd,vipEnd:void 0==this.form.vipEnd?0:this.form.vipEnd,gmv:this.form.gmval,pageNo:this.pageNo,pageSize:0}).then((function(e){200===e.code&&(t.exportList=e.data.list,t.exportList.length>0?t.visibleShow=!0:t.$message.warning("暂无导出数据"))}))},appNum:function(t){var e=this;Object(l["f"])({userNo:t}).then((function(t){if(200===t.code){e.varsum=0;for(var s=[],a=[],i=t.data,o=0;o0){var s=this.expandedRowKeys.indexOf(e.userNo);s>-1?(this.expandedRowKeys.splice(s,1),this.init(e.userNo)):(this.expandedRowKeys.splice(0,this.expandedRowKeys.length),this.expandedRowKeys.push(e.userNo),this.init(e.userNo))}else this.expandedRowKeys.push(e.userNo),this.init(e.userNo);else{var a=this.expandedRowKeys.indexOf(e.id);this.expandedRowKeys.splice(a,1)}},gmvChange:function(t){0==t?this.form.gmval="":1==t?this.form.gmval="0,500":2==t?this.form.gmval="500,1000":3==t?this.form.gmval="1000,3000":4==t?this.form.gmval="3000,5000":5==t?this.form.gmval="5000,7000":6==t?this.form.gmval="7000,9000":7==t?this.form.gmval="9000,11000":8==t?this.form.gmval="11000,13000":9==t?this.form.gmval="13000,15000":10==t?this.form.gmval="15000,20000":11==t&&(this.form.gmval="20000")},treeDataChange:function(t){this.form.channel=t,this.isDateShow=!0},registerChange:function(t,e){""!=e[0]?(this.form.registerDate=e[0],this.form.registerEndDate=e[1]):(this.form.registerDate="",this.form.registerEndDate="")},onChangeDate:function(t,e){""!=e[0]?(this.form.lastPayStart=e[0],this.form.lastPayEnd=e[1]):(this.form.lastPayStart="",this.form.lastPayEnd="")},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},getTagList:function(){var t=this;this.tableLoading=!0,Object(l["n"])({phone:this.form.phone,channel:void 0==this.form.channel?"":this.form.channel.toString(),registerSource:void 0==this.form.registerSource?0:this.form.registerSource,courseName:void 0==this.form.courseName?"":this.form.courseName,vipStatus:void 0==this.form.vipStatus?0:this.form.vipStatus,registerDate:this.form.registerDate,registerEndDate:this.form.registerEndDate,lastPayStart:this.form.lastPayStart,lastPayEnd:this.form.lastPayEnd,vipEnd:void 0==this.form.vipEnd?0:this.form.vipEnd,gmv:this.form.gmval,sortField:this.form.sortType?this.form.sortField:"",sortType:this.form.sortType,pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(t.tableList=e.data.list,t.count=e.data.count),t.tableLoading=!1}))},exportClick:function(){var t=this;Object(l["n"])({phone:this.form.phone,channel:void 0==this.form.channel?"":this.form.channel.toString(),registerSource:void 0==this.form.registerSource?0:this.form.registerSource,courseName:void 0==this.form.courseName?"":this.form.courseName,vipStatus:void 0==this.form.vipStatus?0:this.form.vipStatus,registerDate:this.form.registerDate,registerEndDate:this.form.registerEndDate,lastPayStart:this.form.lastPayStart,lastPayEnd:this.form.lastPayEnd,vipEnd:void 0==this.form.vipEnd?0:this.form.vipEnd,gmv:this.form.gmval,pageNo:this.pageNo,pageSize:0}).then((function(e){200===e.code&&(t.exportList=e.data.list,t.exportList.length>0?t.visibleShow=!0:t.$message.warning("暂无导出数据"))}))},appNum:function(t){var e=this;Object(l["f"])({userNo:t}).then((function(t){if(200===t.code){e.varsum=0;for(var s=[],a=[],i=t.data,o=0;om)throw TypeError(v);for(d=l(k,a),u=0;uy-a+s;u--)delete k[u-1]}else if(s>a)for(u=y-a;u>_;u--)g=u+a-1,f=u+s-1,g in k?k[f]=k[g]:delete k[f];for(u=0;u