!function(){function e(e,t,n,r,o,i,a){try{var d=e[i](a),c=d.value}catch(s){return void n(s)}d.done?t(c):Promise.resolve(c).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function d(t){e(a,o,i,d,c,"next",t)}function c(t){e(a,o,i,d,c,"throw",t)}d(void 0)}))}}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;timg{display:flex;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:50%}._userWrap_3down_13 ._user_3down_13 ._tips_3down_38{display:flex;justify-content:space-around;align-items:center;height:.64rem;padding:0 .26667rem;background:linear-gradient(180deg,#ff598e 0%,#fd2d55 100%);border-radius:.58667rem;color:#fff;font-size:.32rem;font-weight:700;margin-top:-.26667rem}._userWrap_3down_13 ._user_3down_13 ._tips_3down_38 img{width:.26667rem;height:.26667rem;margin-right:.18667rem}._titleWrap_3down_56{padding:.69333rem;color:#fff;line-height:.88rem;text-shadow:0 0 .10667rem rgba(23,78,255,.5);font-weight:600;font-size:.64rem}._titleWrap_3down_56 ._liveUser_3down_64{font-size:.48rem}._content_3down_67{background:rgba(255,255,255,.8);border-radius:.37333rem;margin:0 .42667rem;padding:.37333rem .48rem;font-size:.42667rem;line-height:.58667rem;color:#333}._content_3down_67 ._top_3down_76{position:relative;padding-left:.37333rem;font-size:.42667rem;font-weight:600;margin-bottom:.32rem}._content_3down_67 ._top_3down_76:before{content:"";position:absolute;left:0;top:12%;height:70%;width:.10667rem;background-color:var(--van-primary-color);border-radius:.10667rem}._content_3down_67 ._comentWrap_3down_93{margin-top:.42667rem;background:linear-gradient(270deg,#baffe7 0%,#c0dcff 100%);border-radius:.26667rem;padding:.37333rem;display:flex;align-items:center}._content_3down_67 ._comentWrap_3down_93 ._contentAvator_3down_101{width:1.01333rem;height:1.01333rem;padding:.02667rem;background-color:#fff;border-radius:50%;margin-right:.26667rem}._content_3down_67 ._comentWrap_3down_93 ._contentAvator_3down_101 img{width:100%;height:100%;display:block;border-radius:50%}._content_3down_67 ._comentWrap_3down_93 ._comentTitle_3down_115{font-size:15Px;font-weight:700}._content_3down_67 ._comentWrap_3down_93 ._comentDes_3down_119{font-size:12Px}._wxpopup_3down_122{width:100%;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:9999}._wxpopup_3down_122 img{width:88%;margin:0 6%}\n',document.head.appendChild(i),System.register(["./index-legacy.d0d6a39b.js","./index-legacy.f8641610.js","./icon_teacher-legacy.42ba77b1.js"],(function(e){"use strict";var n,o,i,a,d,c,s,_,u,l,p,m;return{setters:[function(e){n=e.C},function(e){o=e.d,i=e.e,a=e.b,d=e.s,c=e.D,s=e.p,_=e.T,u=e.i,l=e.A,p=e.B},function(e){m=e.i}],execute:function(){var g=Object.freeze(Object.defineProperty({__proto__:null,default:"./assets/icon-bg.f56cd6ad.png"},Symbol.toStringTag,{value:"Module"})),f=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAHlJREFUOE/tlcENwCAMA+1B2n06SWfqJOzTDuI+yqMIKQkI8YIPPPApMomhpAPAhW+dJFM+h7ZKL+kGsGX1Q3IPkfKlSi9JfwBJNgJL/XSg53FVkFeh53EP0PR4AcHAoywPy9HsaRszPHqAZrw1A73kmQIcHrBDv4AX9enaHwz5d/YAAAAASUVORK5CYII="},Symbol.toStringTag,{value:"Module"})),w={container:"_container_3down_1",wrap:"_wrap_3down_6",userWrap:"_userWrap_3down_13",user:"_user_3down_13",avator:"_avator_3down_23",tips:"_tips_3down_38",titleWrap:"_titleWrap_3down_56",liveUser:"_liveUser_3down_64",content:"_content_3down_67",top:"_top_3down_76",comentWrap:"_comentWrap_3down_93",contentAvator:"_contentAvator_3down_101",comentTitle:"_comentTitle_3down_115",comentDes:"_comentDes_3down_119",wxpopup:"_wxpopup_3down_122"},h=e("getAssetsHomeFile",(function(e){var t="./images/".concat(e);return{"./images/icon-bg.png":g,"./images/icon-live.png":f}[t].default}));e("default",o({name:"shareLiveRoom",data:function(){return{query:r({},this.$route.query),liveRoom:{},teacher:{},student:{},wxStatus:!1}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getData();case 2:e.openApp();case 3:case"end":return t.stop()}}),t)})))()},methods:{getData:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.get("/api-student/open/liveRoom/detail/".concat(e.query.id),{params:{userId:e.query.userId}});case 3:n=t.sent,r=n.data,e.liveRoom=r,e.teacher=r.teacher||{},e.student=r.student||{},t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})))()},openApp:function(){a().weixin?this.wxStatus=!0:a().isApp?a().isApp&&("STUDENT"===d.platformType?this.onJoinLiveRoom():"TEACHER"===d.platformType&&c.alert({title:"提示",message:"请使用酷乐秀学生端扫码打开",confirmButtonColor:"#2dc7aa"}).then((function(){s({api:"back"})}))):this.onWakeApp()},onJoinLiveRoom:function(){s({api:"joinLiveRoom",content:{roomId:this.liveRoom.roomUid,teacherId:this.liveRoom.speakerId}})},onWakeApp:function(){var e={action:"app",pageTag:"liveRoom",params:JSON.stringify({liveRoomId:this.query.id})},t=encodeURIComponent(JSON.stringify(e));/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="ColexiuStudent://linkUrl=".concat(t):/(Android)/i.test(navigator.userAgent)?window.location.href="colexiustudent://html:8888/SplashActivity?url=".concat(t):_("请用手机或移动设备打开")}},render:function(){var e=this;return u("div",{class:w.container},[u("div",{class:w.wrap},[u("div",{class:w.userWrap},[u("div",{class:w.user},[u("div",{class:w.avator},[u("img",{src:this.teacher.avatar||m},null)]),u("div",{class:w.tips},[u("img",{src:h("icon-live.png")},null),u("span",null,[l("直播中")])])])]),u("div",{class:w.titleWrap},[u("div",{class:w.title},[this.liveRoom.roomTitle]),u("div",{class:w.liveUser},[l("主讲人:"),this.teacher.realName||this.teacher.username])]),u("div",{class:w.content},[u("div",{class:w.top},[l("直播内容")]),u("div",null,[this.liveRoom.liveRemark]),u("div",{class:w.comentWrap},[u("div",{class:w.contentAvator},[u("img",{src:this.student.avatar||m},null)]),u("div",null,[u("div",{class:w.comentTitle},[l("快进入达人的直播间一起围观~")]),u("div",{class:w.comentDes},[this.teacher.realName||this.student.username,l(" 为您推荐")])])])])]),u(n,{position:"bottom"},{default:function(){return[u("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[u(p,{color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",block:!0,round:!0,type:"primary",onClick:e.openApp},{default:function(){return[l("开启酷乐秀进入直播间!")]}})])]}}),this.wxStatus&&u("div",{class:w.wxpopup,onClick:function(){e.wxStatus=!1}},[u("img",{src:h("wx_bg.png"),alt:""},null)])])}}))}}}))}();