index-legacy.41c4ed8d.js 16 KB

1
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,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 r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void n(u)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}var i=document.createElement("style");i.innerHTML='._itemWrap_1ri91_1{width:calc(100% - .8rem);height:3.22667rem;background:#ffffff;border-radius:.26667rem;margin:0 .4rem .32rem}._itemWrap_1ri91_1 ._itemTop_1ri91_8{padding:.21333rem .4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopLeft_1ri91_16{display:flex;flex-direction:row;align-items:center}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopLeft_1ri91_16 ._headIcon_1ri91_21{width:.8rem;height:.8rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopLeft_1ri91_16 ._headIcon_1ri91_21 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopLeft_1ri91_16 ._name_1ri91_33{font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.8rem;margin-right:.26667rem}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopLeft_1ri91_16 ._tag_1ri91_41{padding:0 .21333rem;min-width:1.06667rem;background:#ffe7da;display:inline-block;border-radius:.10667rem;font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;text-align:center;line-height:.50667rem}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopRight_1ri91_54{width:.64rem;height:.64rem;padding:.05333rem}._itemWrap_1ri91_1 ._itemTop_1ri91_8 ._itemTopRight_1ri91_54 img{width:100%;height:100%}._itemWrap_1ri91_1 ._itemBottom_1ri91_63{padding:.26667rem;display:flex;flex-direction:row;align-items:center;text-align:center}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._msgMain_1ri91_70{font-size:.69333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#f67146;line-height:.8rem}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._msgMain_1ri91_70 span{height:.45333rem;font-size:.32rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._msgsub_1ri91_85{margin-top:.10667rem;height:.53333rem;font-size:.37333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._itemBottomLeft_1ri91_94{width:50%;position:relative}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._itemBottomLeft_1ri91_94:after{content:"";width:.02667rem;height:.53333rem;background:#f2f2f2;border-radius:.02667rem;right:0;top:50%;margin-top:-.26667rem;position:absolute}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._itemBottomRight_1ri91_109{width:50%;position:relative}._itemWrap_1ri91_1 ._itemBottom_1ri91_63 ._itemBottomRight_1ri91_109 ._arrow_1ri91_113{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_1ri91_125{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_1ri91_125 ._bottomTitleLeft_1ri91_139{display:flex;flex-direction:row;align-items:center}._bottomTitle_1ri91_125 ._bottomTitleLeft_1ri91_139 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_1ri91_152{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_1ri91_152 ._bottomImgWrap_1ri91_158{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_1ri91_152 ._bottomImgWrap_1ri91_158 img{width:100%;height:100%}._bottomConent_1ri91_152 ._bottomConentLeft_1ri91_167,._bottomConent_1ri91_152 ._bottomConentRight_1ri91_168{width:50%;display:flex;flex-direction:column;align-items:center}\n',document.head.appendChild(i),System.register(["./index-legacy.c7f919fb.js","./index-legacy.00d82922.js","./index-legacy.a9944503.js","./index-legacy.0e551442.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./phone-icon-legacy.356941b3.js","./index-legacy.57a461ad.js","./index-legacy.b9c4417f.js","./index-legacy.55bd130c.js","./index-legacy.8271e59c.js","./index-legacy.40afcdaf.js","./index-legacy.0256f666.js","./index-legacy.16d013c6.js","./utils-legacy.0c949fd0.js","./use-tab-status-legacy.7b80393c.js","./index-legacy.e997fd26.js","./index-legacy.8bfb99fc.js","./index-legacy.2a9471c6.js"],(function(e){"use strict";var n,r,i,a,c,s,u,m,l,p,_,f,d,h,g,v,b,w,y,j,P,x,T,C,S,O,R,k,I,D;return{setters:[function(e){n=e.O},function(e){r=e.O},function(e){i=e.d,a=e.ag,c=e.R,s=e.Z,u=e.c,m=e.q,l=e.a5,p=e.F,_=e.k,f=e.o,d=e.f,h=e.r,g=e.ah,v=e.$,b=e.m,w=e.ai,y=e.P,j=e.aj},function(e){P=e.O},function(e){x=e.s},function(e){T=e.m},function(e){C=e.s,S=e.p},function(e){O=e.A},function(e){R=e.O},function(e){k=e.D},function(e){I=e.L},function(e){D=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var M={itemWrap:"_itemWrap_1ri91_1",itemTop:"_itemTop_1ri91_8",itemTopLeft:"_itemTopLeft_1ri91_16",headIcon:"_headIcon_1ri91_21",name:"_name_1ri91_33",tag:"_tag_1ri91_41",itemTopRight:"_itemTopRight_1ri91_54",itemBottom:"_itemBottom_1ri91_63",msgMain:"_msgMain_1ri91_70",msgsub:"_msgsub_1ri91_85",itemBottomLeft:"_itemBottomLeft_1ri91_94",itemBottomRight:"_itemBottomRight_1ri91_109",arrow:"_arrow_1ri91_113",bottomTitle:"_bottomTitle_1ri91_125",bottomTitleLeft:"_bottomTitleLeft_1ri91_139",bottomConent:"_bottomConent_1ri91_152",bottomImgWrap:"_bottomImgWrap_1ri91_158",bottomConentLeft:"_bottomConentLeft_1ri91_167",bottomConentRight:"_bottomConentRight_1ri91_168"},B=c({}),W=i({props:["item","forms"],name:"student-item",setup:function(e){var t=a(),n=c(!1),r=function(){n.value=!1};s((function(){return e.forms}),(function(e){B.value=e}),{deep:!0});var i=function(){var t=o(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:r(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),f("发起聊天失败"),r();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=o(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:r(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),f("发起聊天失败"),r();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),h=function(){console.log(B.value.practiceMonth,B.value.practiceMonthName),t.push({path:"/exercis-detail",query:{id:e.item.id,practiceMonth:B.value.practiceMonth,practiceMonthName:B.value.practiceMonthName}})};return function(){return u(p,null,[u("div",null,[u("div",{class:M.itemWrap,onClick:h},[u("div",{class:M.itemTop},[u("div",{class:M.itemTopLeft},[u("div",{class:M.headIcon},[u("img",{src:e.item.avatar?e.item.avatar:x,alt:""},null)]),u("p",{class:M.name},[e.item.nickname]),u("div",{class:M.tag},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])]),u("div",{class:M.itemTopRight},[u("div",{class:M.msgIcon,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.value=!0}},[u("img",{src:T,alt:""},null)])])]),u("div",{class:M.itemBottom},[u("div",{class:M.itemBottomLeft},[u("p",{class:M.msgMain},[e.item.practiceDays?e.item.practiceDays:0,m(" "),u("span",null,[m("天")])]),u("p",{class:M.msgsub},[m("练习天数")])]),u("div",{class:M.itemBottomRight},[u("p",{class:M.msgMain},[e.item.practiceTimes?e.item.practiceTimes:0,u("span",null,[m("分钟")])]),u("p",{class:M.msgsub},[m("练习时长")]),u(l,{class:M.arrow,name:"arrow"},null)])])])]),u(O,{class:"bottomSheet",show:n.value,"onUpdate:show":function(e){return n.value=e}},{default:function(){return[u("div",{class:M.bottomConent},[u("div",{class:M.bottomConentLeft,onClick:function(e){e.stopPropagation(),e.preventDefault(),i()}},[u("div",{class:M.bottomImgWrap},[u("img",{src:C,alt:""},null)]),u("p",null,[m("发送消息")])]),u("div",{class:M.bottomConentRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),d()}},[u("div",{class:M.bottomImgWrap},[u("img",{src:S,alt:""},null)]),u("p",null,[m("拨打电话")])])])]},description:function(){return u("div",{class:M.bottomTitle},[u("div",{class:M.bottomTitleLeft},[u("span",null,null),u("p",null,[m("联系方式")])]),u("div",{class:M.bottomTitleRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),r()}},[u(l,{class:M.cross,name:"cross"},null)])])}})])}}});e("default",i({name:"exercise-record",setup:function(){var e=c(d.platformApi);a();var i=h({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,showPopoverSort:!1,actions:[],subjects:[],actionSorts:[{name:"按天数",value:"PRACTICE_DAY",selected:!0},{name:"按时长",value:"PRACTICE_TIMES"}],currentDate:[g().format("YYYY"),g().format("MM")]}),s=h({practiceMonth:i.currentDate[0]+""+i.currentDate[1],practiceMonthName:i.currentDate[0]+"年"+i.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",sortType:"PRACTICE_DAY",sortTypeName:"按天数",keyword:"",page:1,rows:20}),m=c(new Date(g().subtract(10,"year").format("YYYY-MM-DD"))),l=c(new Date(g().add(10,"year").format("YYYY-MM-DD"))),p=c(["year","month"]),_=c(!1),x=c(!1),T=c(!1),C=c(!1),S=c([]),O=function(){var n=o(regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return x.value=!0,n.prev=1,_.value&&(s.page=1,S.value=[],_.value=!1),n.next=5,b.post("".concat(e.value,"/student/page"),{data:t({},s)});case 5:if(r=n.sent,!(S.value.length>0&&1===r.data.pages)){n.next=8;break}return n.abrupt("return");case 8:s.page=r.data.current+1,S.value=S.value.concat(r.data.rows||[]),C.value=S.value.length>0,console.log(C.value," showContact.value "),x.value=!1,T.value=r.data.current>=r.data.pages,n.next=22;break;case 16:n.prev=16,n.t0=n.catch(1),o=n.t0.message,f(o),C.value=!1,T.value=!0;case 22:case"end":return n.stop()}}),n,null,[[1,16]])})));return function(){return n.apply(this,arguments)}}();v((function(){O(),L(),N()}));var M=function(e){s.sortType=e.value,s.sortTypeName=e.name,i.actionSorts.forEach((function(e){e.selected=!1})),e.selected=!0,i.showPopoverSort=!1,_.value=!0,O()},B=function(e){s.practiceMonth=e.selectedValues[0]+e.selectedValues[1],s.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",i.showPopoverTime=!1,_.value=!0,O()},L=function(){var t=o(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b.post("".concat(e.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:n=t.sent,i.actions=n.data.rows.map((function(e){return{name:e.name,value:e.id}})),i.actions.unshift({name:"全部乐团",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),r=t.t0.message,f(r);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),N=function(){var t=o(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b.post("".concat(e.value,"/subjectBasicConfig/page"),{data:{page:1,rows:9999}});case 3:n=t.sent,i.subjects=n.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),i.subjects.unshift({name:"全部声部",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),r=t.t0.message,f(r);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),F=function(){T.value=!1,x.value=!0,O()};return function(){var e;return u("div",{class:!C.value&&"emptyRootContainer"},[u(r,{position:"top",background:"#F8F8F8"},{default:function(){return[u("div",null,[u(n,{placeholder:"请输入学生姓名",onSearch:function(e){s.keyword=e,_.value=!0,O()}},null),u("div",{class:"searchGroup"},[u("div",{class:["searchItem",i.showPopoverTime?"searchItem-active":""],onClick:function(){i.showPopoverTime=!0}},[u("span",null,[s.practiceMonthName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",i.showPopoverOrchestra?"searchItem-active":""],onClick:function(){i.showPopoverOrchestra=!0}},[u("span",null,[s.orchestraName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",i.showPopoverSubject?"searchItem-active":""],onClick:function(){i.showPopoverSubject=!0}},[u("span",null,[s.subjectName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",i.showPopoverSort?"searchItem-active":""],onClick:function(){i.showPopoverSort=!0}},[u("span",null,[s.sortTypeName]),u("i",{class:"arrow"},null)])])])]}}),C.value?u(P,{modelValue:_.value,"onUpdate:modelValue":function(e){return _.value=e},onRefresh:F,style:"min-height: 100vh;"},{default:function(){return[u(I,{"loading-text":" ",finished:T.value,style:{paddingTop:"12px"},"finished-text":"没有更多了",onLoad:O},(t=e=S.value.map((function(e){return u(W,{item:e,forms:s},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!j(t)?e:{default:function(){return[e]}}))];var t}}):u(w,{tips:"暂无练习记录"},null),u(y,{show:i.showPopoverTime,"onUpdate:show":function(e){return i.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(k,{onCancel:function(){i.showPopoverTime=!1},onConfirm:B,modelValue:i.currentDate,"onUpdate:modelValue":function(e){return i.currentDate=e},title:"选择年月",minDate:m.value,maxDate:l.value,columnsType:p.value},null)]}}),u(R,{show:i.showPopoverSort,"onUpdate:show":function(e){return i.showPopoverSort=e},actions:i.actionSorts,onSelect:M},null),u(y,{show:i.showPopoverOrchestra,"onUpdate:show":function(e){return i.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(D,{columns:i.actions,onCancel:function(){return i.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.orchestraId=t.value,s.orchestraName=t.name,i.showPopoverOrchestra=!1,_.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),u(y,{show:i.showPopoverSubject,"onUpdate:show":function(e){return i.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(D,{columns:i.subjects,onCancel:function(){return i.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.subjectId=t.value,s.subjectName=t.name,i.showPopoverSubject=!1,_.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}))}}}))}();