1 |
- var h=Object.defineProperty;var l=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var o=(t,e,i)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,r=(t,e)=>{for(var i in e||(e={}))d.call(e,i)&&o(t,i,e[i]);if(l)for(var i of l(e))c.call(e,i)&&o(t,i,e[i]);return t};import{r as m,C as p}from"./index.88ea63df.js";import{d as u,a as s,S as g,w as f,ad as _,ae as x,q as v,I as S,x as y}from"./vendor.75c233d7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{C}from"./index.a19b3ee8.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 e=await m.post("/api-cms/music/theory/app/page",{data:r({},t)});this.loading=!1;const i=e.data||{};if(this.list.length>0&&i.pageNo===1)return;this.list=this.list.concat(i.rows||[]),this.finished=i.pageNo>=i.totalPage,this.params.page=i.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 s("div",{class:a.theory},[s(g,{offsetTop:0,position:"top",class:"mb12"},{default:()=>[s(C,{onSearch:this.onSearch},null)]}),this.dataShow?s(f,{class:a.videoList,loading:this.loading,"onUpdate:loading":e=>this.loading=e,finished:this.finished,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",immediateCheck:!1,onLoad:this.getList},k(t=this.list.map(e=>s(_,{modelValue:this.activeNames,"onUpdate:modelValue":i=>this.activeNames=i,border:!1},{default:()=>[s(x,{title:e.name,name:e.id,center:!0},{default:()=>[e.newsInformationList.map(i=>s(v,{title:i.title,class:a.cell,border:!1,onClick:()=>{this.onDetail(i)},titleClass:["van-ellipsis",a.title]},null))],title:()=>s("div",{class:[a.groupTitle]},[e.url&&s(S,{src:e.url,fit:"cover",class:a.groupImg},null),s("p",{class:["van-ellipsis",a.musicTitle]},[e.name])])})]})))?t:{default:()=>[t]}):s(p,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5185\u5BB9"},null)])}});export{B as default};
|