1 |
- ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._live-detail_1aqns_1 ._introduction_1aqns_1{color:#7a7a7a;line-height:.61333rem;padding-bottom:.21333rem}._live-detail_1aqns_1 .van-tabs__wrap{margin-bottom:.4rem}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.5b2594e0.js','./index-legacy.be84bc66.js','./index-legacy.7110df41.js','./index-legacy.dfcea67a.js','./index-legacy.81d6b3b4.js','./index-legacy.0f7c65b2.js','./vendor-legacy.b93edb0f.js','./index-legacy.f25f109a5.js','./index-legacy.637f35563.js','./index-legacy.637f35564.js','./index-legacy.f25f109a4.js','./icon_video_stop-legacy.6dbf3c96.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a.js','./index-legacy.f25f109a9.js','./icon_teacher-legacy.00e7cdce.js','./icon_timer2-legacy.90431d1a.js'],function(exports){'use strict';var CoursePlanStep,SectionDetail,UserDetail,UserList,ColResult,state,request,defineComponent,dayjs,createVNode,Tabs,Tab;return{setters:[function(module){CoursePlanStep=module.C;},function(module){SectionDetail=module.S;},function(module){UserDetail=module.U;},function(module){UserList=module.U;},function(module){ColResult=module.C;},function(module){state=module.s;request=module.r;},function(module){defineComponent=module.d;dayjs=module.h;createVNode=module.a;Tabs=module.D;Tab=module.G;},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var introduction="_introduction_1aqns_1";var styles={"live-detail":"_live-detail_1aqns_1",introduction:introduction};var liveDetail=exports('default',defineComponent({name:'LiveDetail',data:function data(){var query=this.$route.query;return{groupId:query.groupId,live:{}};},computed:{userInfo:function userInfo(){var _planList$,_planList$2,_state$user$data,_state$user$data2;var live=this.live;var planList=live.planList||[];var startTime=((_planList$=planList[0])===null||_planList$===void 0?void 0:_planList$.startTime)||new Date();var endTime=((_planList$2=planList[0])===null||_planList$2===void 0?void 0:_planList$2.endTime)||new Date();return{headUrl:(_state$user$data=state.user.data)===null||_state$user$data===void 0?void 0:_state$user$data.headUrl,username:(_state$user$data2=state.user.data)===null||_state$user$data2===void 0?void 0:_state$user$data2.username,startTime:"".concat(dayjs(startTime).format('YYYY-MM-DD')," ").concat(dayjs(startTime).format('HH:mm'),"~").concat(dayjs(endTime).format('HH:mm'))||'',buyNum:0,lessonPrice:live.coursePrice,lessonNum:live.courseNum,lessonDesc:live.courseIntroduce,lessonCoverUrl:live.backgroundPic||live.backgroundPicTemplate,lessonName:live.courseGroupName};},courseInfo:function courseInfo(){var tempArr=[];var coursePlanList=this.live.planList||[];coursePlanList.forEach(function(item){var startTime=item.startTime||new Date();var endTime=item.endTime||new Date();tempArr.push({courseTime:"".concat(dayjs(startTime).format('YYYY-MM-DD')," ").concat(dayjs(startTime).format('HH:mm'),"~").concat(dayjs(endTime).format('HH:mm')),coursePlan:item.plan});});return tempArr||[];},studentList:function studentList(){var live=this.live;return live.studentList||[];}},mounted:function mounted(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.get('/api-teacher/courseGroup/queryLiveCourseInfo',{params:{groupId:_this.groupId}});case 3:res=_context.sent;console.log(res);_this.live=res.data||{};_context.next=10;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);case 10:case"end":return _context.stop();}}},_callee,null,[[0,8]]);}))();},render:function render(){var _this2=this;return createVNode("div",{"class":[styles['live-detail'],'mb12']},[createVNode(UserDetail,{"userInfo":this.userInfo},null),createVNode(SectionDetail,null,{default:function _default(){return[createVNode("p",{"class":styles.introduction},[_this2.userInfo.lessonDesc])];}}),createVNode(SectionDetail,{"title":"课程列表","icon":"courseList","titleShow":false,"contentStyle":{paddingTop:'0'}},{default:function _default(){return[createVNode(Tabs,{"color":"var(--van-primary)","lineWidth":20,"sticky":true},{default:function _default(){return[createVNode(Tab,{"title":"课程","titleClass":"van-hairline--bottom"},{default:function _default(){return[createVNode(CoursePlanStep,{"courseInfo":_this2.courseInfo},null)];}}),createVNode(Tab,{"title":"学员列表","titleClass":"van-hairline--bottom"},{default:function _default(){return[_this2.studentList.map(function(item){return createVNode(UserList,{"class":"mb12","users":item},null);}),_this2.studentList.length===0&&createVNode(ColResult,{"tips":"暂无购买学员","classImgSize":"SMALL","btnStatus":false},null)];}})];}})];}})]);}}));}};});})();
|