1234567 |
- ;(function(){var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._course_1keb6_1{margin:.26667rem .37333rem 0;overflow:hidden;border-radius:.26667rem}._courseItem_1keb6_6 .van-cell__title,._courseItem_1keb6_6 .van-cell__value{flex:1 auto}._courseTimer_1keb6_10{display:flex;align-items:center;font-size:.34667rem;color:#666}._courseTimer_1keb6_10 img{margin-right:.16rem;width:.42667rem;height:.42667rem}._courseNum_1keb6_21{display:flex;align-items:center;justify-content:flex-end;font-size:.37333rem;color:#999}._courseNum_1keb6_21 img{width:.48rem;height:.48rem}._courseNum_1keb6_21 ._munis_1keb6_32{font-size:.37333rem;color:var(--van-primary)}._courseInfo_1keb6_36{display:flex;align-items:center;justify-content:space-between}._courseInfo_1keb6_36 .van-button{padding:.13333rem .4rem;opacity:1}._courseImg_1keb6_45{margin-right:.32rem;width:1.12rem;height:1.12rem;background:linear-gradient(180deg,#ffbc90 0%,#ff7021 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}._courseName_1keb6_56{flex:1 auto}._courseName_1keb6_56 ._name_1keb6_59{font-size:.42667rem;font-weight:500;color:#1a1a1a;line-height:.74667rem}._courseName_1keb6_56 ._subject_1keb6_65{margin-right:.13333rem;background:#fff1de;border-radius:.10667rem;font-size:.32rem;color:#ff8c00;line-height:.42667rem;padding:0 .10667rem}._courseOperation_1keb6_74{padding-top:.4rem;font-size:.37333rem;color:var(--van-primary);line-height:.53333rem}._courseOperation_1keb6_74 .van-col{text-align:center}\n";document.head.appendChild(__vite_style__);System.register(['./share_bg-legacy.8a42fa3d.js','./icon_name_active-legacy.2661706f.js','./icon_tips-legacy.c71e3c6a.js','./vendor-legacy.c3310871.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a.js','./index-legacy.637f3556.js','./icon_timer2-legacy.90431d1a.js','./index-legacy.901c4933.js','./index-legacy.ebe81e45.js'],function(exports){'use strict';var __glob_8_0,__glob_8_1,__glob_8_4,__glob_8_5,__glob_8_6,__glob_8_7,__glob_8_8,__glob_8_10,__glob_8_12,__glob_8_13,__glob_8_14,__glob_8_2,__glob_8_3,__glob_8_9,__glob_8_11,defineComponent,dayjs,createVNode,CellGroup,Cell,createTextVNode,Button,Row,Col,iconTimer,courseType,postMessage;return{setters:[function(module){__glob_8_0=module._;__glob_8_1=module.a;__glob_8_4=module.b;__glob_8_5=module.c;__glob_8_6=module.d;__glob_8_7=module.e;__glob_8_8=module.f;__glob_8_10=module.g;__glob_8_12=module.h;__glob_8_13=module.i;__glob_8_14=module.j;},function(module){__glob_8_2=module._;__glob_8_3=module.a;__glob_8_9=module.b;},function(module){__glob_8_11=module._;},function(module){defineComponent=module.d;dayjs=module.g;createVNode=module.a;CellGroup=module.C;Cell=module.q;createTextVNode=module.j;Button=module.B;Row=module.k;Col=module.l;},function(){},function(){},function(){},function(module){iconTimer=module.i;},function(module){courseType=module.c;},function(module){postMessage=module.p;}],execute:function execute(){var course="_course_1keb6_1";var courseItem="_courseItem_1keb6_6";var courseTimer="_courseTimer_1keb6_10";var courseNum="_courseNum_1keb6_21";var munis="_munis_1keb6_32";var courseInfo="_courseInfo_1keb6_36";var courseImg="_courseImg_1keb6_45";var courseName="_courseName_1keb6_56";var name="_name_1keb6_59";var subject="_subject_1keb6_65";var courseOperation="_courseOperation_1keb6_74";var styles={course:course,courseItem:courseItem,courseTimer:courseTimer,courseNum:courseNum,munis:munis,courseInfo:courseInfo,courseImg:courseImg,courseName:courseName,name:name,subject:subject,courseOperation:courseOperation};var getAssetsHomeFile=function getAssetsHomeFile(fileName){var path="../../images/".concat(fileName);var modules={"../../images/icon_arrow.png":__glob_8_0,"../../images/icon_class_plan.png":__glob_8_1,"../../images/icon_education.png":__glob_8_2,"../../images/icon_education_active.png":__glob_8_3,"../../images/icon_freeze_timer.png":__glob_8_4,"../../images/icon_invite_student.png":__glob_8_5,"../../images/icon_last_timer.png":__glob_8_6,"../../images/icon_message.png":__glob_8_7,"../../images/icon_music_account.png":__glob_8_8,"../../images/icon_name_active.png":__glob_8_9,"../../images/icon_num.png":__glob_8_10,"../../images/icon_tips.png":__glob_8_11,"../../images/logo.png":__glob_8_12,"../../images/room_bg.png":__glob_8_13,"../../images/share_bg.png":__glob_8_14};return modules[path].default;};var Course=exports('C',defineComponent({name:'course',props:{item:{type:Object},operation:{type:Boolean,default:true},// 学员调整
- onStudentAdjust:{type:Function,default:function _default(item){}},// 时间调整
- onTimeAdjust:{type:Function,default:function _default(item){}},// 删除课程
- onCourseDelete:{type:Function,default:function _default(item){}}},computed:{timer:function timer(){var item=this.item;return dayjs(item.startTime).format('YYYY/MM/DD HH:mm')+' ~ '+dayjs(item.endTime).format('HH:mm');}},methods:{onJoinChat:function onJoinChat(e){e.stopPropagation();var item=this.item;// 进入聊天
- postMessage({api:'joinChatGroup',content:{type:'multi',// single 单人 multi 多人
- id:item.imGroupId}});},onDetail:function onDetail(){var _this$item;// 详情
- postMessage({api:'openCourseDetail',content:{type:'pianoRoom',courseId:(_this$item=this.item)===null||_this$item===void 0?void 0:_this$item.courseId}});}},render:function render(){var _this=this;var item=this.item;return createVNode(CellGroup,{"class":styles.course,"border":false},{default:function _default(){return[createVNode(Cell,{"center":true,"class":styles.courseItem,"onClick":_this.onDetail},{title:function title(){return createVNode("div",{"class":styles.courseTimer},[createVNode("img",{"src":iconTimer},null),createVNode("span",null,[_this.timer])]);},value:function value(){return createVNode("div",{"class":styles.courseNum},[createVNode("span",null,[item.studentCount,createTextVNode("\u4EBA")]),createVNode("img",{"src":getAssetsHomeFile('icon_num.png'),"style":{marginRight:'14px'}},null),_this.operation?createVNode("img",{"onClick":_this.onJoinChat,"src":getAssetsHomeFile('icon_message.png')},null):createVNode("span",{"class":styles.munis},[createTextVNode("-"),item.consumTime,createTextVNode("\u5206\u949F")])]);}}),createVNode(Cell,null,{default:function _default(){return[createVNode("div",{"class":styles.courseInfo,"onClick":_this.onDetail},[createVNode("div",{"class":styles.courseImg},[createTextVNode("\u5C0F\u8BFE")]),createVNode("div",{"class":styles.courseName},[createVNode("p",{"class":styles.name},[item.groupName]),createVNode("p",null,[createVNode("span",{"class":styles.subject},[item.subjectName])])]),createVNode(Button,{"type":item.status!=='NOT_START'?'default':'primary',"round":true,"disabled":true,"size":"small"},{default:function _default(){return[courseType[item.status]];}})]),_this.operation&&createVNode(Row,{"class":styles.courseOperation},{default:function _default(){return[createVNode(Col,{"span":8,"class":"van-hairline--right"},{default:function _default(){return[createVNode("span",{"onClick":function onClick(){_this.onStudentAdjust(_this.item);}},[createTextVNode("\u5B66\u5458\u8C03\u6574")])];}}),createVNode(Col,{"span":8,"class":"van-hairline--right"},{default:function _default(){return[createVNode("span",{"onClick":function onClick(){_this.onTimeAdjust(_this.item);}},[createTextVNode("\u65F6\u95F4\u8C03\u6574")])];}}),createVNode(Col,{"span":8},{default:function _default(){return[createVNode("span",{"onClick":function onClick(){_this.onCourseDelete(_this.item);}},[createTextVNode("\u5220\u9664\u8BFE\u7A0B")])];}})];}})];}})];}});}}));}};});})();
|