manageDataDetail.js 11 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_manage/manageDataDetail"],{311:function(e,t,o){"use strict";(function(e,t){var n=o(4);o(26);n(o(25));var i=n(o(312));e.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o(1)["default"],o(2)["createPage"])},312:function(e,t,o){"use strict";o.r(t);var n=o(313),i=o(315);for(var s in i)["default"].indexOf(s)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(s);o(317);var u,r=o(34),a=Object(r["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],u);a.options.__file="pages_manage/manageDataDetail.vue",t["default"]=a.exports},313:function(e,t,o){"use strict";o.r(t);var n=o(314);o.d(t,"render",(function(){return n["render"]})),o.d(t,"staticRenderFns",(function(){return n["staticRenderFns"]})),o.d(t,"recyclableRender",(function(){return n["recyclableRender"]})),o.d(t,"components",(function(){return n["components"]}))},314:function(e,t,o){"use strict";var n;o.r(t),o.d(t,"render",(function(){return i})),o.d(t,"staticRenderFns",(function(){return u})),o.d(t,"recyclableRender",(function(){return s})),o.d(t,"components",(function(){return n}));try{n={uAvatar:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(o.bind(null,514))},uTabs:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(o.bind(null,628))},uSearch:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-search/u-search")]).then(o.bind(null,666))},uLoadmore:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(o.bind(null,604))},uCollapse:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-collapse/u-collapse")]).then(o.bind(null,612))},uCollapseItem:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-collapse-item/u-collapse-item")]).then(o.bind(null,620))},uIcon:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(o.bind(null,505))},uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,561))},uModal:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(o.bind(null,682))},uInput:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-input/u-input")]).then(o.bind(null,690))},uLoadingPage:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-loading-page/u-loading-page")]).then(o.bind(null,644))}}}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 i=function(){var e=this,t=e.$createElement,o=(e._self._c,e.collapseValue.includes("course")),n=e.collapseValue.includes("redenvelope"),i=e.collapseValue.includes("live");e._isMounted||(e.e0=function(t){e.triggeredC=!1},e.e1=function(t){e.triggeredC=!1},e.e2=function(t){e.triggereds=!1},e.e3=function(t){e.triggereds=!1},e.e4=function(t){e.triggered=!1},e.e5=function(t){e.triggered=!1},e.e6=function(t){e.showmore=!0}),e.$mp.data=Object.assign({},{$root:{g0:o,g1:n,g2:i}})},s=!1,u=[];i._withStripped=!0},315:function(e,t,o){"use strict";o.r(t);var n=o(316),i=o.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},316:function(e,t,o){"use strict";(function(e){var n=o(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(o(18)),s=o(274),u=function(){o.e("pages_manage/components/dropdownPanel").then(function(){return resolve(o(652))}.bind(null,o)).catch(o.oe)},r={components:{dropdownPanel:u},data:function(){return{viewload:!0,loadingtext:"数据加载中...",changeremark:"",changephone:"",list1:[{name:"课程分析"},{name:"销售数据"}],filterData:[{name:"训练营-营期",value:0},{name:"课程",value:1}],searchbarNav:0,showCont:0,collapseValue:["course","questions","redenvelope","live","funnel"],showmore:!1,morelist:[{name:"复制ID",value:0,text:""},{name:"改姓名",value:1,text:"请输入姓名"},{name:"改手机号码",value:2,text:"请输入手机号码"},{name:"改备注",value:3,text:"请输入备注"}],showlist:!1,titlelist:"",contpl:"",changelist:"",groupid:0,courseid:"",courseids:"",courseOne:[],courseTwo:[],triggereds:!1,statusA:"loadmore",isEnableds:!0,pageNums:1,pageSizes:5,redprice:"",companyUserCount:[],redbaglist:[],courseCount:[],answerlist:[],courselist:[],triggered:!1,status:"loadmore",isEnabled:!0,pageNum:1,pageSize:3,grouplist:[],selnum:0,keyword:"",triggeredC:!1,statusC:"loadmore",isEnabledC:!0,pageNumC:1,pageSizeC:10,keywordC:""}},onLoad:function(e){this.groupid=e.id},computed:{imgPath:function(){return this.$store.state.imgpath}},mounted:function(){this.user=e.getStorageSync("companyUserInfo")?JSON.parse(e.getStorageSync("companyUserInfo")):{},this.grouplist=e.getStorageSync("grouplist"),this.getvipcount(),this.getcout(),this.getcoursegroup(),this.getgroupdetail()},methods:{getcompanyTagC:function(e){this.keywordC=e,this.getCourseList()},pullDownRefreshC:function(){var t=this;this.triggeredC=!0,setTimeout((function(){t.triggeredC=!1,e.stopPullDownRefresh(),t.pageNumC=1,t.getCourseList("refresh")}),1e3)},reachBottomC:function(){var t=this;"loadmore"===this.statusC&&(this.statusC="loading",e.showNavigationBarLoading(),setTimeout((function(){t.pageNumC++,t.getCourseList(),e.hideNavigationBarLoading()}),1e3))},getcompanyTag:function(e){this.keyword=e,this.getCourseListsmall()},copyId:function(){var t=this;e.setClipboardData({data:String(this.grouplist.nickName),success:function(){e.showToast({title:"用户昵称复制成功",icon:"none",duration:2e3}),t.showmore=!1}})},copyCourseId:function(t){console.log(t),e.setClipboardData({data:String(t),success:function(){e.showToast({title:"课程标题复制成功",icon:"none",duration:2e3})}})},getgroupdetail:function(){var e=this,t={companyUserId:this.groupid};(0,s.getGroupDetail)(t).then((function(t){e.grouplist=t.data}))},updatagroup:function(){console.log(Number(this.groupid));var t={nickName:this.changelist,phoneNumber:this.changephone,remark:this.changeremark,userId:this.groupid};(0,s.updategroupinfo)(t).then((function(t){200==t.code?e.showToast({icon:"none",title:"修改成功"}):e.showToast({icon:"none",title:t.msg})}))},pullDownRefresh:function(){var t=this;this.triggered=!0,setTimeout((function(){t.triggered=!1,e.stopPullDownRefresh(),t.pageNum=1,t.getcoursegroup("refresh")}),1e3)},reachBottom:function(){var t=this;"loadmore"===this.status&&(this.status="loading",e.showNavigationBarLoading(),setTimeout((function(){t.pageNum++,t.getcoursegroup(),e.hideNavigationBarLoading()}),1e3))},getcoursegroup:function(t){var o=this,n={companyUserId:this.groupid,periodId:this.courseid,videoId:this.courseids,pageNum:this.pageNum,pageSize:this.pageSize};(0,s.getcourseList)(n).then((function(n){console.log(n),200==n.code?(o.viewload=!1,o.courselist="refresh"==t?n.data.list:[].concat((0,i.default)(o.courselist),(0,i.default)(n.data.list)),o.pageNum>=n.data.pages?o.status="nomore":o.status="loadmore"):e.showToast({icon:"none",title:n.msg})}))},getcout:function(){var e={companyUserId:this.groupid,periodId:this.courseid,videoId:this.courseids};this.getCourselist(e)},getCourselist:function(t){var o=this;(0,s.getmanagecourse)(t).then((function(t){200==t.code?o.courseCount=t.data:e.showToast({icon:"none",title:t.msg})}))},getvipcount:function(){var t=this,o={companyUserId:this.groupid};(0,s.getmanagepopnum)(o).then((function(o){200==o.code?t.companyUserCount=o.data:e.showToast({icon:"none",title:o.msg})}))},pullDownRefreshs:function(){var t=this;this.triggereds=!0,setTimeout((function(){t.triggereds=!1,e.stopPullDownRefresh(),t.pageNums=1,t.getCourseListsmall("refresh")}),1e3)},reachBottoms:function(){var t=this;"loadmore"===this.statusA&&(this.statusA="loading",e.showNavigationBarLoading(),setTimeout((function(){t.pageNums++,t.getCourseListsmall(),e.hideNavigationBarLoading()}),1e3))},getCourseOne:function(e){this.courseid=e},getCourseTwo:function(e){this.courseids=e},getCourseList:function(t){var o=this;this.courseOne=[];var n={keyword:this.keywordC,pageNum:this.pageNumC,pageSize:this.pageSizeC};(0,s.getFsCourseList)(n).then((function(n){200==n.code?(o.courseOne="refresh"==t?n.data.list:[].concat((0,i.default)(o.courseOne),(0,i.default)(n.data.list)),n.data.isLastPage?o.statusC="nomore":o.statusC="loadmore"):e.showToast({icon:"none",title:n.msg})}))},getCourseListsmall:function(e){var t=this,o={periodId:this.courseid,pageNum:this.pageNums,pageSize:this.pageSizes,keyword:this.keyword};(0,s.getCourseVdieoList)(o).then((function(o){200==o.code&&(t.courseTwo="refresh"==e?o.data.list:[].concat((0,i.default)(t.courseTwo),(0,i.default)(o.data.list)),t.pageNums>=o.data.pages?t.statusA="nomore":t.statusA="loadmore")}))},clickTab:function(e){var t=this;this.showCont=e.index,this.$nextTick((function(){var e,o;null===(e=t.$refs)||void 0===e||null===(o=e.collapseRef)||void 0===o||o.init()})),this.courseid="",this.courseids="",this.keyword="",this.getvipcount(),this.getcout(),this.getcoursegroup(),console.log(e.index)},onChange:function(t){if(this.searchbarNav=t,0==t)this.getCourseList();else{if(""==this.courseid)return void e.showToast({icon:"none",title:"请选择训练营"});this.courseTwo=[],this.getCourseListsmall()}},confirm:function(){this.getcout(),this.courselist=[],this.getcoursegroup()},reset:function(){0==this.searchbarNav?(this.courseid="",this.getcout(),this.courselist=[],this.getcoursegroup()):(this.courseids="",this.getcout(),this.courselist=[],this.getcoursegroup())},changeCollapse:function(e){this.collapseValue=e.filter((function(e){return"open"==e.status})).map((function(e){return e.name})),console.log(e.filter((function(e){return"open"==e.status})).map((function(e){return e.name})))},closemore:function(){this.showmore=!1},openmore:function(){},nameMore:function(e){this.titlelist=e.name,this.contpl=e.text,this.selnum=e.value,0==e.value?this.copyId():1==e.value?(this.changelist=this.grouplist.nickName,this.showlist=!0):2==e.value?(console.log(this.grouplist.phonenumber),this.changephone=this.grouplist.phonenumber,this.showlist=!0):(this.changeremark=this.grouplist.remark,this.showlist=!0)},confirmchange:function(){var e=this;this.updatagroup(),this.showlist=!1,setTimeout((function(){e.showmore=!1,e.getgroupdetail()}),200)},changevipDetail:function(){e.navigateTo({url:"/pages_managedata/changeVip?id="+this.groupid})}}};t.default=r}).call(this,o(2)["default"])},317:function(e,t,o){"use strict";o.r(t);var n=o(318),i=o.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},318:function(e,t,o){}},[[311,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../.sourcemap/mp-weixin/pages_manage/manageDataDetail.js.map