;(function(){function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._songbook_wa4hu_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_wa4hu_11 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._title_wa4hu_14{padding-top:.42667rem}._title_wa4hu_14 .van-cell__value{font-size:.32rem}._albumContainer_wa4hu_20::-webkit-scrollbar{display:none}._albumContainer_wa4hu_20{width:100%;overflow:hidden;overflow-x:auto;display:flex;padding:0 .42667rem;box-sizing:border-box;flex-wrap:nowrap}._albumContainer_wa4hu_20 ._album_wa4hu_20{margin-right:.53333rem;width:2.50667rem;flex-shrink:0}._albumContainer_wa4hu_20 ._album_wa4hu_20 ._main_wa4hu_38{position:relative}._albumContainer_wa4hu_20 ._album_wa4hu_20 ._main_wa4hu_38 ._favorite_wa4hu_41{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_wa4hu_20 ._album_wa4hu_20 ._main_wa4hu_38 ._favorite_wa4hu_41>span{color:var(--favorite-color)}._albumContainer_wa4hu_20 ._album_wa4hu_20 ._img_wa4hu_55{width:2.50667rem;height:2.50667rem;position:relative}._albumContainer_wa4hu_20 ._album_wa4hu_20 ._img_wa4hu_55>img,._albumContainer_wa4hu_20 ._album_wa4hu_20 ._img_wa4hu_55>div{position:absolute;border-radius:.26667rem;overflow:hidden}._albumContainer_wa4hu_20 ._album_wa4hu_20 ._img_wa4hu_55: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_wa4hu_20 ._album_wa4hu_20 ._title_wa4hu_14{width:2.50667rem;text-align:center}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.031e1374.js','./index-legacy.f25f109a4.js','./index-legacy.f25f109a2.js','./index-legacy.1cd7b6bb.js','./index-legacy.104980d7.js','./index-legacy.6e10cd37.js','./item-legacy.a4c36c80.js','./music-legacy.9bfa98dd.js','./index-legacy.f25f109a10.js','./init-user-icon-legacy.6fbc494f.js','./favorite-legacy.403f54ea.js','./orderStatus-legacy.071c8548.js','./index-legacy.c75fe8a2.js'],function(exports){'use strict';var defineComponent,useRoute,useRouter,createVNode,Fragment,Cell,Image,createTextVNode,state,request,ColResult,useAsyncState,classNames,Item,musicBuy,getRandomKey;return{setters:[function(module){defineComponent=module.d;useRoute=module._;useRouter=module.a2;createVNode=module.a;Fragment=module.F;Cell=module.q;Image=module.I;createTextVNode=module.j;},function(){},function(){},function(module){state=module.s;request=module.r;ColResult=module.C;},function(module){useAsyncState=module.b;},function(module){classNames=module.c;},function(module){Item=module.I;},function(module){musicBuy=module.m;getRandomKey=module.g;},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var songbook="_songbook_wa4hu_1";var sticky="_sticky_wa4hu_11";var title="_title_wa4hu_14";var albumContainer="_albumContainer_wa4hu_20";var album="_album_wa4hu_20";var main="_main_wa4hu_38";var favorite="_favorite_wa4hu_41";var img="_img_wa4hu_55";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(){useRoute();var params={};if(state.version){params.version=state.version||'';// 处理ios审核版本
params.platform='ios-student';}var _useAsyncState=useAsyncState(request.post('/api-student/music/album/list',{data:_objectSpread({},params)}),null),isLoading=_useAsyncState.isLoading,state$1=_useAsyncState.state;var router=useRouter();return function(){return createVNode(Fragment,null,[state$1.value&&state$1.value.data.rows.length?createVNode(Fragment,null,[createVNode(Cell,{"class":styles.title,"title":"专辑","is-link":true,"to":"/music-album","value":"更多"},null),createVNode("div",{"class":styles.albumContainer},[state$1.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]);};}});var List=defineComponent({name:'Songbook',setup:function setup(){var router=useRouter();useRoute();var params={};if(state.version){params.version=state.version||'';// 处理ios审核版本
params.platform='ios-student';}var _useAsyncState2=useAsyncState(request.post('/api-student/music/sheet/list',{data:_objectSpread({},params)}),null),isLoading=_useAsyncState2.isLoading,state$1=_useAsyncState2.state;return function(){return state$1.value&&state$1.value.data.rows.length?createVNode(Fragment,null,[createVNode(Cell,{"class":styles.title,"title":"曲谱","is-link":true,"to":"/music-list","value":"更多"},null),createVNode("div",{"class":styles.listContainer},[state$1.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);})])]):!isLoading.value&&createVNode(ColResult,{"tips":"暂无曲谱","classImgSize":"SMALL","btnStatus":false},null);};}});var index=exports('default',defineComponent({name:'Songbook',setup:function setup(){localStorage.setItem('behaviorId',getRandomKey());return function(){return createVNode("div",{"class":styles.songbook},[createVNode(Album,null,null),createVNode(List,null,null)]);};}}));}};});})();
