index-legacy.4b5cfdd5.js 2.7 KB

123
  1. ;(function(){System.register(['./vendor-legacy.b19481d4.js'],function(exports){'use strict';var defineComponent,createVNode,ElImage,createTextVNode,ElButton;return{setters:[function(module){defineComponent=module.d;createVNode=module.c;ElImage=module.x;createTextVNode=module.a;ElButton=module.k;}],execute:function execute(){var Item=exports('I',defineComponent({name:'item',props:{item:{type:Object,default:function _default(){return{};}},onOffCourse:{type:Function,default:function _default(item){}}},render:function render(){var _this=this;var item=this.item;return createVNode("div",{"class":"border border-[#E0E0E0] box-border rounded-[10px] w-[218px] m-auto overflow-hidden relative transition-all cursor-pointer","onClick":function onClick(){// console.log(item)
  2. if(item.type==='video'){if(item.shelvesFlag===0&&(item.status==='UNPASS'||item.status==='OUT_SALE')){_this.$router.push({path:'/userInfo/videoOperation',query:{type:'edit',groupId:item.id}});return;}else{_this.$router.push({path:'/videoDetail',query:{id:item.id}});}}if(item.type==='live'&&(item.status==='CANCEL'||item.status==='OUT_SALE')){// 直播课
  3. _this.$router.push({path:'/userInfo/liveOperation',query:{type:'edit',groupId:item.courseGroupId}});}}},[createVNode("div",{"class":"relative"},[createVNode(ElImage,{"class":"w-full h-[122px] align-middle","fit":"cover","src":item.backgroundPic},null),createVNode("div",{"class":"text-sm text-[#52FFDC] h-7 leading-7 px-3 flex items-center justify-between absolute left-0 right-0 bottom-0 bg-black/60"},[createVNode("div",null,[createVNode("div",{"class":"text-base text-[#FF5F22] leading-none"},[item.courseNum,createTextVNode("\u8BFE\u65F6")])]),createVNode("div",null,[createVNode("i",{"class":"w-1 h-1 bg-[#52FFDC] rounded-full mr-1.5 inline-block"},null),item.studentCount,createTextVNode("\u4EBA\u5DF2\u8D2D\u4E70")])])]),createVNode("div",{"class":"text-base px-2.5 pt-2 text-[#666666] leading-none font-semibold whitespace-nowrap overflow-hidden text-ellipsis"},[item.courseGroupName]),item.courseStartTime&&createVNode("p",{"class":"text-[#999] text-xs px-2.5 leading-none pt-1.5"},[createTextVNode("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),item.courseStartTime]),createVNode("div",{"class":"mx-2.5 pt-1.5 pb-2 flex items-center justify-between"},[createVNode("div",{"class":"text-xl text-[#F90000] font-semibold leading-none"},[createVNode("span",{"class":"text-sm leading-7"},[createTextVNode("\uFFE5")]),item.coursePrice]),item.type==='video'&&item.status==='PASS'&&createVNode("div",null,[createVNode(ElButton,{"type":"primary","round":true,"onClick":function onClick(e){e.stopPropagation();_this.onOffCourse(item);}},{default:function _default(){return[createTextVNode("\u4E0B\u67B6\u8BFE\u7A0B")];}})])])]);}}));}};});})();