index-legacy-025fcb19-1725962701482.js 11 KB

1
  1. System.register(["./icon_back-legacy-a8ad0d25-1725962701482.js","./index-legacy-f8e66744-1725962701482.js","./index-legacy-ded67b12-1725962701482.js","./index-legacy-f75a67e8-1725962701482.js","./index-legacy-a9c0d11a-1725962701482.js","./api-legacy-91b4da66-1725962701482.js"],(function(e,t){"use strict";var a,i,r,n,o,_,s,l,g,d,c,p,w,h,m,u,b,y,v,f,C,x;return{setters:[e=>{a=e.i},e=>{i=e.d,r=e.e,n=e.q,o=e.f,_=e.x,s=e.j,l=e.k,g=e.u,d=e.E,c=e.w,p=e.aP,w=e.aQ,h=e.t,m=e.v,u=e.D,b=e.S},e=>{y=e.T},e=>{v=e.T},e=>{f=e.P},e=>{C=e.a,x=e.b}],execute:function(){var t=document.createElement("style");t.textContent="._container_19grw_1 ._iconBack_19grw_1{width:1.875vw;height:1.875vw}._container_19grw_1 .n-breadcrumb>ul{display:flex;align-items:center}._container_19grw_1 .n-breadcrumb>ul .n-breadcrumb-item{display:flex;align-items:center}._container_19grw_1 .n-breadcrumb>ul .n-breadcrumb-item__separator{display:none}._container_19grw_1 .n-breadcrumb>ul .n-breadcrumb-item__link{padding:.26041667vw .9375vw;background:#FFFFFF;border-radius:.83333333vw;color:#21225d;line-height:1.04166667vw}._container_19grw_1 .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link{color:#fff;background:var(--product-color)}._container_19grw_1 .n-tabs-tab-pad{width:4.16666667vw!important}._container_19grw_1 .n-tabs-nav{padding:0px 1.04166667vw 1.25vw}._container_19grw_1 .n-tabs-tab{color:#8b8d98;font-size:max(1.14583333rem,14Px);padding-top:0;padding-bottom:.3125vw;line-height:1.14583333vw}._container_19grw_1 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._container_19grw_1 .n-tabs-tab__label{z-index:10}._container_19grw_1 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10416667vw}._container_19grw_1 .n-tab-pane{padding:0 .625vw!important}._container_19grw_1 .n-pagination{margin-top:1.875vw!important}._container_19grw_1>.n-space{height:1.875vw;flex-shrink:0}._container_19grw_1 ._separator_19grw_63{width:.46875vw;height:.78125vw;margin:0 .83333333vw}._wrap_19grw_68{padding-top:.625vw;flex:1;transition:padding .3s}._listWrap_19grw_73{padding:1.66666667vw 1.04166667vw;background-color:#fff;border-radius:1.04166667vw;min-height:calc(100vh - 10vw)}._listWrap_19grw_73._listWrapEmpty_19grw_79{display:flex;flex-direction:column;justify-content:center}._listWrap_19grw_73 .n-tabs-tab-pad{width:4.16666667vw!important}._listWrap_19grw_73 .n-tabs-nav{padding:0px 1.04166667vw 1.25vw}._listWrap_19grw_73 .n-tabs-tab{color:#8b8d98;font-size:max(1.14583333rem,14Px);padding-top:0;padding-bottom:.3125vw;line-height:1.14583333vw}._listWrap_19grw_73 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._listWrap_19grw_73 .n-tabs-tab__label{z-index:10}._listWrap_19grw_73 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10416667vw}._listWrap_19grw_73 .n-tab-pane{padding:0 .625vw!important}._listWrap_19grw_73 .n-pagination{margin-top:1.875vw!important}._searchGroup_1291e_1{position:relative;padding:0}._searchGroup_1291e_1 ._btnType_1291e_5{gap:0px 1.25vw!important}._searchGroup_1291e_1 ._btnType_1291e_5 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:.9375rem;color:rgba(0,0,0,.6)}._searchGroup_1291e_1 ._btnType_1291e_5 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_1291e_1 ._inputSearch_1291e_18{width:18.75vw;height:2.1875vw;font-size:.83333333rem;--n-height: 2.1875vw !important}._searchGroup_1291e_1 ._inputSearch_1291e_18 img{width:.9375vw;height:.9375vw}._searchGroup_1291e_1 ._inputSearch_1291e_18 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_1291e_1 ._inputSearch_1291e_18 .n-button{height:1.77083333vw;font-size:.78125rem;font-weight:500;width:auto}._searchGroup_1291e_1 ._searchCatatory_1291e_39{display:flex;justify-content:space-between;padding-bottom:1.04166667vw}._searchGroup_1291e_1 ._searchCatatory_1291e_39 ._addTrain_1291e_44{height:1.92708333vw;border-radius:.41666667vw;font-size:.9375rem;background-color:#e8f4ff;color:#0378ec}._searchGroup_1291e_1 ._searchCatatory_1291e_39 ._addTrain_1291e_44 img{width:.83333333vw;height:.83333333vw;margin-right:.41666667vw}._list_1291e_56{margin-top:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:2.34375vw 0;min-height:12.08333333vw;margin-left:-1.14583333vw;margin-right:-1.14583333vw}._list_1291e_56 ._itemWrap_1291e_66{width:calc(100% / 6);padding-bottom:calc(100% / 6 * 1.1355555);position:relative}._list_1291e_56 ._itemWrap_1291e_66 ._itemWrapBox_1291e_71{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 1.14583333vw}._list_1291e_56 ._itemCard_1291e_79{position:relative;cursor:pointer;transition:all .2s ease}._list_1291e_56 ._itemCard_1291e_79:hover{transform:scale(1.03);transition:all .2s ease}._list_1291e_56 ._itemCard_1291e_79:hover ._itemImgSection_1291e_88{background:linear-gradient(360deg,#DBF1FF 0%,#E7F9FF 100%);box-shadow:.10416667vw 2 .41666667vw rgba(0,0,0,.1);border-radius:.67708333vw;box-sizing:border-box;transition:all .2s ease}._list_1291e_56 ._itemCard_1291e_79 ._itemTag_1291e_95{position:absolute;right:0;top:0;display:inline-block;font-size:12Px;font-weight:600;color:#fff;line-height:17Px;text-shadow:2Px 2Px 8Px rgba(0,0,0,.1);line-height:23Px;padding:0 7Px;background:linear-gradient(135deg,#02BAFF 0%,#007AFE 100%);box-shadow:2Px 2 8Px rgba(0,0,0,.1);border-radius:0px 13Px}._list_1291e_56 ._itemCard_1291e_79 ._itemImgSection_1291e_88{width:100%;height:15.88541667vw;background:linear-gradient(360deg,#DBF1FF 0%,#E7F9FF 100%);box-shadow:.10416667vw .10416667vw .41666667vw rgba(0,0,0,.1);border-radius:13Px;overflow:hidden;transition:all .2s ease}._list_1291e_56 ._itemCard_1291e_79 ._itemImgSection_1291e_88 ._img_1291e_120{width:100%;height:100%;height:15.88541667vw;display:flex}._list_1291e_56 ._itemCard_1291e_79 ._itemImgSection_1291e_88 ._img_1291e_120 img{width:100%;height:100%}._list_1291e_56 ._itemCard_1291e_79 ._itemTitle_1291e_130{padding-top:.52083333vw;font-size:.9375rem;font-weight:600;color:#131415;line-height:1.30208333vw;text-align:center}\n",document.head.appendChild(t);const k={container:"_container_19grw_1",iconBack:"_iconBack_19grw_1",separator:"_separator_19grw_63",wrap:"_wrap_19grw_68",listWrap:"_listWrap_19grw_73",listWrapEmpty:"_listWrapEmpty_19grw_79"},I={searchGroup:"_searchGroup_1291e_1",btnType:"_btnType_1291e_5",inputSearch:"_inputSearch_1291e_18",searchCatatory:"_searchCatatory_1291e_39",addTrain:"_addTrain_1291e_44",list:"_list_1291e_56",itemWrap:"_itemWrap_1291e_66",itemWrapBox:"_itemWrapBox_1291e_71",itemCard:"_itemCard_1291e_79",itemImgSection:"_itemImgSection_1291e_88",itemTag:"_itemTag_1291e_95",img:"_img_1291e_120",itemTitle:"_itemTitle_1291e_130"},W=i({name:"search-group",props:{categoryChildList:{type:Array,default:()=>[]},wikiCategoryId:{type:String,default:""}},emits:["search","add"],expose:["init"],setup(e,{emit:t}){const a=r({keyword:"",wikiCategoryId:e.wikiCategoryId||""}),i=()=>{t("search",a)};return n((async()=>{})),()=>o("div",{class:I.searchGroup},[o("div",{class:[I.searchCatatory]},[o(_,{size:"small",class:I.btnType},{default:()=>[e.categoryChildList.length>0?o(s,{type:a.wikiCategoryId===e.wikiCategoryId?"primary":"default",secondary:a.wikiCategoryId!==e.wikiCategoryId,round:!0,size:"small",focusable:!1,onClick:()=>{a.wikiCategoryId=e.wikiCategoryId,i()}},{default:()=>[l("全部")]}):o("span",null,null),e.categoryChildList.map((e=>o(s,{type:a.wikiCategoryId===e.id?"primary":"default",secondary:a.wikiCategoryId!==e.id,round:!0,size:"small",focusable:!1,onClick:()=>{a.wikiCategoryId=e.id,i()}},{default:()=>[e.name]})))]}),o(y,{class:I.inputSearch,placeholder:"请输入音乐家名称",round:!0,onSearch:e=>{a.keyword=e,i()}},null)])])}}),S=i({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]}},setup(e){const t=g(),a=r({searchWord:"",loading:!1,pageTotal:0,pagination:{page:1,rows:18},searchGroup:{type:"MUSICIAN",keyword:"",wikiCategoryId:e.categoryId},tableList:[],teachingStatus:!1,show:!1,item:{}}),i=async()=>{a.loading=!0;try{const{data:e}=await C({...a.pagination,...a.searchGroup}),t=e.rows||[];t.forEach((e=>{e.knowledgeWikiCategories&&e.knowledgeWikiCategories.length&&(e.categories=e.knowledgeWikiCategories[0].knowledgeWikiCategoryTypeName)})),a.tableList=t||[],a.pageTotal=Number(e.total)}catch{}a.loading=!1};return n((()=>{i()})),()=>o("div",{class:I.instrumentList},[o(W,{categoryChildList:e.categoryChildList||[],wikiCategoryId:e.categoryId,onSearch:e=>(async e=>{a.pagination.page=1,a.searchGroup=Object.assign(a.searchGroup,e),i()})(e)},null),o(d,{show:a.loading,"onUpdate:show":e=>a.loading=e,style:{"min-height":"50vh"}},{default:()=>[o("div",{class:I.list},[a.tableList.map((e=>o("div",{class:I.itemWrap,onClick:()=>{t.push({path:"/content-instruments-detail",query:{type:"MUSICIAN",id:e.id,name:e.name}})}},[o("div",{class:I.itemWrapBox},[o("div",{class:I.itemCard},[e.categories?o("span",{class:I.itemTag},[e.categories]):"",o("div",{class:I.itemImgSection},[o(c,{src:e.avatar,class:I.img,objectFit:"cover",previewDisabled:!0},null)]),o("div",{class:I.itemTitle},[e.name])])])]))),!a.loading&&a.tableList.length<=0&&o(v,{style:{minHeight:"50vh"},description:"暂无音乐家"},null)])]}),o(f,{page:a.pagination.page,"onUpdate:page":e=>a.pagination.page=e,pageSize:a.pagination.rows,"onUpdate:pageSize":e=>a.pagination.rows=e,pageTotal:a.pageTotal,"onUpdate:pageTotal":e=>a.pageTotal=e,pageSizes:[18,24,30,36],onList:i},null)])}});e("default",i({name:"content-musician",setup(){const e=sessionStorage.getItem("content-musician-tab"),t=g(),i=r({tabValue:"",categoryList:[],loading:!1});return(async()=>{i.loading=!0;try{const{data:t}=await x({type:"MUSICIAN",page:1,rows:99});i.categoryList=t.rows||[],i.categoryList.length&&b((()=>{i.tabValue=e||"name-"+i.categoryList[0].id}))}catch{}i.loading=!1})(),()=>{let e;return o("div",{class:k.container},[o(_,{align:"center",wrapItem:!1,size:16},{default:()=>[o("img",{style:{cursor:"pointer"},src:a,class:k.iconBack,onClick:()=>t.push({path:"/"})},null),o(p,{separator:""},{default:()=>[o(w,null,{default:()=>[l("音乐家")]})]})]}),o("div",{class:k.wrap},[o("div",{class:[k.listWrap,!i.loading&&i.categoryList.length<=0&&k.listWrapEmpty]},[!i.loading&&i.categoryList.length<=0&&o(v,{description:"暂无音乐家"},null),o(h,{defaultValue:"myResources",paneClass:k.paneTitle,justifyContent:"center",paneWrapperClass:k.paneWrapperContainer,"onUpdate:value":[e=>{sessionStorage.setItem("content-musician-tab",e)},e=>i.tabValue=e],value:i.tabValue},(r=e=i.categoryList.map((e=>o(m,{name:`name-${e.id}`,tab:e.name},{default:()=>[o(S,{categoryId:e.id,categoryChildList:e.childrenList},null)]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!u(r)?e:{default:()=>[e]}))])])]);var r}}}))}}}));