index-legacy-2967ce1b-1701779291077.js 10 KB

1
  1. System.register(["./icon_back-legacy-a8ad0d25-1701779291077.js","./index-legacy-578ed96d-1701779291077.js","./index-legacy-1514d3fc-1701779291077.js","./index-legacy-74829b09-1701779291077.js","./index-legacy-98eb6936-1701779291077.js","./api-legacy-eddc5dee-1701779291077.js"],(function(e,t){"use strict";var a,i,r,n,o,_,p,s,d,l,c,h,g,y,m,w,v,u,b,f,C,k;return{setters:[e=>{a=e.i},e=>{i=e.d,r=e.e,n=e.n,o=e.f,_=e.w,p=e.j,s=e.k,d=e.u,l=e.A,c=e.t,h=e.ci,g=e.cj,y=e.p,m=e.q,w=e.aS,v=e.H},e=>{u=e.T},e=>{b=e.T},e=>{f=e.P},e=>{C=e.a,k=e.b}],execute:function(){var t=document.createElement("style");t.textContent="._container_11fve_1 ._iconBack_11fve_1{width:1.875vw;height:1.875vw}._container_11fve_1 .n-breadcrumb>ul{display:flex;align-items:center}._container_11fve_1 .n-breadcrumb>ul .n-breadcrumb-item{display:flex;align-items:center}._container_11fve_1 .n-breadcrumb>ul .n-breadcrumb-item__separator{display:none}._container_11fve_1 .n-breadcrumb>ul .n-breadcrumb-item__link{padding:.26041667vw .9375vw;background:#FFFFFF;border-radius:.83333333vw;color:#21225d;line-height:1.04166667vw}._container_11fve_1 .n-breadcrumb .n-breadcrumb-item:last-child .n-breadcrumb-item__link{color:#fff;background:var(--product-color)}._container_11fve_1 .n-tabs-tab-pad{width:4.16666667vw!important}._container_11fve_1 .n-tabs-nav{padding:0px 1.04166667vw 1.25vw}._container_11fve_1 .n-tabs-tab{color:#8b8d98;font-size:max(1.14583333rem,14Px);padding-top:0;padding-bottom:.3125vw;line-height:1.14583333vw}._container_11fve_1 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._container_11fve_1 .n-tabs-tab__label{z-index:10}._container_11fve_1 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10416667vw}._container_11fve_1 .n-tab-pane{padding:0 .625vw!important}._container_11fve_1 .n-pagination{margin-top:1.875vw!important}._container_11fve_1>.n-space{height:1.875vw;flex-shrink:0}._container_11fve_1 ._separator_11fve_63{width:.46875vw;height:.78125vw;margin:0 .83333333vw}._wrap_11fve_68{padding-top:.625vw;flex:1;transition:padding .3s}._listWrap_11fve_73{padding:1.66666667vw 1.04166667vw;background-color:#fff;border-radius:1.04166667vw;min-height:100%}._listWrap_11fve_73 .n-tabs-tab-pad{width:4.16666667vw!important}._listWrap_11fve_73 .n-tabs-nav{padding:0px 1.04166667vw 1.25vw}._listWrap_11fve_73 .n-tabs-tab{color:#8b8d98;font-size:max(1.14583333rem,14Px);padding-top:0;padding-bottom:.3125vw;line-height:1.14583333vw}._listWrap_11fve_73 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._listWrap_11fve_73 .n-tabs-tab__label{z-index:10}._listWrap_11fve_73 .n-tabs-bar{height:.52083333vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10416667vw}._listWrap_11fve_73 .n-tab-pane{padding:0 .625vw!important}._listWrap_11fve_73 .n-pagination{margin-top:1.875vw!important}._searchGroup_p9yh1_1{position:relative;padding:0}._searchGroup_p9yh1_1 ._btnType_p9yh1_5{gap:0px 1.25vw!important}._searchGroup_p9yh1_1 ._btnType_p9yh1_5 .n-button{height:1.92708333vw;padding:0 1.25vw;font-size:.9375rem;color:rgba(0,0,0,.6)}._searchGroup_p9yh1_1 ._btnType_p9yh1_5 .n-button.n-button--primary-type{font-weight:700;color:#fff}._searchGroup_p9yh1_1 ._inputSearch_p9yh1_18{width:18.75vw;height:2.1875vw;font-size:.83333333rem;--n-height: 2.1875vw !important}._searchGroup_p9yh1_1 ._inputSearch_p9yh1_18 img{width:.9375vw;height:.9375vw}._searchGroup_p9yh1_1 ._inputSearch_p9yh1_18 .n-input-wrapper{padding-left:.625vw;padding-right:.20833333vw;height:2.1875vw!important}._searchGroup_p9yh1_1 ._inputSearch_p9yh1_18 .n-button{height:1.77083333vw;font-size:.78125rem;font-weight:500;width:auto}._searchGroup_p9yh1_1 ._searchCatatory_p9yh1_39{display:flex;justify-content:space-between;padding-bottom:1.04166667vw}._searchGroup_p9yh1_1 ._searchCatatory_p9yh1_39 ._addTrain_p9yh1_44{height:1.92708333vw;border-radius:.41666667vw;font-size:.9375rem;background-color:#e8f4ff;color:#0378ec}._searchGroup_p9yh1_1 ._searchCatatory_p9yh1_39 ._addTrain_p9yh1_44 img{width:.83333333vw;height:.83333333vw;margin-right:.41666667vw}._list_p9yh1_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_p9yh1_56 ._itemWrap_p9yh1_66{width:calc(100% / 6);padding-bottom:calc(100% / 6 * 1.1355555);position:relative}._list_p9yh1_56 ._itemWrap_p9yh1_66 ._itemWrapBox_p9yh1_71{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 1.14583333vw}._list_p9yh1_56 ._itemCard_p9yh1_79{position:relative;cursor:pointer;transition:all .2s ease}._list_p9yh1_56 ._itemCard_p9yh1_79:hover{transform:scale(1.03);transition:all .2s ease}._list_p9yh1_56 ._itemCard_p9yh1_79:hover ._itemImgSection_p9yh1_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_p9yh1_56 ._itemCard_p9yh1_79 ._itemTag_p9yh1_95{position:absolute;right:0;top:0;display:inline-block;font-size:.625rem;font-weight:600;color:#fff;line-height:.88541667vw;text-shadow:.10416667vw .10416667vw .41666667vw rgba(0,0,0,.1);line-height:1.19791667vw;padding:0 .36458333vw;background:linear-gradient(135deg,#02BAFF 0%,#007AFE 100%);box-shadow:.10416667vw 2 .41666667vw rgba(0,0,0,.1);border-radius:0px .67708333vw}._list_p9yh1_56 ._itemCard_p9yh1_79 ._itemImgSection_p9yh1_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:.67708333vw;overflow:hidden;transition:all .2s ease}._list_p9yh1_56 ._itemCard_p9yh1_79 ._itemImgSection_p9yh1_88 ._img_p9yh1_120{width:100%;height:100%;height:15.88541667vw;display:flex}._list_p9yh1_56 ._itemCard_p9yh1_79 ._itemImgSection_p9yh1_88 ._img_p9yh1_120 img{width:100%;height:100%}._list_p9yh1_56 ._itemCard_p9yh1_79 ._itemTitle_p9yh1_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 x={container:"_container_11fve_1",iconBack:"_iconBack_11fve_1",separator:"_separator_11fve_63",wrap:"_wrap_11fve_68",listWrap:"_listWrap_11fve_73"},I={searchGroup:"_searchGroup_p9yh1_1",btnType:"_btnType_p9yh1_5",inputSearch:"_inputSearch_p9yh1_18",searchCatatory:"_searchCatatory_p9yh1_39",addTrain:"_addTrain_p9yh1_44",list:"_list_p9yh1_56",itemWrap:"_itemWrap_p9yh1_66",itemWrapBox:"_itemWrapBox_p9yh1_71",itemCard:"_itemCard_p9yh1_79",itemImgSection:"_itemImgSection_p9yh1_88",itemTag:"_itemTag_p9yh1_95",img:"_img_p9yh1_120",itemTitle:"_itemTitle_p9yh1_130"},S=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:()=>[o(p,{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:()=>[s("全部")]}),e.categoryChildList.map((e=>o(p,{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(u,{class:I.inputSearch,placeholder:"请输入音乐家关键词",round:!0,onSearch:e=>{a.keyword=e,i()}},null)])])}}),T=i({name:"musician-list",props:{categoryId:{type:String,default:""},categoryChildList:{type:Array,default:()=>[]}},setup(e){const t=d(),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(S,{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(l,{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(b,{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=d(),i=r({tabValue:"",categoryList:[]});return(async()=>{try{const{data:t}=await k({type:"MUSICIAN",page:1,rows:99});i.categoryList=t.rows||[],i.categoryList.length&&v((()=>{i.tabValue=e||"name-"+i.categoryList[0].id}))}catch{}})(),()=>{let e;return o("div",{class:x.container},[o(_,{align:"center",wrapItem:!1,size:16},{default:()=>[o("img",{style:{cursor:"pointer"},src:a,class:x.iconBack,onClick:()=>t.push({path:"/"})},null),o(h,{separator:""},{default:()=>[o(g,null,{default:()=>[s("音乐家")]})]})]}),o("div",{class:x.wrap},[o("div",{class:x.listWrap},[o(y,{defaultValue:"myResources",paneClass:x.paneTitle,justifyContent:"center",paneWrapperClass:x.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(T,{categoryId:e.id,categoryChildList:e.childrenList},null)]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!w(r)?e:{default:()=>[e]}))])])]);var r}}}))}}}));