index-legacy.35f6b2e2.js 12 KB

1
  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,s,c){try{var i=e[s](c),o=i.value}catch(u){return void r(u)}i.done?t(o):Promise.resolve(o).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,s){var c=e.apply(t,r);function i(e){n(c,a,s,i,o,"next",e)}function o(e){n(c,a,s,i,o,"throw",e)}i(void 0)}))}}System.register(["./index-legacy.90c82f08.js","./index.module-legacy.bef32549.js","./icon_teacher-legacy.07765f44.js","./icon-muit-message-legacy.68290c1f.js","./index-legacy.55839436.js","./index-legacy.f3e5e283.js","./index-legacy.eb4bc59e.js","./index-legacy.92c1b9d6.js","./index-legacy.e4343e46.js","./index-legacy.789a0824.js","./index-legacy.c8871c95.js","./use-tab-status-legacy.bafe466c.js","./Picker-legacy.aeff9f1a.js","./index-legacy.fe10c814.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js"],(function(e){"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(e){r=e.d,n=e.ag,s=e.ah,c=e.r,i=e.$,o=e.c,u=e.aj,l=e.F,f=e.q,p=e.ak,d=e.P,g=e.m,h=e.e},function(e){m=e.s},function(e){A=e.i},function(e){v=e.i},function(e){O=e.C},function(e){b=e.C},function(e){y=e.I},function(e){S=e.T},function(e){j=e.G,w=e.a},function(e){N=e.L},function(e){R=e.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",r({name:"my-orchestra",setup:function(){var e=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 e=a(regeneratorRuntime.mark((function e(){var n,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!r.isLoading){e.next=3;break}return e.abrupt("return");case 3:return r.isLoading=!0,e.next=6,g.post("/api-student/orchestraPhotoAlbum/page",{data:t(t({},r.params),{},{orchestraId:r.selectOrchestra.orchestraId})});case 6:if(n=e.sent,r.listState.loading=!1,a=n.data||{},!(r.list.length>0&&1===a.current)){e.next=11;break}return e.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,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),r.listState.dataShow=!1,r.listState.finished=!0,r.isLoading=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("/api-student/orchestra/studentOrchestra",{});case 3:if(t=e.sent,n=t.data,console.log(n),r.orchestraList=n||[],!(n&&n.length>0)){e.next=12;break}return r.selectOrchestra=n[0],console.log(r.selectOrchestra),e.next=12,C();case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(0);case 16:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(t),h({api:"joinChatGroup",content:{type:"multi",id:t.imGroupId}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return i(a(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x();case 2:case"end":return e.stop()}}),e)})))),function(){return o("div",{class:m.myOrchestra},[o(u,null,{right:function(){return o(l,null,[("REGISTER"===r.selectOrchestra.status||"LEARNING"===r.selectOrchestra.status)&&o("span",{onClick:function(){e.push({path:"/apply-withdrawal",query:{id:r.selectOrchestra.orchestraId}})}},[f("申请退团")]),"AUTH"===r.selectOrchestra.status&&o("span",{style:{color:"red"}},[f("申请退团中")])])}}),r.orchestraList.length>0?o(l,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}},[f("切换乐团 "),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(e){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:e.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"]},[e.teacherName]),o(S,{type:"primary",size:"medium"},{default:function(){return[e.classGroupName]}})])])},value:function(){return o(y,{class:m.messageImg,src:v,onClick:function(){return q(e)}},null)}}),o(j,{border:!1,columnNum:3},{default:function(){return[o(w,null,{default:function(){return[o("p",{class:m.title},[e.completeCourseNum||0,f("/"),e.totalCourseNum||0]),o("p",{class:m.name},[f("课程")])]}}),o(w,null,{default:function(){return[o("p",{class:[m.title]},[e.completeTrainingNum||0,f("/"),e.totalTrainingNum||0]),o("p",{class:m.name},[f("课后练习")])]}}),o(w,null,{default:function(){return[o("p",{class:m.title},[e.completeUnitTestNum||0,f("/"),e.totalUnitTestNum||0]),o("p",{class:m.name},[f("单元测试")])]}})]}})]}})}))]),o("div",{class:m.title},[o("i",null,null),f("训练照片")]),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(t){return o("div",{class:m.item,onClick:function(){return function(t){e.push({path:"/photo-detail",query:{photoId:t.id,name:t.name}})}(t)}},[t.coverUrl?o(y,{class:m.img,src:t.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+KYT4UvnWLaCGmzdvpq1btyqN2BV0Z2dnPxFtVzrbAmsUDAbp6NGjSqNWAT1BRAvK8CmRIyIYyBMnTig1VwFtAo4CKDs6OgxoJQK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vap3fUrLeyzL+jYcDv+gcpwy6OzJYrHY0mQy2Z5KpfDrOSFm3iilXM/MzVJK/GRT0edUuVAP2khmHpFSPmVmvDpsQAhxz+/399bU1PwaCoWKWkQtK5RoNBoIBAKrEolEIzPjtS8NUsoVQggYxCXM/LsxFEIsZmYYROw8qmPmOillLTPXYOFh6hvzPgwlvjNOx7QbmXE6plY8kJxPMXNaSoltDYmp70kpJYwgPu+klOOWZcEQZoyhlBKw3liWNcrMMIivpJTDgUDgZSKRGAqHwyUn+u2KUVbQHmjdnOnSgNZ0qwxoA1oTAU3dGI02oDUR0NTNb2QLa5d/JYlZAAAAAElFTkSuQmCC",class:m.defaultImg,fit:"cover"},null)]),o("p",{class:[m.name,"van-ellipsis"]},[t.name]),o("p",{class:m.num},[t.photoCount,f("张")])])}))])]}}):o(p,{btnStatus:!1,tips:"暂无训练相片"},null)]):o(p,{btnStatus:!1,tips:"暂无乐团"},null),o(d,{show:r.orchestraStatus,"onUpdate:show":function(e){return r.orchestraStatus=e},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(e){var t=e.selectedValues[0];t!==r.selectOrchestra.orchestraId?(r.orchestraList.forEach((function(e){e.orchestraId===t&&(r.selectOrchestra=e)})),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)]}})])}}}))}}}))}();