1 |
- var d=Object.defineProperty;var l=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var r=(t,e,s)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,n=(t,e)=>{for(var s in e||(e={}))c.call(e,s)&&r(t,s,e[s]);if(l)for(var s of l(e))m.call(e,s)&&r(t,s,e[s]);return t};import{r as p}from"./index.ed155bb1.js";import{d as f,a as i,S as g,v as u,ac as v,ad as S,C as x,t as y,q as _,w as C}from"./vendor.d970a97a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{S as j}from"./index.df9d4456.js";import{C as b}from"./index.82dbbc0d.js";/* empty css */const w="_title_8t4xg_1",L="_time_8t4xg_4",N="_imgCover_8t4xg_9",I="_theory_8t4xg_13";var o={title:w,time:L,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 e=await p.post("/api-cms/music/theory/app/page",{data:n({},t)});this.loading=!1;const s=e.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 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":e=>this.loading=e,finished:this.finished,finishedText:"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:this.getList},h(t=this.list.map(e=>{let s;return i(v,{modelValue:this.activeNames,"onUpdate:modelValue":a=>this.activeNames=a},{default:()=>[i(S,{title:e.name,name:e.id},h(s=e.newsInformationList.map(a=>i(x,{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)])})]})))?s:{default:()=>[s]})]})}))?t:{default:()=>[t]}):i(b,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5185\u5BB9"},null)])}});export{M as default};
|