index-legacy.a2366bef.js 8.1 KB

1
  1. !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;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=document.createElement("style");i.innerHTML='._container_3down_1{min-height:100vh;box-sizing:border-box;background:linear-gradient(180deg,#b8c7ff 0%,#f8f9ff 100%)}._wrap_3down_6{background-image:url(./assets/icon-bg.f56cd6ad.png);background-repeat:no-repeat;background-size:100% auto;min-height:100vh;box-sizing:border-box}._userWrap_3down_13{padding:.96rem 0 0 1.28rem;display:flex}._userWrap_3down_13 ._user_3down_13{position:relative;display:flex;flex-direction:column;align-items:center}._userWrap_3down_13 ._user_3down_13 ._avator_3down_23{width:2.13333rem;height:2.13333rem;border-radius:50%;overflow:hidden;background-color:#fff;padding:.05333rem}._userWrap_3down_13 ._user_3down_13 ._avator_3down_23>img{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(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.02065493.js","./icon_teacher-legacy.42ba77b1.js","./index-legacy.bbc2b10e.js"],(function(e){"use strict";var n,o,i,a,d,c,s,_,u,l,p,m;return{setters:[function(e){n=e.d,o=e.y,i=e.f,a=e.g,d=e.D,c=e.n,s=e.T,_=e.j,u=e.A,l=e.B},function(e){p=e.C},function(e){m=e.i},function(){}],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",n({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,o.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(){i().weixin?this.wxStatus=!0:i().isApp?i().isApp&&("STUDENT"===a.platformType?this.onJoinLiveRoom():"TEACHER"===a.platformType&&d.alert({title:"提示",message:"请使用酷乐秀学生端扫码打开",confirmButtonColor:"#2dc7aa"}).then((function(){c({api:"back"})}))):this.onWakeApp()},onJoinLiveRoom:function(){c({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):s("请用手机或移动设备打开")}},render:function(){var e=this;return _("div",{class:w.container},[_("div",{class:w.wrap},[_("div",{class:w.userWrap},[_("div",{class:w.user},[_("div",{class:w.avator},[_("img",{src:this.teacher.avatar||m},null)]),_("div",{class:w.tips},[_("img",{src:h("icon-live.png")},null),_("span",null,[u("直播中")])])])]),_("div",{class:w.titleWrap},[_("div",{class:w.title},[this.liveRoom.roomTitle]),_("div",{class:w.liveUser},[u("主讲人:"),this.teacher.realName||this.teacher.username])]),_("div",{class:w.content},[_("div",{class:w.top},[u("直播内容")]),_("div",null,[this.liveRoom.liveRemark]),_("div",{class:w.comentWrap},[_("div",{class:w.contentAvator},[_("img",{src:this.student.avatar||m},null)]),_("div",null,[_("div",{class:w.comentTitle},[u("快进入老师的直播间一起围观~")]),_("div",{class:w.comentDes},[this.teacher.realName||this.student.username,u(" 为您推荐")])])])])]),_(p,{position:"bottom"},{default:function(){return[_("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[_(l,{color:"linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)",block:!0,round:!0,type:"primary",onClick:e.openApp},{default:function(){return[u("开启酷乐秀进入直播间!")]}})])]}}),this.wxStatus&&_("div",{class:w.wxpopup,onClick:function(){e.wxStatus=!1}},[_("img",{src:h("wx_bg.png"),alt:""},null)])])}}))}}}))}();