index-legacy.bb05d0a5.js 12 KB

1
  1. !function(){function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function e(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t,e,r,n,a,s,c){try{var i=t[s](c),o=i.value}catch(u){return void r(u)}i.done?e(o):Promise.resolve(o).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,s){var c=t.apply(e,r);function i(t){n(c,a,s,i,o,"next",t)}function o(t){n(c,a,s,i,o,"throw",t)}i(void 0)}))}}System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index.module-legacy.bef32549.js","./icon_teacher-legacy.07765f44.js","./icon-muit-message-legacy.68290c1f.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js","./index-legacy.0e0de364.js","./index-legacy.93204044.js","./index-legacy.8429fc95.js","./index-legacy.04f465c8.js","./index-legacy.384d768f.js","./index-legacy.ac553194.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.ef66d7bb.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.js"],(function(t){"use strict";var r,n,s,c,i,o,u,l,f,p,d,g,h,m,A,v,O,b,y,S,j,w,N,R;return{setters:[function(t){r=t.d,n=t.ag,s=t.aV,c=t.r,i=t.$,o=t.c,u=t.F,l=t.q,f=t.ai,p=t.P,d=t.m,g=t.k},function(t){h=t.O},function(t){m=t.s},function(t){A=t.i},function(t){v=t.i},function(t){O=t.C},function(t){b=t.C},function(t){y=t.I},function(t){S=t.T},function(t){j=t.G,w=t.a},function(t){N=t.L},function(t){R=t.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){t("default",r({name:"my-orchestra",setup:function(){var t=n();s();var r=c({isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},orchestraStatus:!1,orchestraList:[],selectOrchestra:{}}),C=function(){var t=a(regeneratorRuntime.mark((function t(){var n,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!r.isLoading){t.next=3;break}return t.abrupt("return");case 3:return r.isLoading=!0,t.next=6,d.post("/api-student/orchestraPhotoAlbum/page",{data:e(e({},r.params),{},{orchestraId:r.selectOrchestra.orchestraId})});case 6:if(n=t.sent,r.listState.loading=!1,a=n.data||{},!(r.list.length>0&&1===a.current)){t.next=11;break}return t.abrupt("return");case 11:s=a.rows||[],r.list=r.list.concat(s),r.listState.finished=a.current>=a.pages,r.params.page=a.current+1,r.listState.dataShow=r.list.length>0,r.isLoading=!1,t.next=24;break;case 19:t.prev=19,t.t0=t.catch(0),r.listState.dataShow=!1,r.listState.finished=!0,r.isLoading=!1;case 24:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(){return t.apply(this,arguments)}}(),x=function(){var t=a(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.post("/api-student/orchestra/studentOrchestra",{});case 3:if(e=t.sent,n=e.data,console.log(n),r.orchestraList=n||[],!(n&&n.length>0)){t.next=12;break}return r.selectOrchestra=n[0],console.log(r.selectOrchestra),t.next=12,C();case 12:t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),q=function(){var t=a(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log(e),g({api:"joinChatGroup",content:{type:"multi",id:e.imGroupId}});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return i(a(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x();case 2:case"end":return t.stop()}}),t)})))),function(){return o("div",{class:m.myOrchestra},[o(h,null,{right:function(){return o(u,null,[("REGISTER"===r.selectOrchestra.status||"LEARNING"===r.selectOrchestra.status)&&o("span",{onClick:function(){t.push({path:"/apply-withdrawal",query:{id:r.selectOrchestra.orchestraId}})}},[l("申请退团")]),"AUTH"===r.selectOrchestra.status&&o("span",{style:{color:"red"}},[l("申请退团中")])])}}),r.orchestraList.length>0?o(u,null,[o(O,{inset:!0,class:m.oList},{default:function(){return[o(b,{center:!0,clickable:!0},{title:function(){return o("div",{class:m.orchestra},[o("i",null,null),o("span",{class:"van-ellipsis"},[r.selectOrchestra.orchestraName])])},value:function(){return r.selectOrchestra.classGroupIdList&&r.selectOrchestra.classGroupIdList.length>0&&o("div",{class:m.iconChange,onClick:function(){r.orchestraStatus=!0}},[l("切换乐团 "),o(y,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAp5JREFUWEftVj1rVEEUPedtkUIDKiiIpeLHDzBBMJpVW0VIZjaNsdFKCy1jZaV2WmiTbSTVezMsSNKqiRERP7A1hY2FjUIQo0iKzZFZ8sLbl5fN7ia4TaZY2Pk499xzz515RI8HexwfOwR2FOhaAeecA3DDWvtjK0beCgGR/F6v12+OjY35bkkUEvDenydpJZ2RdAhA/yYBAoEmNWq12sF6vf6J5E+S85KcMeZFHqeJgHPuCMmqpOFOM8qr4b1/KulqFofknKTr1tov6fwaAe/9kKRnAPZ1GjzszxJwzg0AeAsgKsBaJHnZGPO6cS78hMwBvOs2OIBsCeicewPgVItEFgEMBiUaBLz3swWyz0h6SPKDtfZ3Hsw5t6kJp6amdvX19Q2QvAXgUr4cxpgyg+EkPc8t3jHG3G9Vik7b0Hs/IeleLs6FQGAyGCOzMGOtbWLbjSeKzjjnpgFcXDMgWQ0EPks6nk5KOlepVGa3K2gWx3s/LGkNm+RCMMyvXJ/3F9V8Owg553YDWMpgLQUCYSIspOO/E1gAcCxTl7IxZm47Ms5jJElSJvkyE2uBSZJUSV7rhQmjKJosbMMoiiZGR0cftKOCc24/gCfWWttq/4ZtuHoTzgMYygFMS3q0vLz8fnx8/E8ReBzHplQqPZZ0wFq77mELppN0kuTtbPs1rmByrnERhT9xHB+OougjgD1FgUhKUtla+2qVcCNrAKYdlQr2NF/Fq6CnAYSLYm/+AElvjGlInM262+DrHqMUKI7jo8EYAM5mwP+WSqUTIyMjX1MCURSF7IMKHY2Wz3EWqVarlVdWVq5IGpTkK5XK3ex6arw2SrBE8huA8PQmm36QdJROrhxFJmwHr+tvwhS83TbciMyWCbSTZas9OwR6rsA/1URHgBIvXhAAAAAASUVORK5CYII=",class:m.img},null)])}})]}}),o("div",{class:[m.gridContainer,m.gridClass]},[r.selectOrchestra.classGroupIdList&&r.selectOrchestra.classGroupIdList.map((function(t){return o(O,{class:m.classCellGroup},{default:function(){return[o(b,{center:!0,titleStyle:{flex:"0 auto"},valueClass:m.classCheckbox,border:!1,style:{paddingBottom:"0"}},{icon:function(){return o(y,{src:t.teacherAvatar||A,class:m.img,fit:"cover"},null)},title:function(){return o("div",{class:m.content},[o("div",{class:m.teacherName},[o("span",{class:[m.name,"van-ellipsis"]},[t.teacherName]),o(S,{type:"primary",size:"medium"},{default:function(){return[t.classGroupName]}})])])},value:function(){return o(y,{class:m.messageImg,src:v,onClick:function(){return q(t)}},null)}}),o(j,{border:!1,columnNum:3},{default:function(){return[o(w,null,{default:function(){return[o("p",{class:m.title},[t.completeCourseNum||0,l("/"),t.totalCourseNum||0]),o("p",{class:m.name},[l("课程")])]}}),o(w,null,{default:function(){return[o("p",{class:[m.title]},[t.completeTrainingNum||0,l("/"),t.totalTrainingNum||0]),o("p",{class:m.name},[l("课后练习")])]}}),o(w,null,{default:function(){return[o("p",{class:m.title},[t.completeUnitTestNum||0,l("/"),t.totalUnitTestNum||0]),o("p",{class:m.name},[l("单元测试")])]}})]}})]}})}))]),o("div",{class:m.title},[o("i",null,null),l("训练照片")]),r.listState.dataShow?o(N,{finished:r.listState.finished,finishedText:" ",onLoad:C,immediateCheck:!1},{default:function(){return[o("div",{class:m.phoneContainer},[r.list.map((function(e){return o("div",{class:m.item,onClick:function(){return function(e){t.push({path:"/photo-detail",query:{photoId:e.id,name:e.name}})}(e)}},[e.coverUrl?o(y,{class:m.img,src:e.coverUrl,fit:"cover"},null):o("div",{class:[m.img,m.default]},[o(y,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAAAXNSR0IArs4c6QAACRdJREFUeF7tnUtsU1cax7/v2nFCMK+UEErEK2AecZAC5SXeqN2guKPRjGZmW6mbdjUjNl10O5vZVO2q3VTqtq0qjYaAWMwovCQCUqCQODwMQTwDISFDMCHx45zqb8VVcn3te+zY5zrJ+STLUnLuPff87nfP9zjfuWYyooUAa+nFdEIGtCYlMKANaE0ENHVjNHqug5ZSvk9EXxDRx0S0lohqNI1JdzdJInpMRKeI6F/MPOh0ARXRaCnlISL6NxG9p3vUHvc3QkR/ZOZL9usoO+gpTe5dgJCzbAF7h12zKwH6ayL6u8ea5XX33zDzP6ZfRCVA3yeiFq9H6nH/A8y8qdKgE/PY8KnevyQzByoNWqpezXxux8wzZotKTB0GNBEZ0JoeIwO62kCfPXu2QQhxUgjxpykvolbTNVZFN5ZlUX19Pa1evZo2btxIgcAM2+Z6jUoaffr06XYpZScRNbuecQE0qK2tpb1799LSpUuVR+sKGpqcSqVuGsgzmQL2kSNHlDXbFfSZM2f+KYT4UvnWLaCGmzdvpq1btyqN2BV0Z2dnPxFtVzrbAmsUDAbp6NGjSqNWAT1BRAvK8CmRIyIYyBMnTig1VwFtAo4CKD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xuZTyg/mqvap3fUrLeyzL+jYcDv+gcpwy6OzJYrHY0mQy2Z5KpfDrOSFm3iilXM/MzVJK/GRT0edUuVAP2khmHpFSPmVmvDpsQAhxz+/399bU1PwaCoWKWkQtK5RoNBoIBAKrEolEIzPjtS8NUsoVQggYxCXM/LsxFEIsZmYYROw8qmPmOillLTPXYOFh6hvzPgwlvjNOx7QbmXE6plY8kJxPMXNaSoltDYmp70kpJYwgPu+klOOWZcEQZoyhlBKw3liWNcrMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC",class:m.defaultImg,fit:"cover"},null)]),o("p",{class:[m.name,"van-ellipsis"]},[e.name]),o("p",{class:m.num},[e.photoCount,l("张")])])}))])]}}):o(f,{btnStatus:!1,tips:"暂无训练相片"},null)]):o(f,{btnStatus:!1,tips:"暂无乐团"},null),o(p,{show:r.orchestraStatus,"onUpdate:show":function(t){return r.orchestraStatus=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[o(R,{columns:r.orchestraList,columnsFieldNames:{text:"orchestraName",value:"orchestraId"},onCancel:function(){return r.orchestraStatus=!1},onConfirm:function(t){var e=t.selectedValues[0];e!==r.selectOrchestra.orchestraId?(r.orchestraList.forEach((function(t){t.orchestraId===e&&(r.selectOrchestra=t)})),r.orchestraStatus=!1,r.params.page=1,r.list=[],r.listState.dataShow=!0,r.listState.loading=!1,r.listState.finished=!1,C()):r.orchestraStatus=!1}},null)]}})])}}}))}}}))}();