index-legacy.da069069.js 16 KB

12
  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.48c8d62c.js","./index-legacy.87ef53c1.js","./index-legacy.8cf5f94f.js","./index-legacy.b00f6427.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./phone-icon-legacy.356941b3.js","./index-legacy.b7e8815a.js","./index-legacy.3373b1d3.js","./index-legacy.a53f47a7.js","./index-legacy.04f465c8.js","./index-legacy.384d768f.js","./index-legacy.55fe5b03.js","./index-legacy.087e0425.js","./utils-legacy.60f652b8.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.ef66d7bb.js","./index-legacy.71047e87.js","./index-legacy.a2ac81dd.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.d,o=e.ag,a=e.R,i=e.Z,c=e.c,s=e.q,u=e.a5,l=e.F,m=e.k,h=e.o,p=e.f,_=e.r,f=e.ah,d=e.$,g=e.m,v=e.ai,b=e.P,k=e.aj,w=e.ak},function(e){y=e.O},function(e){x=e.O},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=a({}),L=n({props:["item","forms"],name:"student-item",setup:function(e){var t=o(),n=a(!1),p=function(){n.value=!1};i((function(){return e.forms}),(function(e){M.value=e}),{deep:!0});var _=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,m({api:"joinChatGroup",content:{type:"single",id:e.item.imUserId}});case 3:p(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),h("发起聊天失败"),p();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,m({api:"callPhone",content:{phone:e.item.phone}});case 3:p(),t.next=10;break;case 6:t.prev=6,t.t0=t.catch(0),h("发起聊天失败"),p();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 c(l,null,[c("div",null,[c("div",{class:B.itemWrap,onClick:d},[c("div",{class:B.itemTop},[c("div",{class:B.itemTopLeft},[c("div",{class:B.headIcon},[c("img",{src:e.item.avatar?e.item.avatar:P,alt:""},null)]),c("p",{class:B.name},[e.item.nickname]),c("div",{class:B.tag},[e.item.subjectNames?e.item.subjectNames:"暂无声部"])]),c("div",{class:B.itemTopRight},[c("div",{class:B.msgIcon,onClick:function(e){e.stopPropagation(),e.preventDefault(),n.value=!0}},[c("img",{src:T,alt:""},null)])])]),c("div",{class:B.itemBottom},[c("div",{class:B.itemBottomLeft},[c("p",{class:B.msgMain},[e.item.practiceDays?e.item.practiceDays:0,s(" "),c("span",null,[s("天")])]),c("p",{class:B.msgsub},[s("练习天数")])]),c("div",{class:B.itemBottomRight},[c("p",{class:B.msgMain},[e.item.practiceTimes?e.item.practiceTimes:0,c("span",null,[s("分钟")])]),c("p",{class:B.msgsub},[s("练习时长")]),c(u,{class:B.arrow,name:"arrow"},null)])])])]),c(O,{class:"bottomSheet",show:n.value,"onUpdate:show":function(e){return n.value=e}},{default:function(){return[c("div",{class:B.bottomConent},[c("div",{class:B.bottomConentLeft,onClick:function(e){e.stopPropagation(),e.preventDefault(),_()}},[c("div",{class:B.bottomImgWrap},[c("img",{src:C,alt:""},null)]),c("p",null,[s("发送消息")])]),c("div",{class:B.bottomConentRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),f()}},[c("div",{class:B.bottomImgWrap},[c("img",{src:S,alt:""},null)]),c("p",null,[s("拨打电话")])])])]},description:function(){return c("div",{class:B.bottomTitle},[c("div",{class:B.bottomTitleLeft},[c("span",null,null),c("p",null,[s("联系方式")])]),c("div",{class:B.bottomTitleRight,onClick:function(e){e.stopPropagation(),e.preventDefault(),p()}},[c(u,{class:B.cross,name:"cross"},null)])])}})])}}}),N="_recordSearch_kqg22_22";e("default",n({name:"exercise-record",setup:function(){var e=a(p.platformApi);o();var n=_({showPopoverTime:!1,showPopoverOrchestra:!1,showPopoverSubject:!1,showPopoverSort:!1,actions:[],subjects:[],actionSorts:[{name:"按天数",value:"PRACTICE_DAY",selected:!0},{name:"按时长",value:"PRACTICE_TIMES"}],currentDate:[f().format("YYYY"),f().format("MM")]}),i=_({practiceMonth:n.currentDate[0]+""+n.currentDate[1],practiceMonthName:n.currentDate[0]+"年"+n.currentDate[1]+"月",orchestraId:"",orchestraName:"全部乐团",subjectId:"",subjectName:"全部声部",sortType:"PRACTICE_DAY",sortTypeName:"按天数",keyword:"",page:1,rows:20}),s=a(new Date(f().subtract(10,"year").format("YYYY-MM-DD"))),u=a(new Date(f().add(10,"year").format("YYYY-MM-DD"))),l=a(["year","month"]),m=a(!1),P=a(!1),T=a(!1),C=a(!1),S=a([]),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,m.value&&(i.page=1,S.value=[],m.value=!1),n.next=5,g.post("".concat(e.value,"/student/page"),{data:t({},i)});case 5:if(o=n.sent,!(S.value.length>0&&1===o.data.pages)){n.next=8;break}return n.abrupt("return");case 8:i.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,h(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)}}();d((function(){O(),F(),Y()}));var B=function(e){i.sortType=e.value,i.sortTypeName=e.name,n.actionSorts.forEach((function(e){e.selected=!1})),e.selected=!0,n.showPopoverSort=!1,m.value=!0,O()},M=function(e){i.practiceMonth=e.selectedValues[0]+e.selectedValues[1],i.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",n.showPopoverTime=!1,m.value=!0,O()},F=function(){var t=r(regeneratorRuntime.mark((function t(){var o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g.post("".concat(e.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:o=t.sent,n.actions=o.data.rows.map((function(e){return{name:e.name,value:e.id}})),n.actions.unshift({name:"全部乐团",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),r=t.t0.message,h(r);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 o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g.post("".concat(e.value,"/subjectBasicConfig/page"),{data:{page:1,rows:9999}});case 3:o=t.sent,n.subjects=o.data.rows.map((function(e){return{name:e.subjectName,value:e.subjectId}})),n.subjects.unshift({name:"全部声部",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),r=t.t0.message,h(r);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 c("div",{class:!C.value&&"emptyRootContainer"},[c(x,{position:"top",background:"#F8F8F8"},{default:function(){return[c("div",null,[c(y,{placeholder:"请输入学生姓名",class:N,onSearch:function(e){i.keyword=e,m.value=!0,O()}},null),c("div",{class:"searchGroup"},[c("div",{class:["searchItem",n.showPopoverTime?"searchItem-active":""],onClick:function(){n.showPopoverTime=!0}},[c("span",null,[i.practiceMonthName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",n.showPopoverOrchestra?"searchItem-active":""],onClick:function(){n.showPopoverOrchestra=!0}},[c("span",null,[i.orchestraName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",n.showPopoverSubject?"searchItem-active":""],onClick:function(){n.showPopoverSubject=!0}},[c("span",null,[i.subjectName]),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",n.showPopoverSort?"searchItem-active":""],onClick:function(){n.showPopoverSort=!0}},[c("span",null,[i.sortTypeName]),c("i",{class:"arrow"},null)])])])]}}),C.value?c(j,{modelValue:m.value,"onUpdate:modelValue":function(e){return m.value=e},onRefresh:q,style:"min-height: 100vh;"},{default:function(){return[c(D,{"loading-text":" ",finished:T.value,style:{paddingTop:"12px"},"finished-text":"没有更多了",onLoad:O},(t=e=S.value.map((function(e){return c(L,{item:e,forms:i},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!w(t)?e:{default:function(){return[e]}}))];var t}}):c(v,{tips:"暂无练习记录"},null),c(b,{show:n.showPopoverTime,"onUpdate:show":function(e){return n.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(I,{onCancel:function(){n.showPopoverTime=!1},onConfirm:M,modelValue:n.currentDate,"onUpdate:modelValue":function(e){return n.currentDate=e},minDate:s.value,formatter:k,maxDate:u.value,columnsType:l.value},null)]}}),c(R,{show:n.showPopoverSort,"onUpdate:show":function(e){return n.showPopoverSort=e},actions:n.actionSorts,onSelect:B},null),c(b,{show:n.showPopoverOrchestra,"onUpdate:show":function(e){return n.showPopoverOrchestra=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(W,{columns:n.actions,onCancel:function(){return n.showPopoverOrchestra=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};i.orchestraId=t.value,i.orchestraName=t.name,n.showPopoverOrchestra=!1,m.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}}),c(b,{show:n.showPopoverSubject,"onUpdate:show":function(e){return n.showPopoverSubject=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(W,{columns:n.subjects,onCancel:function(){return n.showPopoverSubject=!1},onConfirm:function(e){return function(e){var t=e.selectedOptions[0]||{};i.subjectId=t.value,i.subjectName=t.name,n.showPopoverSubject=!1,m.value=!0,O()}(e)},columnsFieldNames:{text:"name",value:"value"}},null)]}})])}}}))}}}))}();