| 1 |
- !function(){function e(e,t,n,i,o,a,r){try{var c=e[a](r),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(i,o)}var t=document.createElement("style");t.innerHTML="._live-detail_1vd6e_1 ._introduction_1vd6e_1{color:#7a7a7a;line-height:.61333rem;padding-bottom:.21333rem}._live-detail_1vd6e_1 .van-tabs__wrap{margin-bottom:.4rem}._live-detail_1vd6e_1 ._wxpopup_1vd6e_9{width:100%;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:9999}._live-detail_1vd6e_1 ._wxpopup_1vd6e_9 img{width:88%;margin:0 6%}\n",document.head.appendChild(t),System.register(["./icon_discount-legacy.51763f3b.js","./share-vip-tips-legacy.0d425f76.js","./share-banner-legacy.3a0e6967.js","./wx_bg-legacy.a09a21f9.js","./ResizeObserver.es-legacy.26eb1cf8.js","./index-legacy.dcea887f.js","./index-legacy.3bdae475.js","./index-legacy.42528f94.js","./share-legacy.a13af717.js","./index-legacy.bc4a22e9.js","./index-legacy.aa58f7fa.js","./index-legacy.60487b6d.js","./index-legacy.5c4870ce.js","./icon_teacher-legacy.42ba77b1.js","./index-legacy.0df036fa.js"],(function(t){"use strict";var n,i,o,a,r,c,s,u,l,d,m,f,p,g,v,h,_,y,b,w,x,T,I;return{setters:[function(e){n=e._,i=e.c,o=e.d},function(e){a=e._,r=e.a},function(e){c=e._},function(e){s=e._},function(e){u=e.d,l=e.w,d=e.f,m=e.g,f=e.v,p=e.n,g=e.D,v=e.y,h=e.j,_=e.B,y=e.A},function(e){b=e.S},function(e){w=e.U},function(e){x=e.C},function(e){T=e.s},function(e){I=e.G},function(){},function(){},function(){},function(){},function(){}],execute:function(){var D="_live-detail_1vd6e_1",j="_introduction_1vd6e_1",S="_wxpopup_1vd6e_9",U=t("getAssetsHomeFile",(function(e){var t="../images/".concat(e);return{"../images/icon-cert.png":n,"../images/icon_discount.png":i,"../images/icon_music.png":o,"../images/music-share-banner.png":a,"../images/share-banner.png":c,"../images/share-vip-tips.png":r,"../images/wx_bg.png":s}[t].default}));t("default",u({name:"LiveDetail",data:function(){var e=this.$route.query;return{recomUserId:e.recomUserId,groupId:e.groupId,platform:e.p,live:{},wxStatus:!1}},computed:{userInfo:function(){var e,t,n=this.live,i=n.planList||[],o=(null===(e=i[0])||void 0===e?void 0:e.startTime)||new Date,a=(null===(t=i[0])||void 0===t?void 0:t.endTime)||new Date;return{headUrl:n.avatar,username:n.userName,isDegree:!!n.degreeFlag,isTeacher:!!n.teacherFlag,id:n.teacherId,startTime:"".concat(l(o).format("YYYY-MM-DD")," ").concat(l(o).format("HH:mm"),"~").concat(l(a).format("HH:mm"))||"",type:"live",courseStartTime:l(n.courseStartTime).format("YYYY-MM-DD HH:mm"),lessonPrice:n.coursePrice,buyNum:n.studentCount||0,lessonNum:n.courseNum||0,lessonDesc:n.courseIntroduce,lessonCoverUrl:n.backgroundPic||n.backgroundPicTemplate,lessonName:n.courseGroupName,auditVersion:0}},courseInfo:function(){var e=[],t=this.live;return(this.live.planList||[]).forEach((function(n){var i=n.startTime||new Date,o=n.endTime||new Date;e.push({courseTime:"".concat(l(i).format("YYYY-MM-DD")," ").concat(l(i).format("HH:mm"),"~").concat(l(o).format("HH:mm")),coursePlan:n.plan,teacherName:t.userName,subjectName:t.subjectName,roomUid:n.roomUid,liveState:n.liveState,id:n.courseId})})),e||[]}},created:function(){if(d().isApp)if("STUDENT"===m.platformType){var e=this.$route.query;e.recomUserId=e.userType&&"STUDENT"==e.userType?"":e.recomUserId,d().ios?window.location.replace("".concat(location.origin,"/student/#/groupDetail??").concat(f.stringify(e))):(p({api:"openWebView",content:{url:"".concat(location.origin,"/student/#/groupDetail??").concat(f.stringify(e)),orientation:1,isHideTitle:!1}}),p({api:"back"}))}else"TEACHER"===m.platformType&&g.alert({title:"提示",message:"请使用酷乐秀学生端扫码打开",confirmButtonColor:"#2dc7aa"}).then((function(){p({api:"back"})}));else this.reCall()},mounted:function(){var t,n=this;return(t=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-teacher/open/liveShareProfit",{data:{bizId:n.groupId,userId:n.recomUserId}});case 3:t=e.sent,n.live=t.data.liveCourseGroup||{},e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var n=this,i=arguments;return new Promise((function(o,a){var r=t.apply(n,i);function c(t){e(r,o,a,c,s,"next",t)}function s(t){e(r,o,a,c,s,"throw",t)}c(void 0)}))})()},methods:{locationReplace:function(e){history.replaceState?(history.replaceState(null,document.title,e),window.location.reload()):location.replace(e)},reCall:function(){var e=location.origin+"/student/#/groupDetail",t=this.$route.query;e+="?recomUserId=".concat(t.userType&&"STUDENT"==t.userType?"":this.recomUserId,"&groupId=").concat(t.groupId,"&p=").concat(t.p),T(e,{})},onShare:function(){d().weixin?this.wxStatus=!0:(this.reCall(),setTimeout((function(){window.location.href=location.origin+"/student/#/download"}),3e3))}},render:function(){var e=this;return h("div",{class:[D,"mb12"]},[h(w,{userInfo:this.userInfo,showBuy:!1},null),h(b,{border:!0},{default:function(){return[h("p",{class:j},[e.userInfo.lessonDesc])]}}),h(I,{courseInfo:this.courseInfo},null),h(x,{position:"bottom"},{default:function(){return[h("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[h(_,{block:!0,round:!0,type:"primary",onClick:e.onShare},{default:function(){return[y("下载酷乐秀进入课程")]}})])]}}),this.wxStatus&&h("div",{class:S,onClick:function(){e.wxStatus=!1}},[h("img",{src:U("wx_bg.png"),alt:""},null)])])}}))}}}))}();
|