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 s=null!=arguments[n]?arguments[n]:{};n%2?e(Object(s),!0).forEach((function(e){r(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,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,s,a,i){try{var o=e[a](i),c=o.value}catch(f){return void r(f)}o.done?t(c):Promise.resolve(c).then(n,s)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(s,a){var i=e.apply(t,r);function o(e){n(i,s,a,o,c,"next",e)}function c(e){n(i,s,a,o,c,"throw",e)}o(void 0)}))}}var a=document.createElement("style");a.innerHTML="._classHeader_1s2fr_1{background:linear-gradient(#59e5d5,30%,#ffffff)}._teacher-elegant_1s2fr_4 .van-list__loading,._teacher-elegant_1s2fr_4 .van-list__finished-text,._teacher-elegant_1s2fr_4 .van-list__error-text{width:100%}._label_1s2fr_9{margin-right:.21333rem;font-size:.37333rem}._label_1s2fr_9 .van-list__loading,._label_1s2fr_9 .van-list__finished-text,._label_1s2fr_9 .van-list__error-text{width:100%}._label_1s2fr_9 .iconfont-down{margin-left:.10667rem}._elegant_1s2fr_21{display:flex;justify-content:space-between;flex-wrap:wrap;padding:.37333rem}._itemBg_1s2fr_27{position:absolute;top:0;left:0;bottom:0;width:100%;height:100%;z-index:89}._tedeoItem_1s2fr_36{border-radius:.21333rem;background-color:#fff;overflow:hidden;width:4.48rem;margin-bottom:.32rem;position:relative}._tedeoItem_1s2fr_36 ._teCover_1s2fr_44{height:2.50667rem;width:100%;vertical-align:middle;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}._tedeoItem_1s2fr_36 ._teSection_1s2fr_54{padding:.21333rem}._tedeoItem_1s2fr_36 ._teTitle_1s2fr_57{font-size:.37333rem;color:#1a1a1a;line-height:.53333rem}._tedeoItem_1s2fr_36 ._info_1s2fr_62{display:flex;align-items:center;justify-content:space-between}._tedeoItem_1s2fr_36 ._teUserInfo_1s2fr_67{display:flex;align-items:center;font-size:.32rem;color:#999;padding:.05333rem 0}._tedeoItem_1s2fr_36 ._teUserInfo_1s2fr_67 ._teUserLogo_1s2fr_74{width:.48rem;height:.48rem;border-radius:50%;margin-right:.13333rem;overflow:hidden}._tedeoItem_1s2fr_36 ._teUserInfo_1s2fr_67 ._teUserName_1s2fr_81{padding-right:.16rem;margin-right:.16rem;max-width:1.73333rem}._tedeoItem_1s2fr_36 ._teUserNum_1s2fr_86{color:#999;font-size:.32rem}._searchContainer_1s2fr_90{background-color:#fff}._item_1s2fr_27{display:flex;align-items:center;justify-content:space-between;padding:.37333rem}._item_1s2fr_27 ._searchItem_1s2fr_99{width:4.48rem;height:1.49333rem}._item_1s2fr_27 ._title_1s2fr_103{font-size:.37333rem;font-weight:600;color:#333;line-height:.53333rem;padding-top:.26667rem;padding-left:2rem}._item_1s2fr_27 ._content_1s2fr_111{padding-left:2rem;font-size:.32rem;color:#666;line-height:.53333rem}._item_1s2fr_27 ._searchFollow_1s2fr_117{background:url(./assets/follow_bg.cb00a284.png) no-repeat center;background-size:100%}._item_1s2fr_27 ._active_1s2fr_121 ._title_1s2fr_103,._item_1s2fr_27 ._active_1s2fr_121 ._content_1s2fr_111{color:#ff1f95}._item_1s2fr_27 ._searchLive_1s2fr_125{background:url(./assets/live_bg.297fb1e3.png) no-repeat center;background-size:100%}._item_1s2fr_27 ._active2_1s2fr_129 ._title_1s2fr_103,._item_1s2fr_27 ._active2_1s2fr_129 ._content_1s2fr_111{color:var(--van-primary)}._searchDefault_1s2fr_133{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_1s2fr_133 ._star_1s2fr_143{margin-right:.13333rem}._video_1s2fr_146{position:absolute;left:0;top:0;width:100%;min-height:100%;background-color:#ccc;border-radius:.10667rem .10667rem 0 0}._living_1s2fr_155{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_1s2fr_155 span{padding-left:.13333rem}._animation_1s2fr_172{height:.48rem!important;width:.53333rem!important}\n",document.head.appendChild(a),System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.87bcd48f.js","./index-legacy.897f3849.js","./index-legacy.c07bb851.js","./index-legacy.6a5df59c.js","./index-legacy.4a75d877.js","./organ-search-legacy.8734fb40.js","./icon_teacher-legacy.42ba77b1.js","./icon_upload_poster-legacy.6c5487e0.js","./bars-legacy.9085ff9b.js","./hooks-legacy.f81762aa.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./use-id-legacy.54528695.js","./use-tab-status-legacy.1f35f332.js","./index-legacy.a85d660d.js"],(function(e){"use strict";var r,n,a,i,o,c,f,_,l,u,d,m,g,h,p,b,v,j,y,w;return{setters:[function(e){r=e.d,n=e.y,a=e.g,i=e.j,o=e.N,c=e.A,f=e.C,_=e.aS,l=e.$},function(e){u=e.C},function(e){d=e.S},function(e){m=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.i},function(e){j=e.b},function(e){y=e.a,w=e.S},function(){},function(){},function(){},function(){},function(){}],execute:function(){var S="_classHeader_1s2fr_1",x="_teacher-elegant_1s2fr_4",I="_label_1s2fr_9",N="_elegant_1s2fr_21",O="_itemBg_1s2fr_27",k="_tedeoItem_1s2fr_36",L="_teCover_1s2fr_44",z="_teSection_1s2fr_54",P="_info_1s2fr_62",U="_teUserInfo_1s2fr_67",C="_teUserLogo_1s2fr_74",D="_teUserName_1s2fr_81",E="_teUserNum_1s2fr_86",T="_living_1s2fr_155",R="_animation_1s2fr_172";e("default",r({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 s(regeneratorRuntime.mark((function t(){var r,s,i,o,c,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.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(s=y(w.ELEGANT)).id?(e.params.subjectId=Number(s.id),e.params.subjectName=s.name):(o=e.subjectList,c=(null===(i=a.user.data)||void 0===i?void 0:i.subjectId)||"",f=c?Number(c.split(",")[0]):null,o.forEach((function(t){(t.subjects||[]).forEach((function(t){t.id===Number(f)&&(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 s(regeneratorRuntime.mark((function r(){var s,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,s=t({},e.params),a.version&&(s.version=a.version||"",s.platform="ios-student"),r.next=5,n.post("/api-student/teacher/stylePage",{data:t({},s)});case 5:if(i=r.sent,e.loading=!1,o=i.data||{},!(e.list.length>0&&1===o.pageNo)){r.next=10;break}return r.abrupt("return");case 10:e.list=e.list.concat(o.rows||[]),e.finished=o.pageNo>=o.totalPage,e.params.page=o.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:"/teacher-style",query:{teacherId:e.userId}})}},render:function(){var e,t,r=this;return i("div",{class:x},[i(g,{offsetTop:0,position:"top"},{default:function(){return[i("div",{ref:"header"},[i(u,{class:S,border:!1,background:"transparent",isFixed:!1},null),i(d,{placeholder:"请输入老师名称",onSearch:r.onSearch},{left:function(){return i("div",{class:I,onClick:function(){r.searchStatus=!r.searchStatus,r.openStatus=!r.openStatus}},[r.params.subjectName,i(o,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?i(m,{loading:this.loading,"onUpdate:loading":function(e){return r.loading=e},finished:this.finished,finishedText:" ",immediateCheck:!1,class:[N],onLoad:this.getList},(t=e=this.list.map((function(e){return i("div",{class:k},[i("div",{class:O,onClick:function(){r.onDetail(e)}},null),i("div",{class:L},[i(h,{src:e.cover||v,fit:"cover"},null),1===e.living&&i("div",{class:T},[i(h,{src:j,class:R},null),i("span",null,[c("直播中")])])]),i("div",{class:z},[i("div",{class:P},[i("div",{class:U},[i(h,{src:e.avatar||b,class:C},null),i("span",{class:[D,"van-hairline--right van-ellipsis"]},[(null==e?void 0:e.username)||"游客".concat((null==e?void 0:e.userId)||"")])]),i("span",{class:E},[e.browse,c("浏览")])])])])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!l(t)?e:{default:function(){return[e]}})):i(f,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无老师风采"},null),i(_,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return r.searchStatus=!1},onClosed:function(){return r.openStatus=!1}},{default:function(){return[r.openStatus&&i(p,{subjectList:r.subjectList,onSort:r.onSort,modelValue:r.params.subjectId,"onUpdate:modelValue":function(e){return r.params.subjectId=e},subjectName:r.params.subjectName,"onUpdate:subjectName":function(e){return r.params.subjectName=e}},null)]}})])}}))}}}))}();
|