teacher-elegant-legacy.2fe4fede.js 9.7 KB

1
  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.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.fc679d65.js","./index-legacy.a7012d0a.js","./index-legacy.edb65d0c.js","./index-legacy.d92f7da7.js","./organ-search-legacy.5ed69723.js","./icon_teacher-legacy.42ba77b1.js","./icon_upload_poster-legacy.6c5487e0.js","./bars-legacy.9085ff9b.js","./hooks-legacy.148eb332.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.78361179.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.d,i=e.w,o=e.g,a=e.j,s=e.M,c=e.z,_=e.C,l=e.aR,u=e.Z},function(e){g=e.C},function(e){d=e.S},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 S="_classHeader_7iogr_1",x="_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",z="_info_7iogr_62",U="_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",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 n(regeneratorRuntime.mark((function t(){var r,n,a,s,c,_;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.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(n=y(w.ELEGANT)).id?(e.params.subjectId=Number(n.id),e.params.subjectName=n.name):(s=e.subjectList,c=(null===(a=o.user.data)||void 0===a?void 0:a.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 n,a,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,n=t({},e.params),o.version&&(n.version=o.version||"",n.platform="ios-student"),r.next=5,i.post("/api-student/teacher/stylePage",{data:t({},n)});case 5:if(a=r.sent,e.loading=!1,s=a.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,r=this;return a("div",{class:x},[a(m,{offsetTop:0,position:"top"},{default:function(){return[a("div",{ref:"header"},[a(g,{class:S,border:!1,background:"transparent",isFixed:!1},null),a(d,{placeholder:"请输入老师名称",onSearch:r.onSearch},{left:function(){return a("div",{class:I,onClick:function(){r.searchStatus=!r.searchStatus,r.openStatus=!r.openStatus}},[r.params.subjectName,a(s,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?a(f,{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 a("div",{class:k},[a("div",{class:O,onClick:function(){r.onDetail(e)}},null),a("div",{class:L},[a(h,{src:e.cover||v,fit:"cover"},null),1===e.living&&a("div",{class:T},[a(h,{src:j,class:H},null),a("span",null,[c("直播中")])])]),a("div",{class:P},[a("div",{class:z},[a("div",{class:U},[a(h,{src:e.avatar||b,class:C},null),a("span",{class:[D,"van-hairline--right van-ellipsis"]},[(null==e?void 0:e.username)||"游客".concat((null==e?void 0:e.userId)||"")])]),a("span",{class:E},[e.browse,c("浏览")])])])])})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!u(t)?e:{default:function(){return[e]}})):a(_,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无老师风采"},null),a(l,{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&&a(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)]}})])}}))}}}))}();