1 |
- !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r,n,a,i,s){try{var o=e[i](s),c=o.value}catch(_){return void r(_)}o.done?t(c):Promise.resolve(c).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var s=e.apply(t,r);function o(e){n(s,a,i,o,c,"next",e)}function c(e){n(s,a,i,o,c,"throw",e)}o(void 0)}))}}var i=document.createElement("style");i.innerHTML="._classHeader_1fm8r_1{background:linear-gradient(#59e5d5,30%,#ffffff)}._teacher-elegant_1fm8r_4 .van-list__loading,._teacher-elegant_1fm8r_4 .van-list__finished-text,._teacher-elegant_1fm8r_4 .van-list__error-text{width:100%}._label_1fm8r_9{margin-right:.21333rem;font-size:.37333rem}._label_1fm8r_9 .van-list__loading,._label_1fm8r_9 .van-list__finished-text,._label_1fm8r_9 .van-list__error-text{width:100%}._label_1fm8r_9 .iconfont-down{margin-left:.10667rem}._elegant_1fm8r_21{display:flex;justify-content:space-between;flex-wrap:wrap;padding:.37333rem}._itemBg_1fm8r_27{position:absolute;top:0;left:0;bottom:0;width:100%;height:100%;z-index:89}._tedeoItem_1fm8r_36{border-radius:.10667rem .10667rem 0 0;background-color:#fff;overflow:hidden;width:4.48rem;margin-bottom:.32rem;position:relative}._tedeoItem_1fm8r_36 ._teCover_1fm8r_44{height:2.93333rem;width:100%;vertical-align:middle;overflow:hidden;position:relative}._tedeoItem_1fm8r_36 ._teSection_1fm8r_51{padding:.21333rem}._tedeoItem_1fm8r_36 ._teTitle_1fm8r_54{font-size:.37333rem;color:#1a1a1a;line-height:.53333rem}._tedeoItem_1fm8r_36 ._info_1fm8r_59{display:flex;align-items:center;justify-content:space-between}._tedeoItem_1fm8r_36 ._teUserInfo_1fm8r_64{display:flex;align-items:center;font-size:.32rem;color:#999;padding:.21333rem 0}._tedeoItem_1fm8r_36 ._teUserInfo_1fm8r_64 ._teUserLogo_1fm8r_71{width:.48rem;height:.48rem;border-radius:50%;margin-right:.13333rem;overflow:hidden}._tedeoItem_1fm8r_36 ._teUserInfo_1fm8r_64 ._teUserName_1fm8r_78{padding-right:.16rem;margin-right:.16rem}._tedeoItem_1fm8r_36 ._teUserNum_1fm8r_82{color:#999}._searchContainer_1fm8r_85{background-color:#fff}._item_1fm8r_27{display:flex;align-items:center;justify-content:space-between;padding:.37333rem}._item_1fm8r_27 ._searchItem_1fm8r_94{width:4.48rem;height:1.49333rem}._item_1fm8r_27 ._title_1fm8r_98{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem;padding-top:.26667rem;padding-left:2rem}._item_1fm8r_27 ._content_1fm8r_106{padding-left:2rem;font-size:.32rem;color:#666;line-height:.53333rem}._item_1fm8r_27 ._searchFollow_1fm8r_112{background:url(./assets/follow_bg.cb00a284.png) no-repeat center;background-size:100%}._item_1fm8r_27 ._active_1fm8r_116 ._title_1fm8r_98,._item_1fm8r_27 ._active_1fm8r_116 ._content_1fm8r_106{color:#ff1f95}._item_1fm8r_27 ._searchLive_1fm8r_120{background:url(./assets/live_bg.297fb1e3.png) no-repeat center;background-size:100%}._item_1fm8r_27 ._active2_1fm8r_124 ._title_1fm8r_98,._item_1fm8r_27 ._active2_1fm8r_124 ._content_1fm8r_106{color:var(--van-primary)}._searchDefault_1fm8r_128{margin:0 0 .32rem .37333rem;display:inline-flex;align-items:center;padding:.10667rem .21333rem;border-radius:.53333rem;color:#666;font-size:.34667rem;background:#f7f8f9}._searchDefault_1fm8r_128 ._star_1fm8r_138{margin-right:.13333rem}._video_1fm8r_141{position:absolute;left:0;top:0;width:100%;min-height:100%;background-color:#ccc;border-radius:.10667rem .10667rem 0 0}._living_1fm8r_150{position:absolute;top:0;left:0;color:#fff;font-weight:500;right:0;display:flex;align-items:center;justify-content:center;font-size:.42667rem;bottom:0;background:rgba(51,51,51,.5)}._living_1fm8r_150 span{padding-left:.13333rem}._animation_1fm8r_167{height:.48rem!important;width:.53333rem!important}\n",document.head.appendChild(i),System.register(["./index-legacy.ce11867a.js","./index-legacy.dc694a0c.js","./index-legacy.f0f24c68.js","./index-legacy.fa508478.js","./index-legacy.50e89744.js","./index-legacy.1b582b3f.js","./organ-search-legacy.b211b446.js","./icon_teacher-legacy.00e7cdce.js","./bars-legacy.9085ff9b.js","./use-height-legacy.76ab441b.js","./index-legacy.0c69c28d.js","./index-legacy.70c418b2.js","./use-id-legacy.93f000a4.js","./use-tab-status-legacy.bece62ce.js","./index-legacy.b6df77cb.js"],(function(e){"use strict";var r,n,i,s,o,c,_,f,l,m,u,d,g,h,p,b,v;return{setters:[function(e){r=e.C},function(e){n=e.d,i=e.s,s=e.b,o=e.i,c=e.L,_=e.w,f=e.ak,l=e.C,m=e.ab},function(e){u=e.C},function(e){d=e.L},function(e){g=e.S},function(e){h=e.I},function(e){p=e.O},function(e){b=e.i},function(e){v=e.b},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="_classHeader_1fm8r_1",y="_teacher-elegant_1fm8r_4",w="_label_1fm8r_9",S="_elegant_1fm8r_21",I="_itemBg_1fm8r_27",x="_tedeoItem_1fm8r_36",k="_teCover_1fm8r_44",O="_teSection_1fm8r_51",L="_teTitle_1fm8r_54",N="_info_1fm8r_59",P="_teUserInfo_1fm8r_64",U="_teUserLogo_1fm8r_71",z="_teUserName_1fm8r_78",C="_teUserNum_1fm8r_82",D="_video_1fm8r_141",T="_living_1fm8r_150",E="_animation_1fm8r_167";e("default",n({data:function(){var e,t=sessionStorage.getItem("elegantSubjectId");return{sessionSubjectId:t,searchStatus:!1,openStatus:!1,subjectList:[],params:{username:"",page:1,subjectId:t||(null===(e=i.user.data)||void 0===e?void 0:e.subjectId)||null,subjectName:""},dataShow:!0,loading:!1,finished:!1,list:[],height:"auto"}},mounted:function(){var e=this;return a(regeneratorRuntime.mark((function t(){var r,n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.get("/api-student/subject/subjectSelect");case 3:n=t.sent,e.subjectList=n.data||[],t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:return a="",e.subjectList.forEach((function(t){var r;null===(r=t.subjects)||void 0===r||r.forEach((function(t){t.id===Number(e.sessionSubjectId)&&(a=t.name)}))})),e.params.subjectName=a||(null===(r=i.user.data)||void 0===r?void 0:r.subjectName)||"",t.next=14,e.getList();case 14:sessionStorage.removeItem("teacherHomeTabs"),sessionStorage.removeItem("elegantSubjectId");case 16:case"end":return t.stop()}}),t,null,[[0,7]])})))()},computed:{filterDot:function(){return!!this.params.subjectId}},methods:{getList:function(){var e=this;return a(regeneratorRuntime.mark((function r(){var n,a,i;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=e.params,r.next=4,s.post("/api-student/teacher/stylePage",{data:t({},n)});case 4:if(a=r.sent,e.loading=!1,i=a.data||{},!(e.list.length>0&&1===i.pageNo)){r.next=9;break}return r.abrupt("return");case 9:e.list=e.list.concat(i.rows||[]),e.finished=i.pageNo>=i.totalPage,e.params.page=i.pageNo+1,e.dataShow=e.list.length>0,r.next=19;break;case 15:r.prev=15,r.t0=r.catch(0),e.dataShow=!1,e.finished=!0;case 19:case"end":return r.stop()}}),r,null,[[0,15]])})))()},onSort:function(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.getList()},onSearch:function(e){this.params.username=e,this.onSort()},onDetail:function(e){this.params.subjectId&&sessionStorage.setItem("elegantSubjectId",this.params.subjectId),this.$router.push({path:"/teacherHome",query:{teacherId:e.userId}})}},render:function(){var e,t,n=this;return o("div",{class:y},[o(g,{offsetTop:0,position:"top"},{default:function(){return[o("div",{ref:"header"},[o(r,{class:j,border:!1,background:"transparent",isFixed:!1},null),o(u,{placeholder:"请输入老师名称",onSearch:n.onSearch},{left:function(){return o("div",{class:w,onClick:function(){n.searchStatus=!n.searchStatus,n.openStatus=!n.openStatus}},[n.params.subjectName,o(c,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?o(d,{loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",immediateCheck:!1,class:[S],onLoad:this.getList},(t=e=this.list.map((function(e){return o("div",{class:x},[o("div",{class:I,onClick:function(){n.onDetail(e)}},null),o("div",{class:k},[o("video",{width:"100%",class:D},[o("source",{src:e.videoUrl+"#t=1,3",type:"video/mp4"},null)]),1===e.living&&o("div",{class:T},[o(h,{src:v,class:E},null),o("span",null,[_("播放中")])])]),o("div",{class:O},[o("div",{class:[L,"van-ellipsis"]},[e.lessonName]),o("div",{class:N},[o("div",{class:P},[o(h,{src:e.avatar||b,class:U},null),o("span",{class:[z,"van-hairline--right"]},[(null==e?void 0:e.username)||"游客".concat((null==e?void 0:e.userId)||"")])]),o("span",{class:C},[e.browse,_("浏览")])])])])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}})):o(l,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无老师风采"},null),o(m,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return n.searchStatus=!1},onClosed:function(){return n.openStatus=!1}},{default:function(){return[n.openStatus&&o(p,{subjectList:n.subjectList,onSort:n.onSort,modelValue:n.params.subjectId,"onUpdate:modelValue":function(e){return n.params.subjectId=e},subjectName:n.params.subjectName,"onUpdate:subjectName":function(e){return n.params.subjectName=e}},null)]}})])}}))}}}))}();
|