index.3cc22135.js 13 KB

1
  1. import{d as j,ag as N,bL as w,c as t,F as A,g as m,q as g,e as T,r as C,Z as Q,R as E,$ as B,_ as D,ai as R,ak as O,al as H,m as _,ah as F,aj as V,P as U}from"./index.f2940478.js";import{O as k}from"./index.38d69c78.js";import{i as K}from"./icon-or.620acfd8.js";import{i as W}from"./icon_teacher.df08d662.js";import{i as x}from"./icon-muit-message.0a72e92d.js";import{C as b}from"./index.d77afd61.js";import{I as S}from"./index.a76f4d1e.js";import{G as z,a as y}from"./index.497ffc92.js";import{O as X}from"./index.ac80a2db.js";import{S as Y,a as J}from"./index.747864a0.js";import{L as Z}from"./index.a84c6da0.js";import{S as M,a as P}from"./index.6d175053.js";import{C as $}from"./index.0045c0ee.js";import{T as tt,a as L}from"./index.f5c68fb9.js";import{P as et}from"./index.26b6b013.js";import"./index.bb9b9e58.js";import"./index.5c31d467.js";/* empty css */import"./tcplayer.v4.8.0.min.d79f74d0.js";/* empty css */import"./use-tab-status.76f41276.js";import"./index.033ff788.js";import"./Picker.0ba19996.js";const st="_mineOrchestra_125jq_1",at="_select_125jq_5",rt="_icon_125jq_8",ot="_tabs_125jq_24",ct="_content_125jq_37";var v={mineOrchestra:st,select:at,icon:rt,tabs:ot,content:ct};const it="_myClass_175qp_1",lt="_itemDiv_175qp_4",nt="_userContainer_175qp_10",ut="_iconImg_175qp_17",pt="_messageImg_175qp_25",dt="_tag_175qp_29",ht="_content_175qp_56",mt="_teacherName_175qp_60",ft="_grid_175qp_63",gt="_title_175qp_63",vt="_name_175qp_69",At="_returnOrchestra_175qp_76";var n={myClass:it,itemDiv:lt,userContainer:nt,iconImg:ut,messageImg:pt,tag:dt,content:ht,teacherName:mt,grid:ft,title:gt,name:vt,returnOrchestra:At},St=j({name:"my-orchestra",props:{orchestraData:{type:Object,default:()=>({})},orchestraName:{type:String,default:""},list:{type:Object,default:()=>[]}},setup(u){const e=N(),{orchestraName:d}=w(u);console.log("\u{1F680} ~ orchestraName",d.value);const f=async c=>{console.log(c),T({api:"joinChatGroup",content:{type:"multi",id:c.imGroupId}})},o=c=>{console.log("\u{1F680} ~ item",c),m.platformType!="STUDENT"&&T({api:"open_app_page",content:{action:"app",pageTag:"classDetail",url:"",params:JSON.stringify({classId:c.classGroupId})}})},{list:l}=w(u);return()=>{var c,a,h;return t("div",{class:n.myClass},[Array.isArray(l.value)&&l.value.map(r=>t("div",{class:n.itemDiv,onClick:()=>o(r)},[t(b,{center:!0,class:n.userContainer},{icon:()=>t(S,{src:r.teacherAvatar||W,class:n.iconImg,fit:"cover"},null),title:()=>t(A,null,[m.platformType=="TEACHER"?t(A,null,[t("div",{class:n.content},[t("div",{class:["van-ellipsis",n.teacherName]},[r.classGroupName])]),t("div",{class:"van-ellipsis van-cell__label"},[d.value])]):t(A,null,[t("div",{class:n.content},[r.teacherName?t("div",{class:["van-ellipsis",n.teacherName]},[r.teacherName]):t("div",{style:{color:"rgba(178,178,178,1)"}},[g("\u6682\u65E0\u4F34\u5B66\u8001\u5E08")])]),t("div",{class:"van-cell__label"},[t("span",{class:n.tag},[r.classGroupName])])])]),value:()=>t(S,{class:n.messageImg,src:x,onClick:s=>{s.stopPropagation(),f(r)}},null)}),t(z,{border:!1,columnNum:3,class:n.grid},{default:()=>[t(y,{class:"gridBorderRight"},{default:()=>[t("p",{class:n.title},[r.studentNum||0]),t("p",{class:n.name},[g("\u5B66\u5458\u4EBA\u6570")])]}),t(y,{class:"gridBorderRight"},{default:()=>[t("p",{class:[n.title]},[r.notStartCourseNum||0]),t("p",{class:n.name},[g("\u5269\u4F59\u8BFE\u65F6")])]}),t(y,null,{default:()=>[t("p",{class:n.title},[r.totalCourseNum||0]),t("p",{class:n.name},[g("\u603B\u8BFE\u65F6")])]})]})])),m.platformType=="STUDENT"&&t("div",{class:"btnGroup",style:"padding-top: 12px; text-align: center;"},[(((c=u.orchestraData)==null?void 0:c.status)==="REGISTER"||((a=u.orchestraData)==null?void 0:a.status)==="LEARNING")&&t("span",{class:n.returnOrchestra,onClick:()=>{var r;e.push({path:"/apply-withdrawal",query:{id:(r=u.orchestraData)==null?void 0:r.orchestraId}})}},[g("\u7533\u8BF7\u9000\u56E2")]),((h=u.orchestraData)==null?void 0:h.status)==="AUTH"&&t("span",{class:n.returnOrchestra},[g("\u7533\u8BF7\u9000\u56E2\u4E2D")])])])}}});const yt="_orchestraStory_1jvjc_1",Ct="_cellGroup_1jvjc_5",Et="_storySteps_1jvjc_15",_t="_stepTimes_1jvjc_25",jt="_stepTime_1jvjc_25",It="_stepEdit_1jvjc_37",wt="_content_1jvjc_48",Tt="_storySwipe_1jvjc_54",Dt="_swipeImg_1jvjc_58",Lt="_iconActive_1jvjc_68",Nt="_iconInactive_1jvjc_72";var p={orchestraStory:yt,cellGroup:Ct,storySteps:Et,stepTimes:_t,stepTime:jt,stepEdit:It,content:wt,storySwipe:Tt,swipeImg:Dt,iconActive:Lt,iconInactive:Nt},Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAA8hJREFUSEuFVs9rVFcU/s59YzI2WBCjLZN0YSE6aq0gtZZqKXQXLREpdSWVFpSChmbRPyBQcGtEoaALS5G2uBGF6KLduCi4KNEMSTsQqpMYf9RGbZkqrXPvOeX+ej9mJu0deI95797vO+fec77vEf5jPJu7PljiZB8Be1n4dQL1QwQsvERATSCTvEJdemHorcXlYKjbi6f1qUpvScaZ5WMRLkHsLHeBiNiLXyYCArQQnTPKjPdVd99rx+sg0HNTIww+D8EqC+oAU3wL7p4WSAJZEyQHy1t2X86TFAjMrZujzDwhIiogucg7SRxFIPGkYT6DMFbesutUJEkJ9K3pERG+6MBj1D7cQJBti32fEXgi+yM/nYlkf8zEEcjCVEW3VB2QVTZa+9BHnd+SGGVGlGYW5vlsAYI0TQlVeyaOwDRqZ5j5sHsbo4uLjAb9fBPq119AfzwBSEFW94Nf3QjesAlCKj3wtAhsNorOljfvOkIyNz1oEtwWSClfHW7VX39CTX4H9fh3A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DIWQY9/zvcOqIHvS5V6H/095gCvRkDfzxG3TNhWEjE429Oeght0Kuh8wKedL37p8C8nmo2vCQMnUQ6God1B6A2DXoPwgKiqGDs4oU5rnTcKpGr7LnX4OnhmQG7wI5thHSBxRoWcst2FEJzY3eIAUjoNAx7aXzsKtabwn2IWBiKTzWL30oE8he9goobuo8mJJklZnyPXvDxIWOaQ/CiR+9VaSUXiyGl0bdBSDXQ1OMVdbcANs/06vIPZ4cDKOm6bOzx+HwN36gEe/AwMLMgBrMfcitkA0UqJC6droGjh7QUGrZjp4DakdXh9UG322Dv85qqH7PwOjpENLfDGkdW4xnma9l6u5ueTDZaJmreD2mfdSjl9/Qbq/r/9WZuT2dN8q0UHRSSqBkFcpAO6vUrCqU1Uhp3qSAbA/plzxvlaVqWZraWaVtDb4PmaZWj4ROXdvXTfVCr+66XTwhR0BzTC8O5x3dX6FUU8zgvdj1elwuKaj5ueW9qwtZXRoD2SWtct+uAml9EplfLsaotoVETMi182chQ5XtQhkT8UFnApdWrmgCKv4H/BmPw5b13qYAAAAASUVORK5CYII=";function bt(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!H(u)}var qt=j({name:"orchestra-story",props:{orchestraId:{type:String,default:""}},setup(u){const e=C({isClick:!1,list:[],videoWidth:"100%",listState:{reshLoading:!1,dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},params:{type:null,page:1,rows:20}}),d=async()=>{try{if(e.isClick)return;e.isClick=!0;const c=await _.post(`${m.platformApi}/orchestraStory/page`,{data:{orchestraId:u.orchestraId},hideLoading:!0});e.listState.loading=!1,e.listState.refreshing=!1;const a=c.data||{};if(e.list.length>0&&a.current===1)return;e.list=e.list.concat(a.rows||[]),e.listState.finished=a.current>=a.pages,e.params.page=a.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.listState.refreshing=!1,e.isClick=!1}};Q(()=>u.orchestraId,()=>{e.params.page=1,e.list=[],e.listState.finished=!1,d()});const f=E([]),o=c=>{f.value.forEach((a,h)=>{h!==c&&a.onStop()})},l=E([]);return B(async()=>{await d(),D(()=>{var a;const c=(a=document.querySelector(".van-step__title"))==null?void 0:a.clientWidth;e.videoWidth=c?c+"px":"100%"})}),()=>{let c;return t("div",{class:[p.orchestraStory],style:{overflowY:"auto",height:e.listState.dataShow?"auto":"100%"}},[e.listState.dataShow?t(Z,{finished:e.listState.finished,finishedText:" ",class:[p.liveList],onLoad:d,immediateCheck:!1},{default:()=>[t(Y,{direction:"vertical",class:[p.storySteps,"storyStepContainer"]},bt(c=e.list.map((a,h)=>t(J,null,{default:()=>[t("div",{class:p.stepTimes},[t("div",{class:p.stepTime},[R(a.createTime).format("YYYY\u5E74MM\u6708DD\u65E5")])]),t("p",{class:[p.content,"van-multi-ellipsis--l2"]},[a.content]),t(M,{ref:r=>l.value[h]=r,class:p.storySwipe,touchable:a.type!=="VIDEO"},{default:()=>[a.attachments&&a.attachments.map((r,s)=>t(P,null,{default:()=>[a.type==="IMAGE"&&t("div",{class:p.swipeImg,style:r.url?{backgroundImage:`url(${r.url})`,backgroundSize:"cover"}:""},null),a.type==="VIDEO"&&t(X,{src:r.url,height:"100%",style:{width:e.videoWidth},poster:r.coverImage,class:p.swipeImg,ref:i=>f.value[s]=i,onPlay:()=>o(s),onExitfullscreen:()=>{D(()=>{setTimeout(()=>{l.value.forEach(i=>{i.resize()})},600)})}},null)]}))]})],"inactive-icon":()=>t(S,{src:Bt,class:p.iconInactive},null),"active-icon":()=>t(S,{src:Ot,class:p.iconActive},null)})))?c:{default:()=>[c]})]}):t(O,{btnStatus:!1,tips:"\u6682\u65E0\u4E8B\u8FF9",style:{paddingBottom:"30px"}},null)])}}}),re=j({name:"my-orchestra",setup(u,e){var r;const d=F();N();const f=E(((r=d.query)==null?void 0:r.tab)||"course"),o=C({orchestraList:[],loading:!0,reshLoading:!1,dataShow:!0}),l=C({orchestra:{},orchestraStatus:!1}),c=()=>{o.loading=!0,_.post(`${m.platformApi}/orchestra/studentOrchestra`,{}).then(s=>{Array.isArray(s==null?void 0:s.data)&&(o.orchestraList=s.data.map(i=>({...i,name:i.name||i.orchestraName||"",id:i.id||i.orchestraId||""})),l.orchestra=o.orchestraList[0]||{})}).finally(()=>{setTimeout(()=>{o.loading=!1,o.reshLoading=!1},300)})},a=async()=>{o.loading=!0,_.post(`${m.platformApi}/orchestra/teacherOrchestra`,{}).then(s=>{Array.isArray(s==null?void 0:s.data)&&(o.orchestraList=s.data.map(i=>({...i,name:i.name||i.orchestraName||"",id:i.id||i.orchestraId||""})),l.orchestra=o.orchestraList[0]||{})}).finally(()=>{setTimeout(()=>{o.loading=!1,o.reshLoading=!1},300)})},h=()=>{m.platformType==="STUDENT"?c():m.platformType==="TEACHER"&&a()};return B(()=>{document.documentElement.style.setProperty("--footer-height","0px"),h()}),()=>t("div",{class:[v.mineOrchestra]},[t(k,{onGetHeight:s=>{document.documentElement.style.setProperty("--header-height",s+"px")}},{default:()=>[t(V,{title:"\u6211\u7684\u4E50\u56E2"},null)]}),!!o.orchestraList.length&&t($,{inset:!0},{default:()=>[t(b,{class:v.select,center:!0,isLink:!0,onClick:()=>l.orchestraStatus=!0},{icon:()=>t("img",{class:v.icon,src:K},null),title:()=>t("div",{class:"van-ellipsis"},[l.orchestra.name])})]}),!!o.orchestraList.length&&t(A,null,[t(tt,{active:f.value,"onUpdate:active":s=>f.value=s,class:v.tabs,lazyRender:!0,background:"transparent",lineWidth:16,lineHeight:4},{default:()=>[t(L,{name:"course",title:"\u6211\u7684\u73ED\u7EA7"},{default:()=>{var s,i;return[t("div",{class:v.content},[t(St,{orchestraName:((s=l.orchestra)==null?void 0:s.name)||"",list:((i=l.orchestra)==null?void 0:i.classGroupIdList)||[],orchestraData:l.orchestra},null)])]}}),t(L,{name:"deeds",title:"\u4E50\u56E2\u4E8B\u8FF9"},{default:()=>{var s;return[t("div",{class:v.content},[t(qt,{orchestraId:((s=l.orchestra)==null?void 0:s.id)||""},null)])]}})]})]),!o.loading&&!o.orchestraList.length&&t("div",{class:!o.orchestraList.length&&"emptyRootContainer",style:{minHeight:"calc(100vh - var(--header-height))"}},[t(O,{btnStatus:!1,tips:"\u6682\u65E0\u4E50\u56E2"},null)]),t(U,{show:l.orchestraStatus,"onUpdate:show":s=>l.orchestraStatus=s,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(et,{columns:o.orchestraList,columnsFieldNames:{text:"name",value:"id"},onCancel:()=>l.orchestraStatus=!1,onConfirm:({selectedValues:s})=>{var I;const i=s[0]||"";if(l.orchestraStatus=!1,i==((I=l.orchestra)==null?void 0:I.id))return;const q=o.orchestraList.find(G=>G.id==i)||{};l.orchestra=q}},null)]})])}});export{re as default};