1 |
- !function(){function e(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 t(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,c,"next",e)}function c(e){a(o,r,i,s,c,"throw",e)}s(void 0)}))}}var s=document.createElement("style");s.innerHTML='._teacher-record_nb6q8_1{min-height:100vh;background-color:#f8f9fc;position:relative;overflow:hidden}._teacher-record_nb6q8_1 .van-nav-bar{transition:all .3s}._teacher-record_nb6q8_1 .van-tab{margin-top:.32rem;margin-bottom:.13333rem;padding:0 .37333rem}._teacher-record_nb6q8_1 .van-tab--active{font-size:.42667rem!important;color:#333}._teacher-record_nb6q8_1 .van-button--plain.van-button--primary{background-color:transparent}._bgImg_nb6q8_22{position:absolute;top:0;left:0;width:100%;height:5.01333rem;-o-object-fit:cover;object-fit:cover}._bg_nb6q8_22{position:absolute;top:0;left:0;width:100%;height:5.01333rem;background-color:rgba(0,0,0,.6);backdrop-filter:blur(.26667rem);-webkit-backdrop-filter:blur(.26667rem)}._teacherHeader_nb6q8_40{position:relative;z-index:10}._single_1fc0b_1{margin-bottom:.53333rem}._introduction_1fc0b_4{font-size:.34667rem;color:#666;line-height:1.6;padding-bottom:.4rem}._videoList_1fc0b_10{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}._itemBg_1fc0b_16{position:absolute;top:0;left:0;bottom:0;width:100%;height:100%;z-index:89}._videoItem_1fc0b_25{width:4.18667rem;height:2.82667rem;background:#d8d8d8;border-radius:.26667rem;overflow:hidden;position:relative;margin-bottom:.26667rem}._videoItem_1fc0b_25 ._icon-upload_1fc0b_34{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;z-index:9}._videoItem_1fc0b_25 ._video_1fc0b_10{position:absolute;left:0;top:0;width:100%;min-height:100%;background-color:#ccc}._videoItem_1fc0b_25 .van-image{width:100%;height:100%;overflow:hidden}._fansGroup_1fc0b_55{padding:0 0 .66667rem!important}._fansGroup_1fc0b_55:last-child{padding-bottom:.32rem!important}._fansGroup_1fc0b_55 .van-cell__title,._fansGroup_1fc0b_55 .van-cell__value{flex:1 auto}._fansGroup_1fc0b_55 p{font-size:.37333rem;color:#999;line-height:.53333rem;width:4.26667rem}._fansImage_1fc0b_71{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden}._fansTitle_1fc0b_77{padding-left:.32rem;font-size:.42667rem;color:#1a1a1a;line-height:.58667rem}._fansTitle_1fc0b_77 ._title_1fc0b_83{max-width:4.26667rem}._videoGroup_1fc0b_86{width:90%;line-height:0}._filterTitle_cir06_1{font-size:.48rem;font-weight:500;color:#000;line-height:.66667rem;text-align:center;padding:.53333rem 0}._fansGroup_cir06_9{padding:0 0 .66667rem!important}._fansGroup_cir06_9:last-child{padding-bottom:.32rem!important}._fansGroup_cir06_9 .van-cell__title,._fansGroup_cir06_9 .van-cell__value{flex:1 auto}._fansGroup_cir06_9 ._introduce_cir06_19{font-size:.37333rem;color:#999;line-height:.53333rem;width:6.93333rem}._fansImage_cir06_25{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden}._fansTitle_cir06_31{padding-left:.32rem;font-size:.42667rem;color:#1a1a1a;line-height:.58667rem}._joinContainer_cir06_37{padding:.58667rem .37333rem}._joinText_cir06_40{font-size:.37333rem;color:#999;border-radius:.26667rem;border:.02667rem solid #dedede}._practice_xjmim_1{padding:.37333rem .37333rem 0;overflow:hidden}._practice_xjmim_1 ._group_xjmim_5{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._practice_xjmim_1 ._price_xjmim_10{font-size:.37333rem;color:#999}._practice_xjmim_1 ._price_xjmim_10 span{font-weight:600;color:#fa6400;font-size:.42667rem}._practice_xjmim_1 .van-stepper--round .van-stepper__minus{color:#333!important;border:#f3f3f3;background:#f3f3f3}._practice_xjmim_1 .van-stepper--round .van-stepper__plus{background:var(--van-primary)}._rTag_xjmim_27{padding:.26667rem 0}._rTag_xjmim_27 ._tag_xjmim_30{background:#e9fff8;margin-bottom:.21333rem}._selectPopup_xjmim_34{width:8.32rem;background:#ffffff;border-radius:.21333rem}._selectPopup_xjmim_34 ._selectContainer_xjmim_39{padding:.48rem .37333rem}._selectPopup_xjmim_34 ._rTitle_xjmim_42{font-size:.48rem}._selectPopup_xjmim_34 ._selectPopupContent_xjmim_45{padding:.53333rem 0}._selectPopup_xjmim_34 ._desc_xjmim_48,._selectPopup_xjmim_34 ._times_xjmim_49{font-size:.37333rem;color:#666;line-height:.53333rem}._selectPopup_xjmim_34 ._times_xjmim_49{padding-top:.4rem}._selectPopup_xjmim_34 ._times_xjmim_49 span{display:block}._selectPopup_xjmim_34 ._selectBtn_xjmim_60{display:flex;align-items:center;justify-content:space-between}._selectPopup_xjmim_34 ._selectBtn_xjmim_60 ._btn_xjmim_65{width:48%}._rTitle_xjmim_42{display:flex;align-items:center;font-size:.42667rem;color:#333;font-weight:500}._rTitle_xjmim_42:before{margin-right:.21333rem;content:" ";display:inline-block;width:.10667rem;height:.45333rem;background:linear-gradient(180deg,#59e5d5 0%,#2dc7aa 100%);border-radius:.08rem}._protocol_xjmim_84{padding:0 .37333rem;background-color:#f6f8f9}._arrangeCell_xjmim_88{margin:.26667rem 0 2.13333rem!important;width:auto;border-radius:.26667rem;overflow:hidden}._fixedBtn_xjmim_94{position:fixed;bottom:0;left:0;right:0;z-index:9}._liveList_zp23z_1{padding:.37333rem}._liCover_zp23z_4{width:2.8rem;height:1.89333rem;border-radius:.10667rem;overflow:hidden}._liContent_zp23z_10{padding-left:.37333rem;height:100%;display:flex;flex-direction:column;justify-content:space-between}._liContent_zp23z_10 ._liTitle_zp23z_17{font-size:.4rem;font-weight:500;color:#1a1a1a;line-height:.53333rem;padding-top:.10667rem;max-width:4.8rem}._buyNum_zp23z_25,._num_zp23z_26{color:#ff802c;font-size:.34667rem}._price_zp23z_30{font-size:.37333rem;color:#999}._price_zp23z_30 ._priceNum_zp23z_34{color:red;font-size:.48rem;font-weight:700}._price_zp23z_30 ._priceNum_zp23z_34 i{font-size:.4rem;font-style:normal}._price_zp23z_30 ._label_zp23z_43{padding-left:.21333rem}._liveGroup_zp23z_46{border-radius:.26667rem;overflow:hidden;margin-bottom:.26667rem}._subjectName_zp23z_51{position:absolute;bottom:.10667rem;left:0;font-size:.32rem;padding:.08rem .13333rem;color:#fff;line-height:1;border-radius:.02667rem;background:rgba(0,0,0,.29)}._timerString_zp23z_62{font-size:.34667rem;display:flex;align-items:center;color:#666}._videoList_1yf9v_1{display:flex;justify-content:space-between;flex-wrap:wrap;padding:.37333rem}.van-list__loading,.van-list__finished-text,.van-list__error-text{width:100%}\n',document.head.appendChild(s),System.register(["./teacher-header.module-legacy.6bd6b018.js","./index-legacy.b903c881.js","./index-legacy.885c229f.js","./index-legacy.8abefd50.js","./index-legacy.ae2ce69e.js","./index-legacy.ba78f33e.js","./index-legacy.147431b7.js","./index-legacy.033ce0ab.js","./index-legacy.b7f666cc.js","./index-legacy.5b93d63d.js","./index-legacy.e9e6da38.js","./icon_upload_poster-legacy.6c5487e0.js","./index-legacy.0ffc4e5a.js","./index-legacy.1354f2d2.js","./index-legacy.5907f1a9.js","./index-legacy.3b8d2535.js","./index-legacy.857a8bc7.js","./orderStatus-legacy.d4b782c6.js","./tradeOrder-legacy.5ef1c9e6.js","./index-legacy.f52c26b4.js","./video-item-legacy.13fd5960.js","./index-legacy.5dc3ca4c.js","./index-legacy.8e85fa65.js","./index-legacy.96308377.js","./icon_teacher-legacy.42ba77b1.js","./icon-jiaozi-legacy.dd5ed0e2.js","./hooks-legacy.84a774a1.js","./use-id-legacy.29724920.js","./use-tab-status-legacy.a19d344b.js","./use-refs-legacy.14daae14.js","./plyr-legacy.180f4c53.js","./index-legacy.3720be7c.js","./index-legacy.94acaa3f.js","./utils-legacy.95c411b8.js","./index-legacy.4b2a6a63.js","./index-legacy.3e4ae683.js","./select-tag-legacy.e25783c1.js","./index-legacy.a3b9d61a.js","./index-legacy.fea60f22.js","./index-legacy.6e10cd37.js","./index-legacy.c28809c6.js","./music-legacy.1b935274.js","./select-subject-legacy.71d46246.js","./index-legacy.c848501c.js","./icon_uploader-legacy.b178a553.js","./icon-xin-legacy.34fb9986.js","./icon_album-legacy.27017c0f.js","./icon_album_active-legacy.fcd6f4c0.js","./icon_exquisite-legacy.80eb242a.js","./icon_music_active-legacy.77693573.js","./icon-play-legacy.50b88257.js","./index-legacy.909b3c1c.js","./index-legacy.77670d98.js"],(function(e){"use strict";var n,i,a,s,c,u,l,d,m,f,p,g,_,h,v,b,j,y,x,I,w,S,C,k,T,z,L,P,N,D,O,R,G,A,B,M,E,H,q,Y,F,V,U,$,W,J,X,Z,K,Q,ee,te,ne,re,ie,ae,oe,se,ce,ue,le,de,me,fe,pe;return{setters:[function(e){n=e._,i=e.a,a=e.b,s=e.c,c=e.d,u=e.e,l=e.f,d=e.g,m=e.h,f=e.i,p=e.j,g=e.k,_=e.l,h=e.m,v=e.n,b=e.o,j=e.p,y=e.q,x=e.r,I=e.s,w=e.I},function(e){S=e.d,C=e.w,k=e.T,T=e.j,z=e.z,L=e.B,P=e.F,N=e.n,D=e.M,O=e.aR,R=e.Z,G=e.u,A=e.g,B=e.ba,M=e.D,E=e.C,H=e.b0,q=e.X},function(e){Y=e.C},function(){},function(){},function(e){F=e.T,V=e.a},function(e){U=e.S},function(e){$=e.C},function(e){W=e.C},function(e){J=e.I},function(e){X=e.F},function(e){Z=e.i},function(e){K=e.C},function(e){Q=e.A},function(e){ee=e.C},function(e){te=e.S},function(e){ne=e.T},function(e){re=e.o},function(e){ie=e.t},function(e){ae=e.L},function(e){oe=e.V},function(e){se=e.default},function(e){ce=e.a,ue=e.b},function(e){le=e.R},function(e){de=e.i},function(e){me=e.I,fe=e.a},function(e){pe=e.u},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var ge="_teacher-record_nb6q8_1",_e="_bgImg_nb6q8_22",he="_bg_nb6q8_22",ve="_teacherHeader_nb6q8_40",be="_single_1fc0b_1",je="_introduction_1fc0b_4",ye="_videoList_1fc0b_10",xe="_itemBg_1fc0b_16",Ie="_videoItem_1fc0b_25",we="_icon-upload_1fc0b_34",Se="_fansGroup_1fc0b_55",Ce="_fansImage_1fc0b_71",ke="_fansTitle_1fc0b_77",Te="_title_1fc0b_83",ze="_videoGroup_1fc0b_86",Le={filterTitle:"_filterTitle_cir06_1",fansGroup:"_fansGroup_cir06_9",introduce:"_introduce_cir06_19",fansImage:"_fansImage_cir06_25",fansTitle:"_fansTitle_cir06_31",joinContainer:"_joinContainer_cir06_37",joinText:"_joinText_cir06_40"},Pe=S({name:"joinChat",props:{item:{type:Object,default:{}},onClose:{type:Function,default:function(e){}}},data:function(){return{desc:""}},methods:{onJoinChat:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C.post("/api-student/imGroupMemberAudit/apply",{data:{groupId:e.item.id,auditStatus:"AUDITING",roleType:"STUDENT",desc:e.desc}});case 3:k("申请成功"),e.desc="",e.onClose&&e.onClose(e.item.id),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()}},render:function(){var e=this;return T(P,null,[T("div",{class:[Le.filterTitle,"van-hairline--bottom"]},[z("申请入群")]),T("div",{class:Le.joinContainer},[T(W,{center:!0,class:Le.fansGroup,border:!1},{icon:function(){return T(J,{src:e.item.img||(t="icon_fans.png",r="../images/".concat(t),{"../images/cert_active.png":n,"../images/cert_default.png":i,"../images/follow_bg.png":a,"../images/head_bg.png":s,"../images/icon-chat.png":c,"../images/icon-close.png":u,"../images/icon_fans.png":l,"../images/icon_subject.png":d,"../images/icon_video.png":m,"../images/live_active.png":f,"../images/live_bg.png":p,"../images/live_default.png":g,"../images/music_active.png":_,"../images/music_default.png":h,"../images/teacher-icon.png":v,"../images/video_active.png":b,"../images/video_default.png":j,"../images/vip_active.png":y,"../images/vip_default.png":x}[r].default),fit:"cover",class:Le.fansImage},null);var t,r},title:function(){return T("div",{class:Le.fansTitle},[T("div",{class:Le.title},[e.item.name]),T("p",{class:["van-ellipsis",Le.introduce]},[e.item.introduce])])}}),T(X,{type:"textarea",class:Le.joinText,rows:2,maxlength:200,modelValue:this.desc,"onUpdate:modelValue":function(t){return e.desc=t},placeholder:"请填写您的入群申请,会更快的被通过喔~"},null)]),T("div",{class:"btnGroup"},[T(L,{type:"primary",block:!0,round:!0,style:{width:"70%",margin:"0 auto"},onClick:this.onJoinChat},{default:function(){return[z("确认")]}})])])}});var Ne=function(e){var t="../images/".concat(e);return{"../images/cert_active.png":n,"../images/cert_default.png":i,"../images/follow_bg.png":a,"../images/head_bg.png":s,"../images/icon-chat.png":c,"../images/icon-close.png":u,"../images/icon_fans.png":l,"../images/icon_subject.png":d,"../images/icon_video.png":m,"../images/live_active.png":f,"../images/live_bg.png":p,"../images/live_default.png":g,"../images/music_active.png":_,"../images/music_default.png":h,"../images/teacher-icon.png":v,"../images/video_active.png":b,"../images/video_default.png":j,"../images/vip_active.png":y,"../images/vip_default.png":x}[t].default},De=S({name:"single",props:{userInfo:{type:Object,default:{}}},data:function(){return{videoStatus:!1,chatStatus:!1,teacherId:this.$route.query.teacherId,fansList:[],chatItem:{},videoItem:{},isAddBrowse:!1}},mounted:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C.post("/api-student/imGroup/queryTeacherGroup",{data:{type:"FAN",createUserId:e.teacherId}});case 3:n=t.sent,e.fansList=n.data||[],t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()},methods:{onDetail:function(e){var t=this;return o(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.hasWaitAuditFlag||e.existFlag){n.next=4;break}return t.chatStatus=!0,t.chatItem=e,n.abrupt("return");case 4:e.existFlag&&N({api:"joinChatGroup",content:{type:"multi",id:e.id}});case 5:case"end":return n.stop()}}),n)})))()},onPlay:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.isAddBrowse){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,C.get("/api-student/teacher/addVideoBrowse",{hideLoading:!0,params:{videoId:e.videoItem.id}});case 5:e.isAddBrowse=!1,t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()}},render:function(){var e,t,n=this,r=this.userInfo;return T("div",{class:be},[r.introduction&&T(U,{icon:"personal",title:"个人介绍",size:24,border:!1},{default:function(){return[T("p",{class:je},[r.introduction])]}}),r.styleVideo&&r.styleVideo.length>0&&T(U,{icon:"elegant",title:"老师风采",size:24,border:!1},{default:function(){return[T("div",{class:ye},[r.styleVideo.map((function(e){return T("div",{class:Ie},[T("div",{class:xe,onClick:function(){n.videoStatus=!0,n.isAddBrowse=!0,n.videoItem=e}},null),T(D,{class:we,name:Ne("icon_video.png"),size:26},null),T(J,{src:e.cover||Z,fit:"cover"},null)])}))])]}}),this.fansList&&this.fansList.length>0&&T(U,{icon:"fans",title:"粉丝群",size:24,border:!1},(t=e=this.fansList.map((function(e){return T(W,{center:!0,class:Se,border:!1},{icon:function(){return T(J,{src:e.img||Ne("icon_fans.png"),fit:"cover",class:Ce},null)},title:function(){return T("div",{class:ke},[T("div",{class:[Te,"van-ellipsis"]},[e.name]),T("p",{class:"van-ellipsis"},[e.introduce])])},default:function(){return T(L,{type:"primary",size:"small",round:!0,disabled:e.hasWaitAuditFlag,onClick:function(){return n.onDetail(e)}},{default:function(){return[e.existFlag?"去聊天":"",e.hasWaitAuditFlag?"审核中":"",e.hasWaitAuditFlag||e.existFlag?"":"申请入群"]}})}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!R(t)?e:{default:function(){return[e]}})),T(O,{show:this.chatStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return n.chatStatus=!1}},{default:function(){return[T(Pe,{item:n.chatItem,onClose:function(e){n.fansList.forEach((function(t){t.id===e&&(t.hasWaitAuditFlag=!0)})),n.chatStatus=!1}},null)]}}),T(O,{show:this.videoStatus,round:!0,class:ze,closeable:!0,onClose:function(){n.videoStatus=!1,n.isAddBrowse=!1}},{default:function(){var e;return[n.videoStatus&&T($,{playsinline:!0,onPlay:n.onPlay,src:(null===(e=n.videoItem)||void 0===e?void 0:e.videoUrl)+"#t=0.1"},null)]}})])}}),Oe="_practice_xjmim_1",Re="_group_xjmim_5",Ge="_price_xjmim_10",Ae="_rTag_xjmim_27",Be="_tag_xjmim_30",Me="_selectPopup_xjmim_34",Ee="_selectContainer_xjmim_39",He="_rTitle_xjmim_42",qe="_selectPopupContent_xjmim_45",Ye="_desc_xjmim_48",Fe="_times_xjmim_49",Ve="_selectBtn_xjmim_60",Ue="_btn_xjmim_65",$e="_arrangeCell_xjmim_88",We="_fixedBtn_xjmim_94",Je=S({name:"practice",props:{userInfo:{type:Object,default:{}}},data:function(){var e=this.$route.query;return{teacherId:e.teacherId,subjectId:e.subjectId,teacherSubjectList:[],subjectStatus:!1,subjectInfo:{subjectPrice:0,courseMinutes:0,subjectName:"",subjectId:0},courseNum:4,calendarStatus:!1,calendarList:[],selectCourseList:[],coursePlanStatus:!1,selectStatus:!1,coursePlanList:[],calendarDate:G().add(1,"day").toDate(),settingStatus:!0,loadDataStatus:!0}},mounted:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var n,r,i,a,o,s,c,u,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.loadDataStatus=!0,t.next=4,C.get("/api-student/courseSchedule/getTeacherSubjectPrice",{params:{teacherId:e.teacherId}});case 4:n=t.sent,e.loadDataStatus=!1,(r=n.data||[]).length>0?(a=e.subjectId||(null===(i=A.user.data)||void 0===i?void 0:i.subjectId),o=r.find((function(e){return e.subjectId===Number(a)})),s=o||r[0],c=s.subjectName,u=s.subjectPrice,l=s.courseMinutes,d=s.subjectId,e.subjectInfo={subjectPrice:u,courseMinutes:l,subjectName:c,subjectId:d},r.forEach((function(e){e.name=e.subjectName})),e.teacherSubjectList=r,e.getList(),e.onBuy(!0),e.settingStatus=!0):e.settingStatus=!1,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),e.loadDataStatus=!1;case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))()},computed:{showSelectList:function(){var e=r(this.selectCourseList);return e.forEach((function(e){e.title=G(e.startTime).format("YYYY-MM-DD")+" "+B(G(e.startTime).day())+" "+e.start+"~"+e.end})),e},selectType:function(){return this.selectCourseList.length<this.courseNum?"noEnough":"enough"}},methods:{onSubmit:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e.selectCourseList.length<=0)){t.next=3;break}return k("请选择课程时间"),t.abrupt("return");case 3:if(!(e.selectCourseList.length<e.courseNum)){t.next=6;break}return e.selectStatus=!0,t.abrupt("return");case 6:return t.next=8,e._lookCourse();case 8:case"end":return t.stop()}}),t)})))()},getList:function(e){var n=this;return o(regeneratorRuntime.mark((function r(){var i,a,o,s,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a=e||G().add(1,"day").toDate(),o={day:G(a).format("DD"),month:G(a).format("MM"),year:G(a).format("YYYY")},r.next=5,C.post("/api-student/courseSchedule/createPracticeCourseCalendar",{data:t(t({},o),{},{studentId:null===(i=A.user.data)||void 0===i?void 0:i.userId,teacherId:n.teacherId})});case 5:s=r.sent,c=s.data||[],u={},c.forEach((function(e){u[e.date]=e})),n.calendarList=u,n.calendarStatus=c.length>0,r.next=15;break;case 13:r.prev=13,r.t0=r.catch(0);case 15:case"end":return r.stop()}}),r,null,[[0,13]])})))()},onSelectDay:function(e){var n=e||[],i=r(this.selectCourseList);n.forEach((function(e){!i.some((function(t){return t.startTime===e.startTime}))&&i.push(t({},e))}));var a=[];i.forEach((function(e){n.some((function(t){return t.startTime===e.startTime}))&&a.push(e)})),a.sort((function(e,t){return e.startTime>t.startTime?1:e.startTime<t.startTime?-1:0})),console.log(a,"list"),this.selectCourseList=[].concat(a)},onCloseTag:function(e){var t=this;M.confirm({title:"提示",message:"您是否要删除该选择的课程?",confirmButtonColor:"var(--van-primary)"}).then((function(){var n=t.selectCourseList.findIndex((function(t){return t.startTime===e.startTime}));t.selectCourseList.splice(n,1)}))},_lookCourse:function(e){var n=this;return o(regeneratorRuntime.mark((function r(){var i,a,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=[],n.selectCourseList.forEach((function(e){i.push({startTime:e.startTime,endTime:e.endTime})})),r.next=5,C.post("/api-student/courseGroup/lockCourseToCache",{data:{courseNum:n.courseNum,courseType:"PRACTICE",loop:"noEnough"===n.selectType?1:0,teacherId:n.teacherId,timeList:[].concat(i)}});case 5:a=r.sent,(a.data||[]).forEach((function(e,r){n.coursePlanList[r]=t(t({},n.coursePlanList[r]),{},{startTime:e.startTime,endTime:e.endTime,classNum:r+1})})),n.coursePlanStatus=!0,n.selectStatus=!0,e&&e(),r.next=17;break;case 13:r.prev=13,r.t0=r.catch(0),o=r.t0.message,M.alert({title:"提示",confirmButtonColor:"var(--van-primary)",message:o}).then((function(){n.getList(n.calendarDate||new Date),n.selectCourseList=[],n.selectStatus=!1}));case 17:case"end":return r.stop()}}),r,null,[[0,13]])})))()},onReset:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.coursePlanStatus||"enough"===e.selectType?(e.selectStatus=!1,setTimeout((function(){e.coursePlanList=[]}),500)):"noEnough"===e.selectType&&(e.selectStatus=!1),setTimeout((function(){e.coursePlanStatus=!1}),500);case 2:case"end":return t.stop()}}),t)})))()},onSure:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.coursePlanStatus,t.next=3,e._lookCourse((function(){n&&(e.selectStatus=!1,e.onBuy())}));case 3:case"end":return t.stop()}}),t)})))()},onBuy:function(e){var t=this;return o(regeneratorRuntime.mark((function n(){var i,a,s,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,C.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"PRACTICE",bizId:t.teacherId}});case 3:i=n.sent,a=t.subjectInfo,(s=r(t.coursePlanList)).forEach((function(e){e.classDate=G(e.startTime).format("YYYY-MM-DD"),e.title="".concat(G(e.startTime).format("YYYY-MM-DD")," ").concat(B(G(e.startTime).day())," ").concat(G(e.startTime).format("HH:mm"),"~").concat(G(e.endTime).format("HH:mm"))})),re.orderObject.orderType="PRACTICE",re.orderObject.orderName=a.subjectName+"陪练课",re.orderObject.orderDesc=a.subjectName+"陪练课",re.orderObject.actualPrice=Number((t.courseNum*a.subjectPrice).toFixed(2)),re.orderObject.orderNo="",re.orderObject.orderList=[{orderType:"PRACTICE",goodsName:a.subjectName+"陪练课",courseGroupName:a.subjectName+"陪练课",courseIntroduce:a.subjectName+"陪练课",subjectId:a.subjectId,singleCourseMinutes:a.courseMinutes,courseNum:t.courseNum,coursePrice:(t.courseNum*a.subjectPrice).toFixed(2),teacherName:t.userInfo.username||"游客".concat(t.userInfo.userId||""),teacherId:t.userInfo.userId,starGrade:t.userInfo.starGrade,avatar:t.userInfo.heardUrl,classTime:s}],(c=i.data)?M.confirm({title:"提示",message:"您有一个未支付的订单,是否继续支付?",confirmButtonColor:"#269a93",cancelButtonText:"取消订单",confirmButtonText:"继续支付"}).then(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ie(c,t.routerTo);case 1:case"end":return e.stop()}}),e)})))).catch((function(){M.close(),t.cancelPayment(c.orderNo)})):!e&&t.routerTo(),n.next=19;break;case 17:n.prev=17,n.t0=n.catch(0);case 19:case"end":return n.stop()}}),n,null,[[0,17]])})))()},routerTo:function(){this.$router.push({path:"/orderDetail",query:{orderType:"PRACTICE"}})},cancelPayment:function(e){return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C.post("/api-student/userOrder/orderCancel",{data:{orderNo:e}});case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}},render:function(){var e=this;return T(P,null,[!this.loadDataStatus&&(this.settingStatus?T(P,null,[T("div",{class:Oe},[T(ee,{class:Re,border:!1},{default:function(){return[e.subjectInfo.subjectPrice>0&&T(W,{title:"陪练课收费"},{default:function(){return T("div",{class:Ge},[T("span",null,[z("¥"),e.$filters.moneyFormat(e.subjectInfo.subjectPrice)]),z("/"),e.subjectInfo.courseMinutes,z("分钟")])}}),T(W,{title:"选择专业",isLink:!0,value:e.subjectInfo.subjectName,onClick:function(){return e.subjectStatus=!0}},null),T(W,{title:"课时数"},{default:function(){return T(te,{modelValue:e.courseNum,"onUpdate:modelValue":function(t){return e.courseNum=t},theme:"round",max:12,min:1,buttonSize:22,onChange:function(){e.selectCourseList=[]}},null)}})]}}),this.calendarStatus&&T("div",{class:Re},[T(K,{selectList:this.selectCourseList,list:this.calendarList,maxDays:this.courseNum,nextMonth:function(t){return e.getList(t)},prevMonth:function(t){return e.getList(t)},selectDay:this.onSelectDay,calendarDate:this.calendarDate,"onUpdate:calendarDate":function(t){return e.calendarDate=t}},null)]),T(W,{class:[$e]},{title:function(){return T("div",{class:He},[T("span",null,[z("已选择课程时间")])])},label:function(){return T("div",{class:Ae},[e.showSelectList.map((function(t){return T(P,null,[T(ne,{plain:!0,round:!0,closeable:!0,size:"large",type:"primary",class:Be,onClose:function(){return e.onCloseTag(t)}},{default:function(){return[t.title]}}),T("br",null,null)])}))])}}),T(O,{show:this.selectStatus,class:Me},{default:function(){return[T("div",{class:Ee},[T("div",{class:He},[T("span",null,[z("提示")])]),T("div",{class:qe},[T("p",{class:Ye},["noEnough"!==e.selectType||e.coursePlanStatus?"您已选择以下上课时间段,时间段会暂时锁定,锁定期间学员不可购买该时间段课程。":"您所选择的上课时间未达到您输入的课时数,系统根据已选时间将自动按周顺延排课。"]),e.coursePlanList&&e.coursePlanList.length>0&&e.coursePlanStatus&&T("p",{class:Fe},[e.coursePlanList.map((function(e){return T("span",null,[G(e.startTime||new Date).format("YYYY-MM-DD")," ",G(e.startTime||new Date).format("HH:mm"),z("~"),G(e.endTime||new Date).format("HH:mm")])}))])]),T("div",{class:Ve},[T(L,{class:Ue,type:"primary",round:!0,block:!0,plain:!0,onClick:e.onReset},{default:function(){return["noEnough"===e.selectType?"继续选择":"重新选择"]}}),T(L,{class:Ue,type:"primary",round:!0,block:!0,onClick:e.onSure},{default:function(){return[z("确认")]}})])])]}}),T(Q,{show:this.subjectStatus,actions:this.teacherSubjectList,cancelText:"取消",closeOnClickAction:!0,onCancel:function(){return e.subjectStatus=!1},onSelect:function(t){var n=t.subjectName,r=t.subjectPrice,i=t.courseMinutes,a=t.subjectId;e.subjectInfo={subjectPrice:r,courseMinutes:i,subjectName:n,subjectId:a},e.subjectStatus=!1}},null)]),T("div",{class:["btnGroup",We],style:{background:"#fff",paddingTop:"10px"}},[T(L,{block:!0,round:!0,type:"primary",onClick:this.onSubmit},{default:function(){return[z("确认约课")]}})])]):T(E,{btnStatus:!1,classImgSize:"SMALL",tips:"老师暂未开放陪练课"},null))])}}),Xe="_liveList_zp23z_1",Ze="_liCover_zp23z_4",Ke="_liContent_zp23z_10",Qe="_liTitle_zp23z_17",et="_buyNum_zp23z_25",tt="_num_zp23z_26",nt="_price_zp23z_30",rt="_priceNum_zp23z_34",it="_label_zp23z_43",at="_liveGroup_zp23z_46",ot="_subjectName_zp23z_51",st="_timerString_zp23z_62";var ct=S({name:"live",data:function(){return{list:[],dataShow:!0,loading:!1,finished:!1,params:{teacherId:this.$route.query.teacherId,groupStatus:"APPLY",page:1,rows:20}}},mounted:function(){this.getList()},methods:{formatTime:function(e){var t=G(e||new Date);return t.format("YYYY-MM-DD")+"(".concat(["周日","周一","周二","周三","周四","周五","周六"][t.day()],")")},getList:function(){var e=this;return o(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=t({},e.params),A.version&&(r.version=A.version||"",r.platform="ios-student"),n.next=5,C.post("/api-student/courseGroup/queryPageCourseGroup",{data:t({},r)});case 5:if(i=n.sent,e.loading=!1,a=i.data||{},!(e.list.length>0&&1===a.pageNo)){n.next=10;break}return n.abrupt("return");case 10:e.list=e.list.concat(a.rows||[]),e.finished=a.pageNo>=a.totalPage,e.params.page=a.pageNo+1,e.dataShow=e.list.length>0,n.next=20;break;case 16:n.prev=16,n.t0=n.catch(0),e.dataShow=!1,e.finished=!0;case 20:case"end":return n.stop()}}),n,null,[[0,16]])})))()},onDetail:function(e){this.$router.push({path:"/liveDetail",query:{groupId:e.courseGroupId}})}},render:function(){var e,t,n=this;return T(P,null,[this.dataShow?T(ae,{class:Xe,loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},immediateCheck:!1,finished:this.finished,finishedText:"没有更多了"},(t=e=this.list.map((function(e){return T(ee,{class:at,border:!1,onClick:function(){return n.onDetail(e)}},{default:function(){return[T(W,{style:{paddingTop:"19px",paddingBottom:"19px"}},{icon:function(){return T("div",{style:{position:"relative",lineHeight:"0"}},[T(J,{class:Ze,src:e.backgroundPic,fit:"cover"},null),T("span",{class:ot},[null==e?void 0:e.subjectName])])},title:function(){return T("div",{class:Ke},[T("div",{class:[Qe,"van-ellipsis"]},[e.courseGroupName]),T("div",{class:nt},[e.coursePrice>0&&T(P,null,[T("span",{class:rt},[T("i",null,[z("¥")]),n.$filters.moneyFormat(e.coursePrice)])]),T("span",{class:it},[e.coursePrice>0&&"/",e.courseNum,z("课时")])])])}}),T(W,{titleStyle:{color:"#666666",fontSize:"13px"}},{title:function(){return T("span",{class:st},[n.formatTime(e.salesStartDate)])},default:function(){return T("div",null,[1===e.existBuy?T("span",{class:et},[z("已购买")]):T("span",{class:tt},[e.studentCount,z("人已购买")])])}})]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!R(t)?e:{default:function(){return[e]}})):T(E,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无直播课"},null)])}}),ut="_videoList_1yf9v_1";var lt=S({name:"VideoList",data:function(){return{list:[],dataShow:!0,loading:!1,finished:!1,params:{teacherId:this.$route.query.teacherId,page:1,rows:20}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;return o(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=t({},e.params),A.version&&(r.version=A.version||"",r.platform="ios-student"),n.next=5,C.post("/api-student/videoLesson/selectGroup",{data:t({},r)});case 5:if(i=n.sent,e.loading=!1,a=i.data||{},!(e.list.length>0&&1===a.pageNo)){n.next=10;break}return n.abrupt("return");case 10:e.list=e.list.concat(a.rows||[]),e.finished=a.pageNo>=a.totalPage,e.params.page=a.pageNo+1,e.dataShow=e.list.length>0,n.next=20;break;case 16:n.prev=16,n.t0=n.catch(0),e.dataShow=!1,e.finished=!0;case 20:case"end":return n.stop()}}),n,null,[[0,16]])})))()},onDetail:function(e){this.$router.push({path:"/videoDetail",query:{groupId:e.id}})}},render:function(){var e,t,n=this;return T(P,null,[this.dataShow?T(ae,{class:ut,loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,immediateCheck:!1,finishedText:"没有更多了",onLoad:this.getList},(t=e=this.list.map((function(e){return T(oe,{item:e,onClick:n.onDetail},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!R(t)?e:{default:function(){return[e]}})):T(E,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无视频课"},null)])}}),dt=S({name:"music",data:function(){return{teacherId:this.$route.query.teacherId,list:[],dataShow:!1,loading:!1,finished:!1,params:{page:1,rows:20}}},methods:{onItemClick:function(e){this.$router.push({path:"/music-detail",query:{id:e.id}})}},render:function(){return T(P,null,[T(se,{hideSearch:!0,myself:!0,onItemClick:this.onItemClick,teacherId:this.teacherId},null)])}}),mt=function(e){var t="../images/".concat(e);return{"../images/cert_active.png":n,"../images/cert_default.png":i,"../images/follow_bg.png":a,"../images/head_bg.png":s,"../images/icon-chat.png":c,"../images/icon-close.png":u,"../images/icon_fans.png":l,"../images/icon_subject.png":d,"../images/icon_video.png":m,"../images/live_active.png":f,"../images/live_bg.png":p,"../images/live_default.png":g,"../images/music_active.png":_,"../images/music_default.png":h,"../images/teacher-icon.png":v,"../images/video_active.png":b,"../images/video_default.png":j,"../images/vip_active.png":y,"../images/vip_default.png":x}[t].default},ft=S({name:"teacher-header",props:{userInfo:{type:Object,default:{}},teacherId:{type:String||Number,default:""}},data:function(){return{iconShow:!1}},computed:{subjectNameList:function(){var e=this.userInfo.subjectName;return e?e.split(","):[]},starGrade:function(){var e=this.userInfo.starGrade;return Number(e)||0}},methods:{onStart:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=e.userInfo.isStar?0:1,t.next=4,C.get("/api-student/teacher/starOrUnStar",{params:{userId:e.teacherId,starStatus:n}});case 4:e.userInfo.isStar=n,r=n?e.userInfo.fansNum+1:e.userInfo.fansNum-1,e.userInfo.fansNum=r<=0?0:r,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})))()},checkBadge:function(e){var t=!1,n=this.userInfo;switch(e){case"STYLE":case"VIDEO":case"LIVE":case"MUSIC":n.tag&&(t=n.tag.indexOf(e)>-1);break;case"VIP":t=n.isVip>0;break;default:t=!1}return t},openTeacherIcon:function(){this.iconShow=!0}},render:function(){var e=this,t=[{icon:"cert_active.png",title:"演奏Mlog达人",des:"个人风采中上传老师风采视频并通过审核"},{icon:"video_active.png",title:"教学视频达人",des:"发布您制作的教学视频课程并通过审核"},{icon:"live_active.png",title:"直播up达人",des:"达到开通直播权限标准并开通直播功能"},{icon:"music_active.png",title:"乐谱歌单达人",des:"上传您制作的乐谱并通过审核"}];return T(P,null,[T("div",{class:I.headerContent},[T("div",{class:I.headerCount},[T("div",{class:I.teacherContent},[T("div",{class:I.teacherIcon,onClick:function(){1===e.userInfo.liveing&&N({api:"joinLiveRoom",content:{roomId:e.userInfo.roomUid,teacherId:e.userInfo.userId}})}},[T(J,{class:[I.avatar,this.checkBadge("VIP")&&I.avatarActive],round:!0,src:this.userInfo.heardUrl||de,fit:"cover"},null),1===this.userInfo.liveing&&T("p",{class:I.liveTag},[z("直播中")]),T(J,{class:I.teacherIconVip,src:this.checkBadge("VIP")?mt("vip_active.png"):mt("vip_default.png")},null)]),T("div",{class:I.teacherOperation},[T(L,{type:"primary",size:"small",plain:!0,round:!0,class:[I.btn,this.userInfo.isStar?I.btnStar:""],onClick:this.onStart},{default:function(){return[e.userInfo.isStar?"已关注":"关注"]}}),T(L,{type:"primary",size:"small",round:!0,style:{marginLeft:"5px"},class:I.btn,icon:w,onClick:function(){N({api:"joinChatGroup",content:{type:"single",id:e.userInfo.imUserId}})}},{default:function(){return[z("聊天")]}})])]),T("div",{class:I.teacherInfo},[T("div",{class:I.teacherInfoName},[this.userInfo.username||"游客".concat(this.userInfo.userId||"")]),this.userInfo.degreeFlag?T("img",{src:me},null):null,this.userInfo.teacherFlag?T("img",{src:fe},null):null]),T("div",{class:I.teacherHonor},[T("div",null,[z("勋章:")]),T("div",{class:I.teacherIcons,onClick:this.openTeacherIcon},[T(J,{class:I.iconOther,src:this.checkBadge("STYLE")?mt("cert_active.png"):mt("cert_default.png")},null),T(J,{class:I.iconOther,src:this.checkBadge("VIDEO")?mt("video_active.png"):mt("video_default.png")},null),T(J,{class:I.iconOther,src:this.checkBadge("LIVE")?mt("live_active.png"):mt("live_default.png")},null),T(J,{class:I.iconOther,src:this.checkBadge("MUSIC")?mt("music_active.png"):mt("music_default.png")},null)]),T("div",{class:I.score},[z("评分:")]),T("div",{class:I.level},[this.starGrade?T(le,{readonly:!0,modelValue:this.starGrade,iconPrefix:"iconfont",color:"#FFC459","void-icon":"star_default",icon:"star_active",size:15},null):T("span",{style:{fontSize:"12px",color:"#999999"}},[z("暂无评分")])])]),T("div",{class:I.piNameSubject},[T(J,{class:I.subjectSection,src:mt("icon_subject.png"),fit:"contain"},null),T("div",{class:I.subjectList},[this.subjectNameList.map((function(e){return T("span",{class:I.subject},[e])}))])]),T("div",{class:I["teacher-bottom"]},[T("div",{class:I["teacher-data"]},[T("div",{class:I["teacher-data_item"]},[z("粉丝 "),T("span",null,[this.userInfo.fansNum||0])]),T("div",{class:I["teacher-data_item"]},[z("已上课时 "),T("span",null,[this.userInfo.expTime||0])])])])])]),T(O,{class:I.teaherPopup,show:this.iconShow,"onUpdate:show":function(t){return e.iconShow=t}},{default:function(){return[T(J,{src:mt("teacher-icon.png")},null),T("div",{class:I.teacherIconWrap},[t.map((function(e){return T("div",{class:I.teacherIconItem},[T("div",{class:I.teacherIconItemTop},[T(J,{src:mt(e.icon)},null),T("div",{class:I.teacherIconTitle},[e.title])]),T("div",{class:I.teacherIconDes},[e.des])])}))]),T(J,{onClick:function(){return e.iconShow=!1},class:I.closeIcon,src:mt("icon-close.png")},null)]}})])}});e("getAssetsHomeFile",(function(e){var t="./images/".concat(e);return{"./images/cert_active.png":n,"./images/cert_default.png":i,"./images/follow_bg.png":a,"./images/head_bg.png":s,"./images/icon-chat.png":c,"./images/icon-close.png":u,"./images/icon_fans.png":l,"./images/icon_subject.png":d,"./images/icon_video.png":m,"./images/live_active.png":f,"./images/live_bg.png":p,"./images/live_default.png":g,"./images/music_active.png":_,"./images/music_default.png":h,"./images/teacher-icon.png":v,"./images/video_active.png":b,"./images/video_default.png":j,"./images/vip_active.png":y,"./images/vip_default.png":x}[t].default})),e("default",S({name:"teacherHome",data:function(){var e=sessionStorage.getItem("teacherHomeTabs")||"",t=this.$route.query;return{teacherId:t.teacherId,tabs:e||t.tabs||"single",userInfo:{},background:"rgba(55, 205, 177, 0)",headColor:"#fff",height:"auto",backIconColor:"white",homeContaiterHeight:""}},created:function(){return o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},mounted:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getTeacherDetail(),H("webViewOnResume",(function(){e.getTeacherDetail()})),ce(document,"scroll",(function(t){ue().y.value>52?(e.headColor="#000",e.background="#fff",e.backIconColor="black"):(e.background="transparent",e.headColor="#fff",e.backIconColor="white")})),pe("达人风采");case 4:case"end":return t.stop()}}),t)})))()},methods:{getTeacherDetail:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,C.get("/api-student/teacher/queryTeacherHome",{params:{userId:e.teacherId}});case 3:n=t.sent,e.userInfo=n.data,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})))()}},render:function(){var e=this;return T("div",{class:ge},[T("div",{ref:"headers"},[T(Y,{background:this.background,border:!1,color:this.headColor,backIconColor:this.backIconColor,onHeaderBack:function(){e.$nextTick((function(){var t=q(e.$refs.headers).height;e.height=t}))}},null)]),T("img",{class:_e,src:this.userInfo.heardUrl},null),T("div",{class:he},null),T("div",{class:ve},[T(ft,{userInfo:this.userInfo,teacherId:this.teacherId},null)]),T(F,{color:"var(--van-primary)",background:"#f8f9fc",shrink:!0,lineWidth:20,sticky:!0,offsetTop:this.height,active:this.tabs,"onUpdate:active":function(t){return e.tabs=t},onChange:function(){sessionStorage.setItem("teacherHomeTabs",e.tabs)}},{default:function(){return[T(V,{title:"个人风采",name:"single"},{default:function(){return[T("div",{style:{minHeight:e.homeContaiterHeight}},["single"===e.tabs&&T(De,{userInfo:e.userInfo},null)])]}}),T(V,{title:"陪练课",name:"practice"},{default:function(){return[T("div",{style:{minHeight:e.homeContaiterHeight}},["practice"===e.tabs&&T(Je,{userInfo:e.userInfo},null)])]}}),T(V,{title:"直播课",name:"live"},{default:function(){return[T("div",{style:{minHeight:e.homeContaiterHeight}},["live"===e.tabs&&T(ct,null,null)])]}}),T(V,{title:"视频课",name:"video"},{default:function(){return[T("div",{style:{minHeight:e.homeContaiterHeight}},["video"===e.tabs&&T(lt,null,null)])]}}),T(V,{title:"乐谱",name:"music"},{default:function(){return[T("div",{style:{minHeight:e.homeContaiterHeight}},["music"===e.tabs&&T(dt,null,null)])]}})]}})])}}))}}}))}();
|