var h=Object.defineProperty;var l=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var o=(t,i,s)=>i in t?h(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s,r=(t,i)=>{for(var s in i||(i={}))c.call(i,s)&&o(t,s,i[s]);if(l)for(var s of l(i))d.call(i,s)&&o(t,s,i[s]);return t};import{r as m,C as p}from"./index.3d95a92c.js";import{d as u,a as e,S as g,w as f,ai as _,aj as x,q as v,I as S,x as y}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               *//* empty css               *//* empty css               *//* empty css                */import{C}from"./index.ccfa57ee.js";/* empty css               */const j="_groupTitle_4zxi8_1",w="_groupImg_4zxi8_9",L="_cell_4zxi8_16",T="_title_4zxi8_24",z="_time_4zxi8_28",I="_imgCover_4zxi8_33",N="_musicTitle_4zxi8_37",b="_theory_4zxi8_40";var a={groupTitle:j,groupImg:w,cell:L,title:T,time:z,imgCover:I,musicTitle:N,theory:b};function k(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!y(t)}var B=u({name:"special",data(){return this.$route.query,{activeNames:[],list:[],dataShow:!0,loading:!1,finished:!1,params:{search:"",page:1,rows:20}}},mounted(){this.getList()},methods:{async getList(){try{let t=this.params;const i=await m.post("/api-cms/music/theory/app/page",{data:r({},t)});this.loading=!1;const s=i.data||{};if(this.list.length>0&&s.pageNo===1)return;this.list=this.list.concat(s.rows||[]),this.finished=s.pageNo>=s.totalPage,this.params.page=s.pageNo+1,this.dataShow=this.list.length>0;const n=this.list;this.list.length>0&&this.activeNames.push(n[0].id)}catch{this.dataShow=!1,this.finished=!0}},onSearch(t){this.params.search=t,this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.getList()},onDetail(t){t.linkUrl?window.location.href=t.linkUrl:this.$router.push({path:"theoryDetail",query:{id:t.id}})}},render(){let t;return e("div",{class:a.theory},[e(g,{offsetTop:0,position:"top",class:"mb12"},{default:()=>[e(C,{onSearch:this.onSearch},null)]}),this.dataShow?e(f,{class:a.videoList,loading:this.loading,"onUpdate:loading":i=>this.loading=i,finished:this.finished,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",immediateCheck:!1,onLoad:this.getList},k(t=this.list.map(i=>e(_,{modelValue:this.activeNames,"onUpdate:modelValue":s=>this.activeNames=s,border:!1},{default:()=>[e(x,{title:i.name,name:i.id,center:!0},{default:()=>[i.newsInformationList.map(s=>e(v,{title:s.title,class:a.cell,border:!1,onClick:()=>{this.onDetail(s)},titleClass:["van-ellipsis",a.title]},null))],title:()=>e("div",{class:[a.groupTitle]},[i.url&&e(S,{src:i.url,fit:"cover",class:a.groupImg},null),e("p",{class:["van-ellipsis",a.musicTitle]},[i.name])])})]})))?t:{default:()=>[t]}):e(p,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5185\u5BB9"},null)])}});export{B as default};
