1 |
- var d=Object.defineProperty;var l=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var r=(t,s,e)=>s in t?d(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,n=(t,s)=>{for(var e in s||(s={}))c.call(s,e)&&r(t,e,s[e]);if(l)for(var e of l(s))m.call(s,e)&&r(t,e,s[e]);return t};import{r as p}from"./index.84d59606.js";import{d as f,a as i,S as g,w as u,ae as v,af as x,C as S,t as y,q as _,x as C}from"./vendor.372dc65e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{S as j}from"./index.da09e935.js";import{C as w}from"./index.75b00e65.js";/* empty css */const L="_title_8t4xg_1",b="_time_8t4xg_4",N="_imgCover_8t4xg_9",I="_theory_8t4xg_13";var o={title:L,time:b,imgCover:N,theory:I};function h(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!C(t)}var M=f({name:"special",data(){return this.$route.query,{activeNames:[],list:[],dataShow:!0,loading:!1,finished:!1,params:{search:"",page:1,rows:20}}},methods:{async getList(){try{let t=this.params;const s=await p.post("/api-cms/music/theory/app/page",{data:n({},t)});this.loading=!1;const e=s.data||{};if(this.list.length>0&&e.pageNo===1)return;this.list=this.list.concat(e.rows||[]),this.finished=e.pageNo>=e.totalPage,this.params.page=e.pageNo+1,this.dataShow=this.list.length>0;const a=this.list;this.list.length>0&&this.activeNames.push(a[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 i("div",{class:o.theory},[i(g,{offsetTop:0,position:"top",class:"mb12"},{default:()=>[i(j,{onSearch:this.onSearch},null)]}),this.dataShow?i(u,{class:o.videoList,loading:this.loading,"onUpdate:loading":s=>this.loading=s,finished:this.finished,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:this.getList},h(t=this.list.map(s=>{let e;return i(v,{modelValue:this.activeNames,"onUpdate:modelValue":a=>this.activeNames=a},{default:()=>[i(x,{title:s.name,name:s.id},h(e=s.newsInformationList.map(a=>i(S,{class:"mb12",onClick:()=>{this.onDetail(a)}},{default:()=>[i(y,{title:a.title,titleClass:["van-ellipsis",o.title]},{label:()=>i("div",{class:o.label},[i("div",{class:o.time},[a.createTime]),i(_,{class:o.imgCover,src:a.coverImage,fit:"cover"},null)])})]})))?e:{default:()=>[e]})]})}))?t:{default:()=>[t]}):i(w,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5185\u5BB9"},null)])}});export{M as default};
|