index-legacy.1d1c7529.js 15 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n,o,r,a,i){try{var c=e[a](i),s=c.value}catch(m){return void n(m)}c.done?t(s):Promise.resolve(s).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function c(e){o(i,r,a,c,s,"next",e)}function s(e){o(i,r,a,c,s,"throw",e)}c(void 0)}))}}var a=document.createElement("style");a.innerHTML='._itemWrap_jg443_1{width:calc(100% -.8rem);height:3.22667rem;background:#ffffff;border-radius:.26667rem;margin:0 .4rem .32rem}._itemWrap_jg443_1 ._itemTop_jg443_8{padding:.21333rem .4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopLeft_jg443_16{display:flex;flex-direction:row;align-items:center}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopLeft_jg443_16 ._headIcon_jg443_21{width:.8rem;height:.8rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopLeft_jg443_16 ._headIcon_jg443_21 img{width:100%;height:100%}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopLeft_jg443_16 ._name_jg443_32{font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.8rem;margin-right:.26667rem}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopLeft_jg443_16 ._tag_jg443_40{padding:.02667rem .21333rem;min-width:1.06667rem;height:.50667rem;background:#ffe7da;border-radius:.10667rem;font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;text-align:center;line-height:.45333rem}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopRight_jg443_53{width:.64rem;height:.64rem;padding:.05333rem}._itemWrap_jg443_1 ._itemTop_jg443_8 ._itemTopRight_jg443_53 img{width:100%;height:100%}._itemWrap_jg443_1 ._itemBottom_jg443_62{padding:0 .26667rem .26667rem;display:flex;flex-direction:row;align-items:center;text-align:center}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._msgMain_jg443_69{font-size:.69333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#f67146;line-height:.8rem}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._msgMain_jg443_69 span{height:.45333rem;font-size:.32rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._msgsub_jg443_84{margin-top:.10667rem;height:.53333rem;font-size:.37333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._itemBottomLeft_jg443_93{width:50%;position:relative}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._itemBottomLeft_jg443_93:after{content:"";width:.02667rem;height:.53333rem;background:#f2f2f2;border-radius:.02667rem;right:0;top:50%;margin-top:-.26667rem;position:absolute}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._itemBottomRight_jg443_108{width:50%;position:relative}._itemWrap_jg443_1 ._itemBottom_jg443_62 ._itemBottomRight_jg443_108 ._arrow_jg443_112{position:absolute;bottom:.37333rem;right:.4rem;color:#f2f2f2}.bottomSheet .van-action-sheet__description{padding:0!important}.bottomSheet .van-action-sheet__description:after{border:none!important}._bottomTitle_jg443_124{padding:.4rem .4rem .53333rem;text-align:left;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:.58667rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.58667rem}._bottomTitle_jg443_124 ._bottomTitleLeft_jg443_138{display:flex;flex-direction:row;align-items:center}._bottomTitle_jg443_124 ._bottomTitleLeft_jg443_138 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_jg443_151{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_jg443_151 ._bottomImgWrap_jg443_157{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_jg443_151 ._bottomImgWrap_jg443_157 img{width:100%;height:100%}._bottomConent_jg443_151 ._bottomConentLeft_jg443_166,._bottomConent_jg443_151 ._bottomConentRight_jg443_167{width:50%;display:flex;flex-direction:column;align-items:center}._chioseWrap_1madg_1{display:flex;flex-direction:row;align-items:center;justify-content:space-around;background-color:#f8f8f8}\n',document.head.appendChild(a),System.register(["./index-legacy.c52b7cbb.js","./index-legacy.fb25da3a.js","./index-legacy.4e7f0184.js","./index-legacy.2ae28dc5.js","./default-icon-legacy.ee8113d0.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.d11fa8f4.js","./index-legacy.9ba54886.js","./index-legacy.9fb17640.js","./index-legacy.261ae52e.js","./index-legacy.51e5b886.js","./index-legacy.97665c37.js","./index-legacy.1fccc4ce.js","./use-tab-status-legacy.17f6d490.js","./index-legacy.13f9f10f.js","./index-legacy.f900000d.js"],(function(e){"use strict";var n,o,a,i,c,s,m,u,l,g,p,_,f,d,h,v,j,b,w,y,x,T,P,C,k,S,R,W;return{setters:[function(e){n=e.O},function(e){o=e.O},function(e){a=e.O},function(e){i=e.d,c=e.aQ,s=e.S,m=e.E,u=e.k,l=e.l,g=e.a2,p=e.F,_=e.p,f=e.j,d=e.R,h=e.ac,v=e.X,j=e.s,b=e.g,w=e.be,y=e.P,x=e.ad},function(e){T=e.d,P=e.P,C=e.D},function(e){k=e.m},function(e){S=e.A},function(e){R=e.P},function(e){W=e.L},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var D={itemWrap:"_itemWrap_jg443_1",itemTop:"_itemTop_jg443_8",itemTopLeft:"_itemTopLeft_jg443_16",headIcon:"_headIcon_jg443_21",name:"_name_jg443_32",tag:"_tag_jg443_40",itemTopRight:"_itemTopRight_jg443_53",itemBottom:"_itemBottom_jg443_62",msgMain:"_msgMain_jg443_69",msgsub:"_msgsub_jg443_84",itemBottomLeft:"_itemBottomLeft_jg443_93",itemBottomRight:"_itemBottomRight_jg443_108",arrow:"_arrow_jg443_112",bottomTitle:"_bottomTitle_jg443_124",bottomTitleLeft:"_bottomTitleLeft_jg443_138",bottomConent:"_bottomConent_jg443_151",bottomImgWrap:"_bottomImgWrap_jg443_157",bottomConentLeft:"_bottomConentLeft_jg443_166",bottomConentRight:"_bottomConentRight_jg443_167"},O=s({}),B=i({props:["item","forms"],name:"student-item",setup:function(e){var t=c(),n=s(!1),o=function(){n.value=!1};m((function(){return e.forms}),(function(e){O.value=e}),{deep:!0});var a=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,_({api:"joinChatGroup",content:{type:"single",id:e.item.imUserId}});case 3:o(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),f("发起聊天失败"),o();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),i=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,_({api:"callPhone",content:{phone:e.item.phone}});case 3:o(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),f("发起聊天失败"),o();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),d=function(){console.log(O.value.practiceMonth,O.value.practiceMonthName),t.push({path:"/exercis-detail",query:{id:e.item.id,practiceMonth:O.value.practiceMonth,practiceMonthName:O.value.practiceMonthName}})};return function(){return u(p,null,[u("div",null,[u("div",{class:D.itemWrap,onClick:d},[u("div",{class:D.itemTop},[u("div",{class:D.itemTopLeft},[u("div",{class:D.headIcon},[u("img",{src:e.item.avatar?e.item.avatar:T,alt:""},null)]),u("p",{class:D.name},[e.item.nickname]),u("div",{class:D.tag},[e.item.subjectNames])]),u("div",{class:D.itemTopRight},[u("div",{class:D.msgIcon,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.value=!0}},[u("img",{src:k,alt:""},null)])])]),u("div",{class:D.itemBottom},[u("div",{class:D.itemBottomLeft},[u("p",{class:D.msgMain},[e.item.practiceDays?e.item.practiceDays:0,l(" "),u("span",null,[l("天")])]),u("p",{class:D.msgsub},[l("练习天数")])]),u("div",{class:D.itemBottomRight},[u("p",{class:D.msgMain},[e.item.practiceTimes?e.item.practiceTimes:0,u("span",null,[l("分钟")])]),u("p",{class:D.msgsub},[l("练习时长")]),u(g,{class:D.arrow,name:"arrow"},null)])])])]),u(S,{class:"bottomSheet",show:n.value,"onUpdate:show":function(e){return n.value=e}},{default:function(){return[u("div",{class:D.bottomConent},[u("div",{class:D.bottomConentLeft,onClick:function(e){e.stopPropagation(),e.preventDefault(),a()}},[u("div",{class:D.bottomImgWrap},[u("img",{src:"./assets/sendmsg-icon.359ba703.png",alt:""},null)]),u("p",null,[l("发送消息")])]),u("div",{class:D.bottomConentRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),i()}},[u("div",{class:D.bottomImgWrap},[u("img",{src:"./assets/phone-icon.95930842.png",alt:""},null)]),u("p",null,[l("拨打电话")])])])]},description:function(){return u("div",{class:D.bottomTitle},[u("div",{class:D.bottomTitleLeft},[u("span",null,null),u("p",null,[l("联系方式")])]),u("div",{class:D.bottomTitleRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),o()}},[u(g,{class:D.cross,name:"cross"},null)])])}})])}}}),M={chioseWrap:"_chioseWrap_1madg_1"};e("default",i({name:"exercise-record",setup:function(){c();var e=d({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,showPopoverSort:!1,actions:[],subjects:[],actionSorts:[{text:"按天数",value:"PRACTICE_DAY"},{text:"按时长",value:"PRACTICE_TIMES"}],currentDate:[h().format("YYYY"),h().format("MM")]}),i=d({practiceMonth:e.currentDate[0]+""+e.currentDate[1],practiceMonthName:e.currentDate[0]+"年"+e.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",sortType:"",sortTypeName:"",page:1,rows:20}),m=s(new Date(h().subtract(5,"year").format("YYYY-MM-DD"))),_=s(new Date(h().add(5,"year").format("YYYY-MM-DD"))),T=s(["year","month"]),k=s(!1),D=s(!1),O=s(!1),F=s(!1),L=s([]),I=function(){var e=r(regeneratorRuntime.mark((function e(){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D.value=!0,e.prev=1,k.value&&(i.page=1,L.value=[],k.value=!1),e.next=5,b.post("/api-school/student/page",{data:t({},i)});case 5:if(n=e.sent,!(L.value.length>0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:i.page=n.data.current+1,L.value=L.value.concat(n.data.rows||[]),F.value=L.value.length>0,console.log(F.value," showContact.value "),D.value=!1,O.value=n.data.current>=n.data.pages,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),o=e.t0.message,f(o),F.value=!1,O.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}();v((function(){I(),E(),z()}));var N=function(){console.log("返回")},Y=function(e){i.sortType=e.value,i.sortTypeName=e.text,k.value=!0,I()},U=function(t){i.practiceMonth=t.selectedValues[0]+t.selectedValues[1],i.practiceMonthName=t.selectedValues[0]+"年"+t.selectedValues[1]+"月",e.showPopoverTime=!1,I()},V=function(t){i.orchestraId=t.value,i.orchestraName=t.name,e.showPopoverOrchestra=!1,k.value=!0,I()},A=function(e){i.subjectId=e.value,i.subjectName=e.name,console.log(e,i),k.value=!0,I()},E=function(){var t=r(regeneratorRuntime.mark((function t(){var n,o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=j.user.data.schoolInfos.map((function(e){return e.id})).join(","),t.prev=1,t.next=4,b.post("/api-school/orchestra/page",{data:{page:1,rows:9999,schoolId:n}});case 4:o=t.sent,e.actions=o.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.actions.unshift({name:"全部乐团",value:""}),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),r=t.t0.message,f(r);case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}(),z=function(){var t=r(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b.post("/api-school/subject/page",{data:{page:1,rows:9999}});case 3:n=t.sent,e.subjects=n.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.subjects.unshift({name:"全部声部",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),o=t.t0.message,f(o);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),H=function(){O.value=!1,D.value=!0,I()};return function(){var t;return u(p,null,[u(a,{position:"top",background:"#F8F8F8"},{default:function(){return[u(n,{isBack:!0,onHeaderBack:N},null),u(o,{placeholder:"学生编号",onSearch:function(){k.value=!0,I()}},null),u("div",{class:M.chioseWrap},[u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverTime=!0}},[i.practiceMonthName,u(g,{name:e.showPopoverTime?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverOrchestra=!0}},[i.orchestraName,u(g,{name:e.showPopoverOrchestra?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverSubject=!0}},[i.subjectName,u(g,{name:e.showPopoverSubject?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u(R,{show:e.showPopoverSort,"onUpdate:show":function(t){return e.showPopoverSort=t},actions:e.actionSorts,showArrow:!1,placement:"bottom-end",offset:[0,12],onSelect:Y},{reference:function(){return u("div",{class:M.searchBand},[l("按天数"),u(g,{name:e.showPopoverSort?"arrow-up":"arrow-down"},null)])}})])])]}}),F.value?u(P,{modelValue:k.value,"onUpdate:modelValue":function(e){return k.value=e},onRefresh:H},{default:function(){return[u(W,{loading:D.value,"onUpdate:loading":function(e){return D.value=e},finished:O.value,"finished-text":"没有更多了",onLoad:I},(e=t=L.value.map((function(e){return u(B,{item:e,forms:i},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!x(e)?t:{default:function(){return[t]}}))];var e}}):u(w,null,null),u(y,{show:e.showPopoverTime,"onUpdate:show":function(t){return e.showPopoverTime=t},position:"bottom",style:"{ height: '30%' }"},{default:function(){return[u(C,{onCancel:function(){e.showPopoverTime=!1},onConfirm:U,modelValue:e.currentDate,"onUpdate:modelValue":function(t){return e.currentDate=t},title:"选择年月",minDate:m.value,maxDate:_.value,columnsType:T.value},null)]}}),u(S,{show:e.showPopoverOrchestra,"onUpdate:show":function(t){return e.showPopoverOrchestra=t},title:"选择乐团",actions:e.actions,onSelect:V},null),u(S,{style:{height:"40%"},"close-on-click-action":!0,show:e.showPopoverSubject,"onUpdate:show":function(t){return e.showPopoverSubject=t},title:"选择声部",actions:e.subjects,onSelect:A},null)])}}}))}}}))}();