index-legacy.ddec62c2.js 16 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(u){return void n(u)}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_6hke8_1{width:calc(100% - .8rem);height:3.22667rem;background:#ffffff;border-radius:.26667rem;margin:0 .4rem .32rem}._itemWrap_6hke8_1 ._itemTop_6hke8_8{padding:.21333rem .4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopLeft_6hke8_16{display:flex;flex-direction:row;align-items:center}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopLeft_6hke8_16 ._headIcon_6hke8_21{width:.8rem;height:.8rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopLeft_6hke8_16 ._headIcon_6hke8_21 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopLeft_6hke8_16 ._name_6hke8_33{font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.8rem;margin-right:.26667rem}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopLeft_6hke8_16 ._tag_6hke8_41{padding:0;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_6hke8_1 ._itemTop_6hke8_8 ._itemTopRight_6hke8_54{width:.64rem;height:.64rem;padding:.05333rem}._itemWrap_6hke8_1 ._itemTop_6hke8_8 ._itemTopRight_6hke8_54 img{width:100%;height:100%}._itemWrap_6hke8_1 ._itemBottom_6hke8_63{padding:.26667rem;display:flex;flex-direction:row;align-items:center;text-align:center}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._msgMain_6hke8_70{font-size:.69333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#f67146;line-height:.8rem}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._msgMain_6hke8_70 span{height:.45333rem;font-size:.32rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._msgsub_6hke8_85{margin-top:.10667rem;height:.53333rem;font-size:.37333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._itemBottomLeft_6hke8_94{width:50%;position:relative}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._itemBottomLeft_6hke8_94:after{content:"";width:.02667rem;height:.53333rem;background:#f2f2f2;border-radius:.02667rem;right:0;top:50%;margin-top:-.26667rem;position:absolute}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._itemBottomRight_6hke8_109{width:50%;position:relative}._itemWrap_6hke8_1 ._itemBottom_6hke8_63 ._itemBottomRight_6hke8_109 ._arrow_6hke8_113{position:absolute;bottom:.37333rem;right:.4rem;font-size:.42667rem;color:#d8d8d8}.bottomSheet .van-action-sheet__description{padding:0!important}.bottomSheet .van-action-sheet__description:after{border:none!important}._bottomTitle_6hke8_126{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_6hke8_126 ._bottomTitleLeft_6hke8_140{display:flex;flex-direction:row;align-items:center}._bottomTitle_6hke8_126 ._bottomTitleLeft_6hke8_140 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_6hke8_153{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_6hke8_153 ._bottomImgWrap_6hke8_159{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_6hke8_153 ._bottomImgWrap_6hke8_159 img{width:100%;height:100%}._bottomConent_6hke8_153 ._bottomConentLeft_6hke8_168,._bottomConent_6hke8_153 ._bottomConentRight_6hke8_169{width:50%;display:flex;flex-direction:column;align-items:center}._chioseWrap_kqg22_1{display:flex;flex-direction:row;align-items:center;justify-content:space-around;background-color:#f8f8f8;font-size:.37333rem}._chioseWrap_kqg22_1 ._searchBandWrap_kqg22_9{max-width:25%}._chioseWrap_kqg22_1 ._searchBand_kqg22_9{display:flex;flex-direction:row;align-items:center}._chioseWrap_kqg22_1 ._searchBand_kqg22_9 p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._recordSearch_kqg22_22 .van-search{padding-bottom:0}\n',document.head.appendChild(a),System.register(["./index-legacy.6db3d1d4.js","./index-legacy.ebed2bf5.js","./index-legacy.07e66d56.js","./index-legacy.df22de30.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./phone-icon-legacy.356941b3.js","./index-legacy.20aef719.js","./index-legacy.1074d002.js","./index-legacy.1382448c.js","./index-legacy.f2c10495.js","./index-legacy.7c739b44.js","./index-legacy.5a43cb56.js","./index-legacy.e8181c1b.js","./utils-legacy.005574f2.js","./use-tab-status-legacy.3a3bd634.js","./index-legacy.ded5382d.js","./index-legacy.d9cd5f20.js","./index-legacy.810fb4ed.js"],(function(e){"use strict";var n,o,a,i,c,s,u,l,m,h,p,_,f,d,g,v,b,k,w,y,x,j,P,T,C,S,O,R,I,D,W;return{setters:[function(e){n=e.O},function(e){o=e.O},function(e){a=e.d,i=e.ag,c=e.R,s=e.Z,u=e.c,l=e.q,m=e.a5,h=e.F,p=e.k,_=e.o,f=e.f,d=e.r,g=e.ah,v=e.$,b=e.m,k=e.ai,w=e.P,y=e.aj,x=e.ak},function(e){j=e.O},function(e){P=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){I=e.D},function(e){D=e.L},function(e){W=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var B={itemWrap:"_itemWrap_6hke8_1",itemTop:"_itemTop_6hke8_8",itemTopLeft:"_itemTopLeft_6hke8_16",headIcon:"_headIcon_6hke8_21",name:"_name_6hke8_33",tag:"_tag_6hke8_41",itemTopRight:"_itemTopRight_6hke8_54",itemBottom:"_itemBottom_6hke8_63",msgMain:"_msgMain_6hke8_70",msgsub:"_msgsub_6hke8_85",itemBottomLeft:"_itemBottomLeft_6hke8_94",itemBottomRight:"_itemBottomRight_6hke8_109",arrow:"_arrow_6hke8_113",bottomTitle:"_bottomTitle_6hke8_126",bottomTitleLeft:"_bottomTitleLeft_6hke8_140",bottomConent:"_bottomConent_6hke8_153",bottomImgWrap:"_bottomImgWrap_6hke8_159",bottomConentLeft:"_bottomConentLeft_6hke8_168",bottomConentRight:"_bottomConentRight_6hke8_169"},M=c({}),L=a({props:["item","forms"],name:"student-item",setup:function(e){var t=i(),n=c(!1),o=function(){n.value=!1};s((function(){return e.forms}),(function(e){M.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,p({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),_("发起聊天失败"),o();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),f=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,p({api:"callPhone",content:{phone:e.item.phone}});case 3:o(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),_("发起聊天失败"),o();case 10:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),d=function(){console.log(M.value.practiceMonth,M.value.practiceMonthName),t.push({path:"/exercis-detail",query:{id:e.item.id,practiceMonth:M.value.practiceMonth,practiceMonthName:M.value.practiceMonthName}})};return function(){return u(h,null,[u("div",null,[u("div",{class:B.itemWrap,onClick:d},[u("div",{class:B.itemTop},[u("div",{class:B.itemTopLeft},[u("div",{class:B.headIcon},[u("img",{src:e.item.avatar?e.item.avatar:P,alt:""},null)]),u("p",{class:B.name},[e.item.nickname]),u("div",{class:B.tag},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])]),u("div",{class:B.itemTopRight},[u("div",{class:B.msgIcon,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.value=!0}},[u("img",{src:T,alt:""},null)])])]),u("div",{class:B.itemBottom},[u("div",{class:B.itemBottomLeft},[u("p",{class:B.msgMain},[e.item.practiceDays?e.item.practiceDays:0,l(" "),u("span",null,[l("天")])]),u("p",{class:B.msgsub},[l("练习天数")])]),u("div",{class:B.itemBottomRight},[u("p",{class:B.msgMain},[e.item.practiceTimes?e.item.practiceTimes:0,u("span",null,[l("分钟")])]),u("p",{class:B.msgsub},[l("练习时长")]),u(m,{class:B.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:B.bottomConent},[u("div",{class:B.bottomConentLeft,onClick:function(e){e.stopPropagation(),e.preventDefault(),a()}},[u("div",{class:B.bottomImgWrap},[u("img",{src:C,alt:""},null)]),u("p",null,[l("发送消息")])]),u("div",{class:B.bottomConentRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),f()}},[u("div",{class:B.bottomImgWrap},[u("img",{src:S,alt:""},null)]),u("p",null,[l("拨打电话")])])])]},description:function(){return u("div",{class:B.bottomTitle},[u("div",{class:B.bottomTitleLeft},[u("span",null,null),u("p",null,[l("联系方式")])]),u("div",{class:B.bottomTitleRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),o()}},[u(m,{class:B.cross,name:"cross"},null)])])}})])}}}),N="_recordSearch_kqg22_22";e("default",a({name:"exercise-record",setup:function(){var e=c(f.platformApi);i();var a=d({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=d({practiceMonth:a.currentDate[0]+""+a.currentDate[1],practiceMonthName:a.currentDate[0]+"年"+a.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",sortType:"PRACTICE_DAY",sortTypeName:"按天数",keyword:"",page:1,rows:20}),l=c(new Date(g().subtract(10,"year").format("YYYY-MM-DD"))),m=c(new Date(g().add(10,"year").format("YYYY-MM-DD"))),h=c(["year","month"]),p=c(!1),P=c(!1),T=c(!1),C=c(!1),S=c([]),O=function(){var n=r(regeneratorRuntime.mark((function n(){var o,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return P.value=!0,n.prev=1,p.value&&(s.page=1,S.value=[],p.value=!1),n.next=5,b.post("".concat(e.value,"/student/page"),{data:t({},s)});case 5:if(o=n.sent,!(S.value.length>0&&1===o.data.pages)){n.next=8;break}return n.abrupt("return");case 8:s.page=o.data.current+1,S.value=S.value.concat(o.data.rows||[]),C.value=S.value.length>0,console.log(C.value," showContact.value "),P.value=!1,T.value=o.data.current>=o.data.pages,n.next=22;break;case 16:n.prev=16,n.t0=n.catch(1),r=n.t0.message,_(r),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(),F(),Y()}));var B=function(e){s.sortType=e.value,s.sortTypeName=e.name,a.actionSorts.forEach((function(e){e.selected=!1})),e.selected=!0,a.showPopoverSort=!1,p.value=!0,O()},M=function(e){s.practiceMonth=e.selectedValues[0]+e.selectedValues[1],s.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",a.showPopoverTime=!1,p.value=!0,O()},F=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("".concat(e.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:n=t.sent,a.actions=n.data.rows.map((function(e){return{name:e.name,value:e.id}})),a.actions.unshift({name:"全部乐团",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),o=t.t0.message,_(o);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),Y=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("".concat(e.value,"/subjectBasicConfig/page"),{data:{page:1,rows:9999}});case 3:n=t.sent,a.subjects=n.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),a.subjects.unshift({name:"全部声部",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),o=t.t0.message,_(o);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),q=function(){T.value=!1,P.value=!0,O()};return function(){var e;return u("div",{class:!C.value&&"emptyRootContainer"},[u(o,{position:"top",background:"#F8F8F8"},{default:function(){return[u("div",null,[u(n,{placeholder:"请输入学生姓名",class:N,onSearch:function(e){s.keyword=e,p.value=!0,O()}},null),u("div",{class:"searchGroup"},[u("div",{class:["searchItem",a.showPopoverTime?"searchItem-active":""],onClick:function(){a.showPopoverTime=!0}},[u("span",null,[s.practiceMonthName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",a.showPopoverOrchestra?"searchItem-active":""],onClick:function(){a.showPopoverOrchestra=!0}},[u("span",null,[s.orchestraName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",a.showPopoverSubject?"searchItem-active":""],onClick:function(){a.showPopoverSubject=!0}},[u("span",null,[s.subjectName]),u("i",{class:"arrow"},null)]),u("div",{class:["searchItem",a.showPopoverSort?"searchItem-active":""],onClick:function(){a.showPopoverSort=!0}},[u("span",null,[s.sortTypeName]),u("i",{class:"arrow"},null)])])])]}}),C.value?u(j,{modelValue:p.value,"onUpdate:modelValue":function(e){return p.value=e},onRefresh:q,style:"min-height: 100vh;"},{default:function(){return[u(D,{"loading-text":" ",finished:T.value,style:{paddingTop:"12px"},"finished-text":"没有更多了",onLoad:O},(t=e=S.value.map((function(e){return u(L,{item:e,forms:s},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}}))];var t}}):u(k,{tips:"暂无练习记录"},null),u(w,{show:a.showPopoverTime,"onUpdate:show":function(e){return a.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(I,{onCancel:function(){a.showPopoverTime=!1},onConfirm:M,modelValue:a.currentDate,"onUpdate:modelValue":function(e){return a.currentDate=e},minDate:l.value,formatter:y,maxDate:m.value,columnsType:h.value},null)]}}),u(R,{show:a.showPopoverSort,"onUpdate:show":function(e){return a.showPopoverSort=e},actions:a.actionSorts,onSelect:B},null),u(w,{show:a.showPopoverOrchestra,"onUpdate:show":function(e){return a.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(W,{columns:a.actions,onCancel:function(){return a.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.orchestraId=t.value,s.orchestraName=t.name,a.showPopoverOrchestra=!1,p.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),u(w,{show:a.showPopoverSubject,"onUpdate:show":function(e){return a.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(W,{columns:a.subjects,onCancel:function(){return a.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};s.subjectId=t.value,s.subjectName=t.name,a.showPopoverSubject=!1,p.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}))}}}))}();