1 |
- !function(){function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function t(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?e(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,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 i(e,t,r,i,n,o,a){try{var s=e[o](a),c=s.value}catch(_){return void r(_)}s.done?t(c):Promise.resolve(c).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}var o=document.createElement("style");o.innerHTML="._classHeader_7iogr_1{background:linear-gradient(#59e5d5,30%,#ffffff)}._teacher-elegant_7iogr_4 .van-list__loading,._teacher-elegant_7iogr_4 .van-list__finished-text,._teacher-elegant_7iogr_4 .van-list__error-text{width:100%}._label_7iogr_9{margin-right:.21333rem;font-size:.37333rem}._label_7iogr_9 .van-list__loading,._label_7iogr_9 .van-list__finished-text,._label_7iogr_9 .van-list__error-text{width:100%}._label_7iogr_9 .iconfont-down{margin-left:.10667rem}._elegant_7iogr_21{display:flex;justify-content:space-between;flex-wrap:wrap;padding:.37333rem}._itemBg_7iogr_27{position:absolute;top:0;left:0;bottom:0;width:100%;height:100%;z-index:89}._tedeoItem_7iogr_36{border-radius:.21333rem;background-color:#fff;overflow:hidden;width:4.48rem;margin-bottom:.32rem;position:relative}._tedeoItem_7iogr_36 ._teCover_7iogr_44{height:2.50667rem;width:100%;vertical-align:middle;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}._tedeoItem_7iogr_36 ._teSection_7iogr_54{padding:.21333rem}._tedeoItem_7iogr_36 ._teTitle_7iogr_57{font-size:.37333rem;color:#1a1a1a;line-height:.53333rem}._tedeoItem_7iogr_36 ._info_7iogr_62{display:flex;align-items:center;justify-content:space-between}._tedeoItem_7iogr_36 ._teUserInfo_7iogr_67{display:flex;align-items:center;font-size:.32rem;color:#999;padding:.05333rem 0}._tedeoItem_7iogr_36 ._teUserInfo_7iogr_67 ._teUserLogo_7iogr_74{width:.48rem;height:.48rem;border-radius:50%;margin-right:.13333rem;overflow:hidden}._tedeoItem_7iogr_36 ._teUserInfo_7iogr_67 ._teUserName_7iogr_81{padding-right:.16rem;margin-right:.16rem;max-width:1.73333rem}._tedeoItem_7iogr_36 ._teUserNum_7iogr_86{color:#999}._searchContainer_7iogr_89{background-color:#fff}._item_7iogr_27{display:flex;align-items:center;justify-content:space-between;padding:.37333rem}._item_7iogr_27 ._searchItem_7iogr_98{width:4.48rem;height:1.49333rem}._item_7iogr_27 ._title_7iogr_102{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem;padding-top:.26667rem;padding-left:2rem}._item_7iogr_27 ._content_7iogr_110{padding-left:2rem;font-size:.32rem;color:#666;line-height:.53333rem}._item_7iogr_27 ._searchFollow_7iogr_116{background:url(./assets/follow_bg.cb00a284.png) no-repeat center;background-size:100%}._item_7iogr_27 ._active_7iogr_120 ._title_7iogr_102,._item_7iogr_27 ._active_7iogr_120 ._content_7iogr_110{color:#ff1f95}._item_7iogr_27 ._searchLive_7iogr_124{background:url(./assets/live_bg.297fb1e3.png) no-repeat center;background-size:100%}._item_7iogr_27 ._active2_7iogr_128 ._title_7iogr_102,._item_7iogr_27 ._active2_7iogr_128 ._content_7iogr_110{color:var(--van-primary)}._searchDefault_7iogr_132{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_7iogr_132 ._star_7iogr_142{margin-right:.13333rem}._video_7iogr_145{position:absolute;left:0;top:0;width:100%;min-height:100%;background-color:#ccc;border-radius:.10667rem .10667rem 0 0}._living_7iogr_154{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_7iogr_154 span{padding-left:.13333rem}._animation_7iogr_171{height:.48rem!important;width:.53333rem!important}\n",document.head.appendChild(o),System.register(["./index-legacy.81a64bb6.js","./index-legacy.b2528a15.js","./index-legacy.a87134f4.js","./index-legacy.9cbe7ce8.js","./index-legacy.4f922f18.js","./index-legacy.ca42ae97.js","./organ-search-legacy.f6ba267e.js","./icon_teacher-legacy.42ba77b1.js","./icon_upload_poster-legacy.6c5487e0.js","./bars-legacy.9085ff9b.js","./hooks-legacy.fb8d6c34.js","./index-legacy.f75b8290.js","./use-height-legacy.2a153aaf.js","./index-legacy.207dc8c2.js","./index-legacy.ab501af1.js","./use-id-legacy.4f071235.js","./use-tab-status-legacy.5c2c2da3.js","./index-legacy.edff980f.js"],(function(e){"use strict";var r,i,o,a,s,c,_,l,u,g,d,f,m,h,p,b,v,j,y,w;return{setters:[function(e){r=e.C},function(e){i=e.d,o=e.e,a=e.s,s=e.i,c=e.N,_=e.A,l=e.C,u=e.aT,g=e.$},function(e){d=e.C},function(e){f=e.L},function(e){m=e.S},function(e){h=e.I},function(e){p=e.O},function(e){b=e.i},function(e){v=e.i},function(e){j=e.b},function(e){y=e.a,w=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var x="_classHeader_7iogr_1",S="_teacher-elegant_7iogr_4",I="_label_7iogr_9",N="_elegant_7iogr_21",O="_itemBg_7iogr_27",k="_tedeoItem_7iogr_36",L="_teCover_7iogr_44",P="_teSection_7iogr_54",U="_info_7iogr_62",z="_teUserInfo_7iogr_67",C="_teUserLogo_7iogr_74",D="_teUserName_7iogr_81",E="_teUserNum_7iogr_86",T="_living_7iogr_154",H="_animation_7iogr_171";e("default",i({data:function(){return{searchStatus:!1,openStatus:!1,subjectList:[],params:{username:"",page:1,subjectId:null,subjectName:"全部声部"},dataShow:!0,loading:!1,finished:!1,list:[],height:"auto"}},mounted:function(){var e=this;return n(regeneratorRuntime.mark((function t(){var r,i,n,s,c,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,o.get("/api-student/subject/subjectSelect");case 3:r=t.sent,e.subjectList=r.data||[],t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:return(i=y(w.ELEGANT)).id?(e.params.subjectId=Number(i.id),e.params.subjectName=i.name):(s=e.subjectList,c=(null===(n=a.user.data)||void 0===n?void 0:n.subjectId)||"",_=c?Number(c.split(",")[0]):null,s.forEach((function(t){(t.subjects||[]).forEach((function(t){t.id===Number(_)&&(e.params.subjectId=t.id,e.params.subjectName=t.name)}))}))),t.next=13,e.getList();case 13:sessionStorage.removeItem("teacherHomeTabs");case 14:case"end":return t.stop()}}),t,null,[[0,7]])})))()},computed:{filterDot:function(){return!!this.params.subjectId}},methods:{getList:function(){var e=this;return n(regeneratorRuntime.mark((function r(){var i,n,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,i=t({},e.params),a.version&&(i.version=a.version||"",i.platform="ios-student"),r.next=5,o.post("/api-student/teacher/stylePage",{data:t({},i)});case 5:if(n=r.sent,e.loading=!1,s=n.data||{},!(e.list.length>0&&1===s.pageNo)){r.next=10;break}return r.abrupt("return");case 10:e.list=e.list.concat(s.rows||[]),e.finished=s.pageNo>=s.totalPage,e.params.page=s.pageNo+1,e.dataShow=e.list.length>0,r.next=20;break;case 16:r.prev=16,r.t0=r.catch(0),e.dataShow=!1,e.finished=!0;case 20:case"end":return r.stop()}}),r,null,[[0,16]])})))()},onSort:function(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.params.subjectId&&y(w.ELEGANT,JSON.stringify({id:this.params.subjectId,name:this.params.subjectName}),"set"),this.getList()},onSearch:function(e){this.params.username=e,this.onSort()},onDetail:function(e){this.$router.push({path:"/teacherHome",query:{teacherId:e.userId}})}},render:function(){var e,t,i=this;return s("div",{class:S},[s(m,{offsetTop:0,position:"top"},{default:function(){return[s("div",{ref:"header"},[s(r,{class:x,border:!1,background:"transparent",isFixed:!1},null),s(d,{placeholder:"请输入老师名称",onSearch:i.onSearch},{left:function(){return s("div",{class:I,onClick:function(){i.searchStatus=!i.searchStatus,i.openStatus=!i.openStatus}},[i.params.subjectName,s(c,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?s(f,{loading:this.loading,"onUpdate:loading":function(e){return i.loading=e},finished:this.finished,finishedText:" ",immediateCheck:!1,class:[N],onLoad:this.getList},(t=e=this.list.map((function(e){return s("div",{class:k},[s("div",{class:O,onClick:function(){i.onDetail(e)}},null),s("div",{class:L},[s(h,{src:e.cover||v,fit:"cover"},null),1===e.living&&s("div",{class:T},[s(h,{src:j,class:H},null),s("span",null,[_("直播中")])])]),s("div",{class:P},[s("div",{class:U},[s("div",{class:z},[s(h,{src:e.avatar||b,class:C},null),s("span",{class:[D,"van-hairline--right van-ellipsis"]},[(null==e?void 0:e.username)||"游客".concat((null==e?void 0:e.userId)||"")])]),s("span",{class:E},[e.browse,_("浏览")])])])])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}})):s(l,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无老师风采"},null),s(u,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return i.searchStatus=!1},onClosed:function(){return i.openStatus=!1}},{default:function(){return[i.openStatus&&s(p,{subjectList:i.subjectList,onSort:i.onSort,modelValue:i.params.subjectId,"onUpdate:modelValue":function(e){return i.params.subjectId=e},subjectName:i.params.subjectName,"onUpdate:subjectName":function(e){return i.params.subjectName=e}},null)]}})])}}))}}}))}();
|