| 1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_manage/components/memberIndex"],{762:function(t,e,s){"use strict";s.r(e);var i=s(763),n=s(765);for(var o in n)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return n[t]}))}(o);s(767);var a,r=s(34),c=Object(r["default"])(n["default"],i["render"],i["staticRenderFns"],!1,null,"6c682f20",null,!1,i["components"],a);c.options.__file="pages_manage/components/memberIndex.vue",e["default"]=c.exports},763:function(t,e,s){"use strict";s.r(e);var i=s(764);s.d(e,"render",(function(){return i["render"]})),s.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),s.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),s.d(e,"components",(function(){return i["components"]}))},764:function(t,e,s){"use strict";var i;s.r(e),s.d(e,"render",(function(){return n})),s.d(e,"staticRenderFns",(function(){return a})),s.d(e,"recyclableRender",(function(){return o})),s.d(e,"components",(function(){return i}));try{i={uSubsection:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-subsection/u-subsection")]).then(s.bind(null,908))},uSearch:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-search/u-search")]).then(s.bind(null,837))},uTabs:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(s.bind(null,703))},uIcon:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(s.bind(null,694))},uPopup:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(s.bind(null,740))},uTag:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-tag/u-tag")]).then(s.bind(null,668))},uCheckboxGroup:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(s.bind(null,877))},uCheckbox:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-checkbox/u-checkbox")]).then(s.bind(null,885))},uModal:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(s.bind(null,853))},uInput:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-input/u-input")]).then(s.bind(null,861))},uOverlay:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-overlay/u-overlay")]).then(s.bind(null,1046))},uPicker:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-picker/u-picker")]).then(s.bind(null,900))},uLoadingPage:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-loading-page/u-loading-page")]).then(s.bind(null,815))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var n=function(){var t=this,e=t.$createElement,s=(t._self._c,0==t.current?t.showCompanytag.length:null),i=t.$u.timeFormat((new Date).getTime()-31536e6,"yyyy-mm-dd"),n=t.$u.timeFormat((new Date).getTime(),"yyyy-mm-dd"),o=t.companytag.length;t._isMounted||(t.e0=function(e){return t.$refs.calendar.open()},t.e1=function(e){return t.$refs.calendar.open()},t.e2=function(e){t.triggereds=!1},t.e3=function(e){t.triggereds=!1},t.e4=function(e){return t.pageOptions=e},t.e5=function(e){return t.status=e},t.e6=function(e){t.projectbox=!1},t.e7=function(e){t.triggeredsA=!1},t.e8=function(e){t.triggeredsA=!1},t.e9=function(e){t.showTagSelect=!t.showTagSelect},t.e10=function(e){t.invitePop=!1},t.e11=function(e){t.invitePop=!1},t.e12=function(e){t.showzhidao=!1},t.e13=function(e){t.showcol=!t.showcol}),t.$mp.data=Object.assign({},{$root:{g0:s,g1:i,g2:n,g3:o}})},o=!1,a=[];n._withStripped=!0},765:function(t,e,s){"use strict";s.r(e);var i=s(766),n=s.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},766:function(t,e,s){"use strict";(function(t,i){var n=s(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(s(18)),a=n(s(11)),r=s(290);function c(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function u(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?c(Object(s),!0).forEach((function(e){(0,a.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):c(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var h=function(){s.e("pages_manage/components/vipUserItem").then(function(){return resolve(s(1088))}.bind(null,s)).catch(s.oe)},l=function(){s.e("pages_manage/components/dropdownPanel").then(function(){return resolve(s(823))}.bind(null,s)).catch(s.oe)},d={components:{vipUserItem:h,dropdownPanel:l},data:function(){return{viewload:!0,loadingtext:"数据加载中...",showcol:!1,setImg:!1,columns:[],showTagSelect:!1,list:[{name:"会员(0)"},{name:"小黑屋(0)"},{name:"黑名单(0)"}],userList:[],current:0,keyword:"",companytag:[],showCompanytag:[],selectedList:[],list2:[{name:"全部"},{name:"今日新增"},{name:"今日完播"},{name:"未看过课"}],currentType:0,activeStyle:{color:"#1677ff",fontSize:"14px",fontWeight:"bold"},inactiveStyle:{fontSize:"14px"},searchTypeIndex:0,typeArrays:["连续缺课天数多到少","连续缺课天数少到多","按注册时间晚到早","会员姓名0-9-A-Z"],typeArray:["按注册时间晚到早","会员姓名0-9-A-Z"],typeoption:["注册时间","会员姓名"],array:[{value:"0",name:"关联搜索"},{value:"1",name:"精准搜索"}],typeIndex:0,popTitle:"搜索选择",showPop:!1,filterData:[{name:"销售",value:0,type:"userStatus",option:[{label:"全部",id:""}]},{name:"注册",value:1,type:"registerTime",option:[{label:"全部"},{label:"今天"},{label:"昨天"},{label:"近7天"},{label:"自定义"}]},{name:"看课",value:2,type:"watchStatus",option:[{label:"全部"},{label:"未看过课"},{label:"正常看课"},{label:"停止看课"}]},{name:"缺课",value:3,type:"courseStatus",option:[{label:"全部"},{label:"已缺课"},{label:"未缺课"}]},{name:"项目",value:4,type:"project",option:[{label:"全部",id:""}]},{name:"批量",value:5,type:"piliang",special:!0,stopPrevent:!0}],searchbarNav:0,userStatusIndex:0,registerTimeIndex:0,watchStatusIndex:0,courseStatusIndex:0,projectStatusIndex:0,selprojectId:"",showCalendar:!1,date:"",mode:"range",queryParam:{typeIndex:0,startTime:"",endTime:""},mescroll:null,downOption:{use:!0,auto:!1},upOption:{onScroll:!1,use:!0,auto:!0,page:{pae:0,size:10},noMoreSize:10,textNoMore:"已经到底了",empty:{icon:"https://cos.his.cdwjyyh.com/fs/20240423/cf4a86b913a04341bb44e34bb4d37aa2.png",tip:"暂无数据"}},dataList:[],invitePop:!1,setTimeShow:!1,time:"",user:{},idx:[],todayday:t.$u.timeFormat(new Date,"yyyy-mm-dd"),startTime:"",endTime:"",isShowSelectAll:!1,isSelectAll:!1,ispopshow:!1,selectidAll:[],changetag:[],selectidtag:"",itemname:"",userid:"",groupid:[],pageOptions:{pageNum:1,pageSize:8},status:"loadmore",sharetag:1,sharetaglist:[],codeLink:[],zhanshitag:"",copyLinks:"",showzhidao:!1,imgs:this.$store.state.imgpath+"/app/image/logoshare.png",currentIsBlack:1,tagpageNum:1,tagpageSize:16,triggereds:!1,statusA:"loadmore",isEnableds:!0,pagetag:[],tagkeywords:"",salesid:"",tagchangekeywords:"",tagpageNums:1,tagpageSizes:16,triggeredsA:!1,statusAs:"loadmore",isEnabledsA:!0,pagetagA:[],tops:"464rpx",showInvite:!1,vipInviteshow:!1,projectbox:!1,projectList:{},projectId:"",projectCode:""}},mounted:function(){this.getsalelist(),this.user=t.getStorageSync("companyUserInfo")?JSON.parse(t.getStorageSync("companyUserInfo")):{},this.getvipListnum(),this.userList=[],this.getfsuserListdata(),this.getprojectlistsA()},onShow:function(){},computed:{selectedCount:function(){return this.userList.filter((function(t){return t.checked})).length},imgPath:function(){return this.$store.state.imgpath},imgname:function(){return this.$store.state.logoname}},methods:{getlinkCodes:function(){var t=this;(0,r.getlinkCode)().then((function(e){e.code&&(t.projectCode=e.code,console.log(t.projectCode),setTimeout((function(){t.setlnk()}),100))}))},setlnk:function(){var e={companyId:this.user.companyId,companyUserId:this.user.userId,tagids:this.sharetaglist,projectCode:this.projectCode,projectId:this.projectId},s="/pages_course/becomeVIP?becomeVip="+JSON.stringify(e);console.log(s);var i={appid:this.appid,linkStr:s};(0,r.copyuniLink)(i).then((function(e){200==e.code?(t.hideLoading(),setTimeout((function(){t.setClipboardData({data:e.data,success:function(){t.showToast({title:"链接已复制",icon:"none",duration:2e3})},fail:function(){t.showToast({title:"复制失败",icon:"none"})}})}),200)):(t.hideLoading(),t.showToast({title:e.msg,icon:"none"}))}))},copyPageLink:function(){t.showLoading({title:"处理中..."}),this.getlinkCodes()},submitPro:function(){if(""!=this.projectId){this.projectbox=!1,this.invitePop=!0;var e="/pages_course/becomeVIP?companyId="+this.user.companyId+"&projectId="+this.projectId+"&companyUserId="+this.user.userId+"&tagids="+this.sharetaglist;this.$emit("childEvent",e)}else t.showToast({title:"请选择项目",icon:"none",duration:1e3})},selproject:function(t){this.projectId=t.dictValue},getprojectlistsA:function(){var e=this,s=this.filterData[4].option,i={key:"sys_course_project"};(0,r.getprojectlist)(i).then((function(i){if(200==i.code){var n=i.data;e.filterData[4].option=s.concat(n.map((function(t){return{id:t.dictValue,label:t.dictLabel}}))),console.log("1212121212",e.filterData[4].option)}else t.showToast({title:i.msg,icon:"none"})}))},getprojectlists:function(){var t=this,e={key:"sys_course_project"};(0,r.getprojectlist)(e).then((function(e){t.projectList=e.data.map((function(t){return u(u({},t),{},{checked:!1})})),console.log(t.projectList)}))},sharecard:function(){console.log(11)},changetagall:function(){this.showTagSelect=!this.showTagSelect,this.tagchangekeywords="",this.selectidtag="",this.showInvite=!1,this.sharetag=1,this.getalltagtaglist()},getTagpageS:function(e){"last"==e?this.tagpageNums>=2?(this.tagpageNums--,this.getalltagtaglist()):t.showToast({title:"已经是第一页",icon:"none",duration:1e3}):this.tagpageNums<this.pagetagA.pages?(this.tagpageNums++,this.getalltagtaglist()):t.showToast({title:"已经是最后一页",icon:"none",duration:1e3})},getcompanyTags:function(t){this.tagchangekeywords=t,this.getalltagtaglist()},singleDelete:function(t){this.pageOptions.pageNum=1,this.$emit("update:parentValue","新值"),this.userList=[],this.selectidAll[0]=t,this.changeblack()},changeblack:function(){var e=this;this.selectidAll.length<1?t.showToast({icon:"none",title:"所选列表为空"}):(0,r.removebalcklist)(this.selectidAll).then((function(s){if(200==s.code){e.pageOptions.pageNum=1,e.getfsuserListdata("refresh");setTimeout((function(){t.showToast({icon:"none",title:"取消禁用成功"})}),200);e.getvipListnum(),e.isShowSelectAll=!1,e.isSelectAll=!1}else t.showToast({icon:"none",title:s.msg})}))},blackSel:function(){this.isShowSelectAll=!this.isShowSelectAll},getsalelist:function(){var e=this,s=this.filterData[0].option;(0,r.getusersales)().then((function(i){if(200==i.code){var n=i.data;e.filterData[0].option=s.concat(n.map((function(t){return{id:t.userId,label:t.nickName}})))}else t.showToast({title:i.msg,icon:"none"})}))},getTagpage:function(e){"last"==e?this.tagpageNum>=2?(this.tagpageNum--,this.getcompanyTag()):t.showToast({title:"已经是第一页",icon:"none",duration:1e3}):this.tagpageNum<this.pagetag.pages?(this.tagpageNum++,this.getcompanyTag()):t.showToast({title:"已经是最后一页",icon:"none",duration:1e3})},pullDownRefreshs:function(){var e=this;this.triggereds=!0,setTimeout((function(){e.triggereds=!1,t.stopPullDownRefresh(),e.tagpageNum=1,e.getcompanyTag("refresh")}),1e3)},getjssdklist:function(){var t={url:window.location.href};getSDK(t).then((function(t){i.config({appId:t.data.appId,timestamp:t.data.timestamp,nonceStr:t.data.nonceStr,signature:t.data.signature,jsApiList:["updateAppMessageShareData"]})}))},shareimg:function(){this.getlink();var e=this;i.ready((function(){i.updateAppMessageShareData({title:e.user.userName+"邀请您成为会员",desc:e.user.deptName,link:e.copyLinks,imgUrl:e.codeLink.url||e.imgs,success:function(s){e.showzhidao=!0,e.setImg=!1,e.showShare=!1,t.showToast({title:"卡片已生成",icon:"none",duration:1e3})},fail:function(e){console.log(e),t.showToast({title:"卡片生成失败,请重试",icon:"none",duration:2e3})}})}))},downimg:function(){},closeimg:function(){this.setImg=!1,this.invitePop=!1},buildimg:function(){this.setImg=!this.setImg,this.getshareimg()},addtag:function(t){this.sharetag=t,this.showTagSelect=!this.showTagSelect,this.invitePop=!this.invitePop,this.showInvite=!0,this.getalltagtaglist()},changevipuser:function(){this.showcol=!this.showcol,this.getgrouplist()},getgrouplist:function(){var e=this;(0,r.getgroupList)().then((function(s){200==s.code?e.columns=[s.data]:t.showToast({icon:"none",title:s.msg})}))},changeall:function(){console.log(1);var e={companyId:this.user.companyId,companyUserId:this.userid,userId:this.groupid};(0,r.changevipUser)(e).then((function(e){200==e.code?t.showToast({icon:"none",title:"更换会员归属成功"}):t.showToast({icon:"none",title:e.msg})}))},receiveA:function(t){var e=this;console.log(t),this.userid=t.value[0].userId,1==this.isShowSelectAll?(this.groupid=this.selectidAll,this.changeall(),this.showcol=!this.showcol,setTimeout((function(){e.getfsuserListdata()}),200)):(this.changeall(),this.showcol=!this.showcol,this.getfsuserListdata()),this.isSelectAll=!1},getvipListnum:function(){var e=this;(0,r.getvipNum)().then((function(s){200==s.code?(e.list[0].name="会员("+s.data.number+")",e.list[1].name="小黑屋("+s.data.smallBlackNum+")",e.list[2].name="黑名单("+s.data.blackNum+")"):t.showToast({icon:"none",title:s.msg})}))},getactNav:function(t){5==t.value?(this.itemname=t.name,this.isShowSelectAll=!this.isShowSelectAll):this.isShowSelectAll=!1},closetagselect:function(){this.showTagSelect=!this.showTagSelect},suretagchangeAll:function(){if(0==this.sharetag){this.sharetaglist=this.changetag.filter((function(t){return t.checked})).map((function(t){return t.tagId})).join(","),this.showTagSelect=!this.showTagSelect,this.zhanshitag=this.changetag.filter((function(t){return t.checked})).map((function(t){return t.tag})).join(",");var e="/pages_course/becomeVIP?companyId="+this.user.companyId+"&projectId="+this.projectId+"&companyUserId="+this.user.userId+"&tagids="+this.sharetaglist;this.$emit("childEvent",e),console.log(e)}else{if(this.showTagSelect=!this.showTagSelect,0==this.selectidAll.length)return void t.showToast({icon:"none",title:"未选中用户"});this.selectidtag=this.changetag.filter((function(t){return t.checked})).map((function(t){return t.tagId})),this.changeLabelmore()}this.showInvite&&(this.invitePop=!0)},singleChangeLable:function(t){this.showTagSelect=!this.showTagSelect,this.selectidAll[0]=t,this.tagchangekeywords="",this.selectidtag=[],this.sharetag=1,this.showInvite=!1,this.getalltagtaglist()},getalltagtaglist:function(e){var s=this,i={pageNum:this.tagpageNums,pageSize:this.tagpageSizes,keyword:this.tagchangekeywords};(0,r.getallTags)(i).then((function(e){if(200==e.code){var i=e.data.list.map((function(t){return u(u({},t),{},{checked:!1})}));s.changetag=i,e.data.isLastPage?s.statusAs="nomore":s.statusAs="loadmore",s.pagetagA=e.data}else t.showToast({icon:"none",title:e.msg})}))},changesinglevip:function(t){this.showcol=!this.showcol,this.groupid[0]=t,this.getgrouplist()},changeLabelmore:function(){var e=this,s={tagIds:this.selectidtag,userCompanyUserIds:this.selectidAll};(0,r.changeLable)(s).then((function(s){if(200==s.code){e.userList=[],e.getfsuserListdata("refresh");setTimeout((function(){t.showToast({icon:"none",title:"标签更改成功"})}),500);e.isSelectAll=!1,e.selectedCount=0}else t.showToast({icon:"none",title:s.msg})}))},changeOwnership:function(){},getcompanyTag:function(e){var s=this;this.companytag=[],this.tagkeywords=this.tagkeywords.replace(/,/g,",");var i={pageNum:this.tagpageNum,pageSize:this.tagpageSize,keyword:this.tagkeywords};(0,r.getcompanyTaglist)(i).then((function(i){if(200==i.code){var n=i.data.list.map((function(t){return u(u({},t),{},{checked:!1})}));s.companytag="refresh"==e?n:[].concat((0,o.default)(s.companytag),(0,o.default)(n)),i.data.isLastPage?s.statusA="nomore":s.statusA="loadmore",s.pagetag=i.data}else t.showToast({icon:"none",title:i.msg})}))},getfsuserListdata:function(e){var s=this,i=u({userId:this.user.userId,tabValue:this.currentType,registerStartTime:this.startTime,registerEndTime:this.endTime,watchCourseType:this.watchStatusIndex,missCourseStatus:this.courseStatusIndex,projectId:this.selprojectId,keyword:this.keyword,tagIds:this.idx,status:this.currentIsBlack,companyUserId:this.salesid,continueMissCourseSort:this.searchTypeIndex},this.pageOptions);(0,r.getfsuserList)(i).then((function(i){if(200==i.code){s.viewload=!1;var n=i.data.list.map((function(t){return u(u({},t),{},{checked:!1})}));s.userList="refresh"==e||"more"==e?n:[].concat((0,o.default)(s.userList),(0,o.default)(n)),i.data.isLastPage?s.status="nomore":s.status="loadmore"}else t.showToast({icon:"none",title:i.msg})}))},onChange:function(t){5!=t&&(this.searchbarNav=t)},searchKeyword:function(t){this.keyword=t,this.userList=[],this.pageOptions.pageNum=1,this.getfsuserListdata()},singleChange:function(t){this.userList=[],this.selectidAll[0]=t,this.changeProhibit()},changeProhibit:function(){var e=this;this.selectidAll.length<1?t.showToast({icon:"none",title:"所选列表为空"}):(0,r.Addblacklist)(this.selectidAll).then((function(s){if(200==s.code){e.pageOptions.pageNum=1,e.getfsuserListdata("refresh");setTimeout((function(){t.showToast({icon:"none",title:"禁用成功"})}),200);e.getvipListnum(),e.isSelectAll=!1}else t.showToast({icon:"none",title:s.msg})}))},selectAll:function(){var t=this;this.isSelectAll=!this.isSelectAll,console.log(this.isSelectAll),this.userList=this.userList.map((function(e){return u(u({},e),{},{checked:t.isSelectAll})})),this.selectidAll=this.userList.filter((function(t){return t.checked})).map((function(t){return t.userCompanyUserId})),console.log(this.isSelectAll)},changeItem:function(t){var e=this,s=u(u({},this.userList[t]),{},{checked:!this.userList[t].checked});this.$set(this.userList,t,s),this.selectidAll=this.userList.filter((function(t){return t.checked})).map((function(t){return t.userCompanyUserId})),console.log(this.selectidAll),this.isSelectAll=this.userList.every((function(t){return t.checked})),this.isSelectAll&&(this.userList=this.userList.map((function(t){return u(u({},t),{},{checked:e.isSelectAll})}))),this.selectidAll=this.userList.filter((function(t){return t.checked})).map((function(t){return t.userCompanyUserId}))},reset:function(){var t=this.filterData[this.searchbarNav].type;console.log(this.registerTimeIndex),"registerTime"==t?(this.registerTimeIndex="",this.endTime="",this.startTime="",this.getfsuserListdata("refresh")):"watchStatus"==t?(this.watchStatusIndex=0,this.getfsuserListdata("refresh")):"userStatus"==t?(this.userStatusIndex=0,this.salesid="",this.getfsuserListdata("refresh")):"courseStatus"==t?(this.courseStatusIndex=0,this.getfsuserListdata("refresh")):"project"==t&&(this.selprojectId="",this.projectStatusIndex=0,this.getfsuserListdata("refresh"))},confirm:function(e){this.pageOptions.pageNum=1,this.userList=[];var s=this.filterData[this.searchbarNav].type,i=this.registerTimeIndex;if("registerTime"==s)if(0==i)this.startTime="",this.endTime="",this.getfsuserListdata("refresh");else if(1==i)this.startTime=this.todayday+" 00:00:00",this.endTime=this.todayday+" 23:59:59",this.getfsuserListdata("refresh");else if(2==i){var n=new Date;n.setDate(n.getDate()-1),this.startTime=t.$u.timeFormat(n,"yyyy-mm-dd")+" 00:00:00",this.endTime=t.$u.timeFormat(n,"yyyy-mm-dd")+" 23:59:59",this.getfsuserListdata("refresh")}else if(3==i){var o=new Date;o.setDate(o.getDate()-6),this.startTime=t.$u.timeFormat(o,"yyyy-mm-dd")+" 00:00:00",this.endTime=this.todayday+" 23:59:59",this.getfsuserListdata("refresh")}else this.getfsuserListdata("refresh");else"watchStatus"==s?this.getfsuserListdata():"userStatus"==s?0==this.userStatusIndex?(this.salesid="",this.getfsuserListdata("refresh")):this.getfsuserListdata("refresh"):"courseStatus"==s?(this.getfsuserListdata("refresh"),console.log(this.courseStatusIndex)):"project"==s&&(0==this.projectStatusIndex?(this.selprojectId="",this.getfsuserListdata("refresh")):this.getfsuserListdata("refresh"),console.log(this.projectStatusIndex))},handleParamItem:function(t,e,s){"registerTime"==t?this.registerTimeIndex=e:"watchStatus"==t?this.watchStatusIndex=e:"userStatus"==t?(this.userStatusIndex=e,this.salesid=s,console.log(this.salesid)):"courseStatus"==t?this.courseStatusIndex=e:"project"==t?(this.selprojectId=s,this.projectStatusIndex=e):this.ispopshow=!1},sectionChange:function(t){this.current=t,this.currentType=0,this.startTime="",this.endTime="",this.watchStatusIndex=0,this.salesid="",this.courseStatusIndex=0,this.selprojectId="",this.keyword="",this.idx=[],this.pageOptions.pageNum=1,this.isShowSelectAll=!1,this.userList=[],0==t?(this.currentIsBlack=1,this.getfsuserListdata("refresh")):1==t?(this.currentIsBlack=0,this.getfsuserListdata("refresh")):(this.currentIsBlack=2,this.getfsuserListdata("refresh")),this.isSelectAll=!1,this.getvipListnum()},clickTypeTab:function(t){this.currentType=t.index,this.userList=[],this.pageOptions.pageNum=1,this.getfsuserListdata()},bindPickerChange:function(t){console.log("picker发送选择改变,携带值为",t.detail.value),this.userList=[],this.searchTypeIndex=t.detail.value,this.getfsuserListdata()},openPop:function(t){this.popTitle="search"==t?"搜索选择":"tag"==t?"标签筛选":"",this.typeIndex=this.queryParam.typeIndex,this.showPop=!0,"tag"==t&&this.getcompanyTag()},closePop:function(){this.showPop=!1},resetPop:function(t){var e=this;this.idx=[],this.tagkeywords="",this.tagpageNum=1,this.showCompanytag=[],this.companytag.forEach((function(t){t.checked=!1})),this.showPop=!1,this.$nextTick((function(){e.getcompanyTag(),e.getfsuserListdata()}))},closeCalendar:function(){this.showCalendar=!1},confirmCalendar:function(t){this.showCalendar=!1,this.queryParam.startTime=t.range.after,this.queryParam.endTime=t.range.before,this.endTime=t.range.before+" 23:59:59",this.startTime=t.range.after+" 00:00:00",console.log(t)},bindTypeChange:function(t){this.typeIndex=t},confirmPop:function(){var t=this;this.queryParam.typeIndex=this.typeIndex,this.showPop=!1,this.showCompanytag=this.companytag.filter((function(t){return t.checked})),this.idx=this.showCompanytag.map((function(t){return t.tagId})),0==this.idx.length&&(this.showCompanytag=this.companytag),this.$nextTick((function(){t.getfsuserListdata("refresh")}))},chooseTag:function(t){this.companytag[t].checked=!this.companytag[t].checked},choosechangeTag:function(t){this.changetag[t].checked=!this.changetag[t].checked},vipInvite:function(){this.vipInviteshow?this.vipInviteshow=!1:(this.getprojectlists(),this.projectId="",this.projectbox=!0,this.sharetaglist=null)},showinimg:function(){this.vipInviteshow=!0},copyLink:function(){this.setTimeShow=!0},confirmTime:function(){this.setTimeShow=!1,this.showShare=!1,console.log(this.showInvite),this.getshareLink()},getshareimg:function(){var e=this;this.getlink(),this.codeLink="",t.showLoading({title:"正在生成中..."});var s=window.location.href.split("#")[0],i={companyId:this.user.companyId,companyUserId:this.user.userId,realLink:s+"#/pages/user/users/becomeVIP?companyId="+this.user.companyId+"&companyUserId="+this.user.userId+"&tagids="+this.sharetaglist,tagIds:this.sharetaglist};(0,r.becomeVipuserImg)(i).then((function(s){200==s.code?(e.codeLink=s.posterImage,console.log(s)):t.showToast({title:s.msg,icon:"none",duration:2e3})}))},getlink:function(t){this.user.companyId,this.user.userId,this.sharetaglist,this.time;var e=window.location.href.split("#")[0];this.copyLinks=e+"#/pages/user/users/becomeVIP?companyId="+this.user.companyId+"&companyUserId="+this.user.userId+"&tagids="+this.sharetaglist},getshareLink:function(){var e=this;this.copyLinks=[];this.user.companyId,this.user.userId,this.sharetaglist,this.time;var s=window.location.href.split("#")[0];console.log(s),this.copyLinks=s+"#/pages/user/users/becomeVIP?companyId="+this.user.companyId+"&companyUserId="+this.user.userId+"&tagids="+this.sharetaglist,console.log(this.copyLinks),setTimeout((function(){t.setClipboardData({data:String(e.copyLinks),success:function(){t.showToast({title:"复制成功",icon:"none",duration:2e3}),setTimeout((function(){e.invitePop=!1}),200)}})}),100)},mescrollInit:function(t){this.mescroll=t},downCallback:function(t){t.resetUpScroll()},upCallback:function(e){this.courseId,e.num,e.size;t.showLoading({title:"加载中..."})}}};e.default=d}).call(this,s(2)["default"],s(1)["default"])},767:function(t,e,s){"use strict";s.r(e);var i=s(768),n=s.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},768:function(t,e,s){}}]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_manage/components/memberIndex.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages_manage/components/memberIndex-create-component',
- {
- 'pages_manage/components/memberIndex-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(762))
- })
- },
- [['pages_manage/components/memberIndex-create-component']]
- ]);
|