index-legacy.4435691a.js 7.5 KB

1
  1. ;(function(){var __vite_style__=document.createElement('style');__vite_style__.innerHTML=":root{--van-skeleton-row-height: .42667rem;--van-skeleton-row-background-color: var(--van-active-color);--van-skeleton-row-margin-top: var(--van-padding-sm);--van-skeleton-title-width: 40%;--van-skeleton-avatar-size: .85333rem;--van-skeleton-avatar-background-color: var(--van-active-color);--van-skeleton-animation-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton__avatar{flex-shrink:0;width:var(--van-skeleton-avatar-size);height:var(--van-skeleton-avatar-size);margin-right:var(--van-padding-md);background:var(--van-skeleton-avatar-background-color)}.van-skeleton__avatar--round{border-radius:var(--van-border-radius-max)}.van-skeleton__content{width:100%}.van-skeleton__avatar+.van-skeleton__content{padding-top:var(--van-padding-xs)}.van-skeleton__row,.van-skeleton__title{height:var(--van-skeleton-row-height);background:var(--van-skeleton-row-background-color)}.van-skeleton__title{width:var(--van-skeleton-title-width);margin:0}.van-skeleton__row:not(:first-child){margin-top:var(--van-skeleton-row-margin-top)}.van-skeleton__title+.van-skeleton__row{margin-top:.53333rem}.van-skeleton--animate{-webkit-animation:van-skeleton-blink var(--van-skeleton-animation-duration) ease-in-out infinite;animation:van-skeleton-blink var(--van-skeleton-animation-duration) ease-in-out infinite}.van-skeleton--round .van-skeleton__row,.van-skeleton--round .van-skeleton__title{border-radius:var(--van-border-radius-max)}@-webkit-keyframes van-skeleton-blink{50%{opacity:.6}}@keyframes van-skeleton-blink{50%{opacity:.6}}._songbook_19s5v_1{--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem;--favorite-bg: rgba(67, 67, 67, .3);--favorite-color: #63ffe1;--favorite-text-color: white}._sticky_19s5v_11 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._title_19s5v_14{padding-top:.42667rem}._title_19s5v_14 .van-cell__value{font-size:.32rem}._albumContainer_19s5v_20{width:100%;overflow:hidden;overflow-x:auto;display:flex;padding:0 .42667rem;box-sizing:border-box;flex-wrap:nowrap}._albumContainer_19s5v_20 ._album_19s5v_20{margin-right:.53333rem;width:2.50667rem;flex-shrink:0}._albumContainer_19s5v_20 ._album_19s5v_20 ._main_19s5v_34{position:relative}._albumContainer_19s5v_20 ._album_19s5v_20 ._main_19s5v_34 ._favorite_19s5v_37{position:absolute;bottom:.21333rem;text-align:center;transform:translate(50%);background-color:var(--favorite-bg);color:var(--favorite-text-color);padding:.05333rem .18667rem;border-radius:.26667rem;font-size:.29333rem}._albumContainer_19s5v_20 ._album_19s5v_20 ._main_19s5v_34 ._favorite_19s5v_37>span{color:var(--favorite-color)}._albumContainer_19s5v_20 ._album_19s5v_20 ._img_19s5v_51{width:2.50667rem;height:2.50667rem;position:relative}._albumContainer_19s5v_20 ._album_19s5v_20 ._img_19s5v_51>img,._albumContainer_19s5v_20 ._album_19s5v_20 ._img_19s5v_51>div{position:absolute;border-radius:.26667rem;overflow:hidden}._albumContainer_19s5v_20 ._album_19s5v_20 ._img_19s5v_51:before{content:\"\";width:2.13333rem;height:2.13333rem;border-radius:.24rem;background-color:#fff;box-shadow:0 .08rem .16rem rgba(0,0,0,.08);position:absolute;right:-.16rem;top:.21333rem}._albumContainer_19s5v_20 ._album_19s5v_20 ._title_19s5v_14{width:2.50667rem;text-align:center}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.ef66db0e.js','./index-legacy.f25f109a2.js','./index-legacy.f25f109a5.js','./index-legacy.88381862.js','./index-legacy.f25f109a4.js','./index-legacy.0f68c9ec.js','./index-legacy.7a429984.js','./index-legacy.6e10cd37.js','./item-legacy.5a3419c6.js','./music-legacy.8fffa12d.js','./index-legacy.f25f109a3.js','./index-legacy.f25f109a9.js','./init-user-icon-legacy.6fbc494f.js','./favorite-legacy.403f54ea.js','./orderStatus-legacy.96239f99.js','./index-legacy.637f35562.js','./index-legacy.f25f109a10.js'],function(exports){'use strict';var defineComponent,useRouter,createVNode,Fragment,Image,createTextVNode,Skeleton,Sticky,Cell,Search,request,useAsyncState,classNames,Item,musicBuy;return{setters:[function(module){defineComponent=module.d;useRouter=module.$;createVNode=module.a;Fragment=module.F;Image=module.q;createTextVNode=module.b;Skeleton=module.a3;Sticky=module.S;Cell=module.t;},function(){},function(){},function(module){Search=module.S;},function(){},function(module){request=module.r;},function(module){useAsyncState=module.b;},function(module){classNames=module.c;},function(module){Item=module.I;},function(module){musicBuy=module.m;},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var index$1='';var songbook="_songbook_19s5v_1";var sticky="_sticky_19s5v_11";var title="_title_19s5v_14";var albumContainer="_albumContainer_19s5v_20";var album="_album_19s5v_20";var main="_main_19s5v_34";var favorite="_favorite_19s5v_37";var img="_img_19s5v_51";var styles={songbook:songbook,sticky:sticky,title:title,albumContainer:albumContainer,album:album,main:main,favorite:favorite,img:img};var Album=defineComponent({name:'Songbook',setup:function setup(){var _useAsyncState=useAsyncState(request.post('/api-student/music/album/list',{data:{}}),null),isLoading=_useAsyncState.isLoading,state=_useAsyncState.state;var router=useRouter();return function(){return createVNode(Fragment,null,[state.value&&state.value.data.rows.length?createVNode("div",{"class":styles.albumContainer},[state.value.data.rows.map(function(item){return createVNode("div",{"class":styles.album,"key":item.id,"onClick":function onClick(){return router.push('/music-album-detail/'+item.id);}},[createVNode("div",{"class":styles.main},[createVNode(Image,{"class":styles.img,"src":item.albumCoverUrl},null),createVNode("p",{"class":styles.favorite},[createVNode("span",null,[item.albumFavoriteCount]),createTextVNode("\u4EBA\u6536\u85CF")])]),createVNode("h4",{"class":classNames(styles.title,'van-ellipsis')},[item.albumName])]);})]):null,isLoading.value&&createVNode("div",{"style":{display:'flex'}},[Array.from({length:4}).map(function(){return createVNode(Skeleton,{"style":{width:'96px',flexDirection:'column'},"avatar":true,"avatar-shape":"square","avatar-size":"96px","title":true,"titleWidth":"100%"},null);})])]);};}});var List=defineComponent({name:'Songbook',setup:function setup(){var router=useRouter();var _useAsyncState2=useAsyncState(request.post('/api-student/music/sheet/list',{data:{}}),null),isLoading=_useAsyncState2.isLoading,state=_useAsyncState2.state;return function(){return state.value&&state.value.data.rows.length?createVNode("div",{"class":styles.listContainer},[state.value.data.rows.map(function(item){return createVNode(Item,{"data":item,"onClick":function onClick(item){musicBuy(item,function(path){router.push({path:path,query:{orderType:'MUSIC'}});});}},null);})]):null;};}});var index=exports('default',defineComponent({name:'Songbook',setup:function setup(){var router=useRouter();return function(){return createVNode("div",{"class":styles.songbook},[createVNode(Sticky,{"class":styles.sticky,"onClick":function onClick(){router.push('/music-search');}},{default:function _default(){return[createVNode(Search,{"disabled":true,"showAction":true},null)];}}),createVNode(Cell,{"class":styles.title,"title":"专辑","is-link":true,"to":"/music-album","value":"更多"},null),createVNode(Album,null,null),createVNode(Cell,{"class":styles.title,"title":"曲谱","is-link":true,"to":"/music-list","value":"更多"},null),createVNode(List,null,null)]);};}}));}};});})();