1 |
- import{d as v,ah as w,ag as C,r as E,R as Q,$ as y,c as s,aj as I,q as p,ai as O,a5 as B,ak as V,P as F,al as L,m as u,g as D}from"./index.5f7ffb46.js";import{S as U,a as z,O as H}from"./index.0a4363b6.js";import{i as T}from"./icon-or.620acfd8.js";import{C as K}from"./index.052b3caa.js";import{C as j}from"./index.abd668f7.js";import{L as N}from"./index.9ef28852.js";import{S as R,a as k}from"./index.99e0cf1f.js";import{I as d}from"./index.276a5d68.js";import{P as G}from"./index.de1f78a6.js";import"./plyr.min.cb0f7b0b.js";/* empty css */import"./use-tab-status.69b57a37.js";import"./Picker.148c9d83.js";import"./index.6bbd7daa.js";import"./index.61ab9823.js";const x="_cellGroup_z9vf7_1",b="_select_z9vf7_6",q="_icon_z9vf7_9",Y="_storySteps_z9vf7_25",W="_stepTimes_z9vf7_41",J="_stepTime_z9vf7_41",X="_stepEdit_z9vf7_52",M="_content_z9vf7_64",Z="_storySwipe_z9vf7_70",P="_swipeImg_z9vf7_74",_="_iconActive_z9vf7_84",$="_iconInactive_z9vf7_88";var a={cellGroup:x,select:b,icon:q,storySteps:Y,stepTimes:W,stepTime:J,stepEdit:X,content:M,storySwipe:Z,swipeImg:P,iconActive:_,iconInactive:$},tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAcFJREFUSEu91r9P20AUB/DvO8VShg5dYUJCYmpH1pIs7LB05Q9gY7hLlnpxc5e/ggmJiYkFIcHeqUNbCSEQQmnVrWMklHuVkQ3G5O78I8Sr9e6jr++9OxOW/NCSPbQGh8Phymw2OwKwb4z5EQrQClRKrVlrz4loHcBfZu6Px+NfPrQxGMexmE6n35n5QwH4I4TojUajKxfaCEyxOI6tUmqTmc8AvC8AEyLqaa2v56G1wcFgsMHMJwD2tNbf5qHMfJ8m1VrflNFaYIpZay8ArAL4R0TbHvQuiqKtJEnuimhlsITla4TQ2wy9zwsqgQ6sEgrgutPp9JIkmaQF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xIWOaQ/CiR+9VaSUXiyGl0bdBSDXQ1OMVdbcANs/06vIPZ4cDKOm6bOzx+HwN36gEe/AwMLMgBrMfcitkA0UqJC6droGjh7QUGrZjp4DakdXh9UG322Dv85qqH7PwOjpENLfDGkdW4xnma9l6u5ueTDZaJmreD2mfdSjl9/Qbq/r/9WZuT2dN8q0UHRSSqBkFcpAO6vUrCqU1Uhp3qSAbA/plzxvlaVqWZraWaVtDb4PmaZWj4ROXdvXTfVCr+66XTwhR0BzTC8O5x3dX6FUU8zgvdj1elwuKaj5ueW9qwtZXRoD2SWtct+uAml9EplfLsaotoVETMi182chQ5XtQhkT8UFnApdWrmgCKv4H/BmPw5b13qYAAAAASUVORK5CYII=";function at(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!L(c)}var vt=v({name:"orchestra-story",setup(){w();const c=C(),t=E({orchestraStatus:!1,orchestraList:[],selectOrchestra:{},isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},params:{type:null,page:1,rows:20}}),f=async()=>{try{const{data:o}=await u.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:D.user.data.school.id,status:"DONE"}}),e=o.rows||[],r=[];if(e.forEach(i=>{r.push({text:i.name,value:i.id})}),t.orchestraList=[...r],r.length>0){const i=sessionStorage.getItem("orchestraStoryId");if(i){const n=r.find(g=>g.value===i);t.selectOrchestra=n||r[0]}else t.selectOrchestra=r[0];l()}}catch{}},l=async()=>{try{if(t.isClick)return;t.isClick=!0;const o=await u.post("/api-school/orchestraStory/page",{data:{orchestraId:t.selectOrchestra.value}});t.listState.loading=!1,t.listState.refreshing=!1;const e=o.data||{};if(t.list.length>0&&e.current===1)return;t.list=t.list.concat(e.rows||[]),t.listState.finished=e.current>=e.pages,t.params.page=e.current+1,t.listState.dataShow=t.list.length>0,t.isClick=!1}catch{t.listState.dataShow=!1,t.listState.finished=!0,t.listState.refreshing=!1,t.isClick=!1}},h=()=>{t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,l()},S=async o=>{c.push({path:"/story-operation",query:{id:o.id,orchestraId:t.selectOrchestra.value}})},A=Q([]),m=o=>{A.value.forEach((e,r)=>{r!==o&&e.onStop()})};return y(async()=>{f()}),()=>{let o;return s("div",{class:[a.orchestraStory,!t.listState.dataShow&&"emptyRootContainer"]},[s(I,null,{right:()=>s("span",{style:{color:"var(--van-primary)",fontWeight:500},onClick:()=>{c.push("/story-operation")}},[p("\u6DFB\u52A0")])}),t.orchestraList.length>0&&s("div",{style:{width:"100%"}},[s(K,{inset:!0,class:a.cellGroup},{default:()=>[s(j,{isLink:!0,center:!0,onClick:()=>t.orchestraStatus=!0,class:a.select},{icon:()=>s("img",{class:a.icon,src:T},null),title:()=>s("div",{class:"van-ellipsis"},[t.selectOrchestra.text||" "])})]})]),t.listState.dataShow?s(N,{finished:t.listState.finished,finishedText:" ",class:[a.liveList],onLoad:l,immediateCheck:!1},{default:()=>[s(U,{direction:"vertical",class:a.storySteps},at(o=t.list.map((e,r)=>s(z,null,{default:()=>[s("div",{class:a.stepTimes},[s("div",{class:a.stepTime},[O(e.createTime).format("YYYY\u5E74MM\u6708DD\u65E5")]),s("span",{class:a.stepEdit,onClick:()=>S(e)},[s(B,{name:tt},null),p("\u7F16\u8F91")])]),s("p",{class:[a.content,"van-multi-ellipsis--l2"]},[e.content]),s(R,{class:a.storySwipe},{default:()=>[e.attachments&&e.attachments.map(i=>s(k,null,{default:()=>[e.type==="IMAGE"&&s("div",{class:a.swipeImg,style:i.url?{backgroundImage:`url(${i.url})`,backgroundSize:"cover"}:""},null),e.type==="VIDEO"&&s(H,{ref:n=>A.value[r]=n,src:i.url,height:"100%",poster:i.coverImage,class:a.swipeImg,onPlay:()=>m(r)},null)]}))]})],"inactive-icon":()=>s(d,{src:st,class:a.iconInactive},null),"active-icon":()=>s(d,{src:et,class:a.iconActive},null)})))?o:{default:()=>[o]})]}):s(V,{btnStatus:!1,tips:"\u6682\u65E0\u4E8B\u8FF9"},null),s(F,{show:t.orchestraStatus,"onUpdate:show":e=>t.orchestraStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[s(G,{columns:t.orchestraList,onCancel:()=>t.orchestraStatus=!1,onConfirm:e=>{t.selectOrchestra=e.selectedOptions[0],t.orchestraStatus=!1,sessionStorage.setItem("orchestraStoryId",t.selectOrchestra.value),h()}},null)]})])}}});export{vt as default};
|