baseIndex-legacy-3c29072f.js 15 KB

1
  1. !function(){const e=["musicTagId"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(_){return void n(_)}c.done?t(l):Promise.resolve(l).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function c(e){i(a,r,o,c,l,"next",e)}function l(e){i(a,r,o,c,l,"throw",e)}c(void 0)}))}}System.register(["./index-legacy-e6be1dcb.js","./icon_back-legacy-01ae0639.js","./index-legacy-222349aa.js","./api-legacy-d0bf8e7d.js","./Image-legacy-2fcf0598.js","./index-legacy-92ba0770.js","./index-legacy-72ad1f03.js"],(function(i,a){"use strict";var c,l,_,d,f,s,g,A,m,p,u,w,h,b,v,y,k;return{setters:[e=>{c=e.d,l=e.q,_=e.r,d=e.x,f=e.y,s=e.U,g=e.a,A=e.h,m=e.a2,p=e.S,u=e.K,w=e.X},e=>{h=e.i},e=>{b=e.M},e=>{v=e.a,y=e.b},e=>{k=e.N},null,null],execute:function(){var C=document.createElement("style");C.textContent="._container_1fnt5_1{position:relative;height:100vh;overflow:hidden;background:url("+new URL("icon_bg-f94bd665.png",a.meta.url).href+') no-repeat center center / cover;display:flex;flex-direction:column;padding:1.62667rem .48rem .48rem .98667rem}._back_1fnt5_10{position:fixed;left:.4rem;top:.45333rem;width:.82667rem;height:.82667rem}._back_1fnt5_10>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._back_1fnt5_10:active{opacity:.8}._centerSearch_1fnt5_25{position:absolute;top:.4rem;right:.48rem;width:8rem}._centerSearch_1fnt5_25 .van-search{width:100%;z-index:1;padding:0}._centerSearch_1fnt5_25 .van-field__control::-webkit-input-placeholder{font-size:.32rem}._section_1fnt5_39{display:flex;height:calc(100vh - 2.10667rem)}._section_1fnt5_39 ._directorySection_1fnt5_43{width:2.96rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAAyCAYAAABidVYtAAAAAXNSR0IArs4c6QAABItJREFUeF7tnU1sDVEUx//n9VOL9mlpS/uekFQTDRGVWCCpXV8lIpFYSRCJvW8rtbKqhKWNWLBha2UnSCSssCCRSCyLEAkR0pGjKVVt78ybrzMz/7tsz9x3z++cX+e+eTOvghyMC0+8yV29OJmDVJhC9gh8h+ALPHwB8EGAV9PAa/HwUlrwoNYnU3GmJHFOnsTcJx95FwWY2NufxKvxNUggEAEPwAsI7nsebu+ryrNAR/sIzrTAs/JqnhTYR7UZkioBEbwEcOPHV1zfPyR6xg49MivwXHkpcOg+4ATJEvgI4FrbSlwdLcunMC+dSYHny0uBw7QAj02NgIepUglnxwZwEyK63Q48MifwQvJS4MB15wGGCIjgIYAjtYq8CbqsTAm8mLwUOGjZGW+QwGdpwPFav9wNsrbMCLyUvBQ4SMkZa5WACHQbfWVsAGfE55Y6EwK75KXAVluS66qHgAC33k3h6IkR+eE63rzAfuSlwK4y8/cZJHCvp4IDI7K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no-repeat top center;background-size:contain;border-radius:.48rem;margin-right:.4rem}._section_1fnt5_39 ._directorySection_1fnt5_43 ._directionc_1fnt5_50{overflow-y:auto;overflow-x:hidden;margin-top:.61333rem;padding:.32rem .18667rem;background:#b5e1ff;border-radius:0 0 .48rem .48rem;height:calc(100% - .64rem)}._section_1fnt5_39 ._directorySection_1fnt5_43 ._directionc_1fnt5_50::-webkit-scrollbar{width:0;display:none}._section_1fnt5_39 ._directorySection_1fnt5_43 ._dirItem_1fnt5_63{font-size:.34667rem;font-weight:500;color:#131415;padding:0 .18667rem;height:.88rem;line-height:.88rem;text-align:center;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;margin-bottom:.13333rem}._section_1fnt5_39 ._directorySection_1fnt5_43 ._dirItem_1fnt5_63._active_1fnt5_77{background-color:#fff;background:#fef8ef;border-radius:.16rem;color:#0ca2ea}._content_1fnt5_83{overflow-y:auto;overflow-x:hidden;flex:1;padding:0;background:rgba(255,255,255,.8);border-radius:.48rem;border:.05333rem solid rgba(255,255,255,.9)}._content_1fnt5_83::-webkit-scrollbar{width:0;display:none}._content_1fnt5_83 ._wrap_1fnt5_96{position:relative;display:flex;flex-wrap:wrap;padding-top:.48rem;transition:all .3s ease}._content_1fnt5_83 ._wrap_1fnt5_96._emtpyWrap_1fnt5_103{width:100%;height:100%;padding-top:0}._content_1fnt5_83 ._wrap_1fnt5_96 .van-empty__description{color:#777}._content_1fnt5_83 .van-empty{padding-bottom:0!important}._content_1fnt5_83 .van-empty__description{font-size:.37333rem;color:#fff}._content_1fnt5_83 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapfirstI_1fnt5_122{width:25%;height:125.78125%}._wrapItem_1fnt5_126{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 .37333rem;flex-shrink:0;z-index:1;margin-bottom:.48rem}._wrapItem_1fnt5_126 ._item_1fnt5_136{position:relative;margin-bottom:.4rem;width:100%;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1fnt5_126 ._item_1fnt5_136 img{width:100%;aspect-ratio:53 / 75}._wrapItem_1fnt5_126 ._item_1fnt5_136:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1fnt5_126 ._item_1fnt5_136:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1fnt5_126 ._name_1fnt5_167{font-size:.34667rem;font-weight:400;color:#131415;line-height:.42667rem;text-align:left}._wrapItem_1fnt5_126 ._favoriteBtn_1fnt5_174{position:absolute;top:3.01333rem;right:.53333rem;z-index:3}._containerImg_1fnt5_180{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1fnt5_180:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1fnt5_180:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1fnt5_206{position:relative;z-index:3;display:block;width:100%;line-height:0;background-color:#edeff2;background-image:url('+new URL("icon_default-c2fa566e.svg",a.meta.url).href+');background-repeat:no-repeat;background-position:center center}._cover_1fnt5_206:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-repeat:no-repeat;background-image:linear-gradient(to right,rgba(0,0,0,.2) 0,rgba(255,255,255,.08) 0%,transparent .5%),linear-gradient(to right,rgba(0,0,0,.1) .3%,rgba(255,255,255,.09) 1.1%,transparent 1.3%);background-size:50% 100%,50% 100%;background-position:0% top,9% top}._cover_1fnt5_206 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1fnt5_206._loaded_1fnt5_236 img{opacity:1}._containerTablet_1fnt5_239{padding:2.16rem .48rem .48rem .98667rem}._containerTablet_1fnt5_239 ._back_1fnt5_10{top:.66667rem}._containerTablet_1fnt5_239 ._centerSearch_1fnt5_25{width:92%;top:.66667rem}._containerTablet_1fnt5_239 ._directorySection_1fnt5_43{width:4.82667rem}._containerTablet_1fnt5_239 ._directorySection_1fnt5_43 ._directionc_1fnt5_50{margin-top:.96rem;height:calc(100% - .96rem)}._containerTablet_1fnt5_239 ._directorySection_1fnt5_43 ._dirItem_1fnt5_63{height:1.22667rem;line-height:1.22667rem;font-size:.45333rem}._containerTablet_1fnt5_239 ._wrap_1fnt5_96{padding:.48rem .26667rem 0}._containerTablet_1fnt5_239 ._wrapfirstI_1fnt5_122 ._wrapItem_1fnt5_126{padding:0 .8rem}\n',document.head.appendChild(C);const S={container:"_container_1fnt5_1",back:"_back_1fnt5_10",centerSearch:"_centerSearch_1fnt5_25",section:"_section_1fnt5_39",directorySection:"_directorySection_1fnt5_43",directionc:"_directionc_1fnt5_50",dirItem:"_dirItem_1fnt5_63",active:"_active_1fnt5_77",content:"_content_1fnt5_83",wrap:"_wrap_1fnt5_96",emtpyWrap:"_emtpyWrap_1fnt5_103",wrapfirstI:"_wrapfirstI_1fnt5_122",wrapItem:"_wrapItem_1fnt5_126",item:"_item_1fnt5_136",name:"_name_1fnt5_167",favoriteBtn:"_favoriteBtn_1fnt5_174",containerImg:"_containerImg_1fnt5_180",cover:"_cover_1fnt5_206",loaded:"_loaded_1fnt5_236",containerTablet:"_containerTablet_1fnt5_239"};i("default",c({name:"baseIndex-list",setup(){l(),_(!1);const i=_([]),a=()=>{s({api:"goBack"})},c=d({musicTagId:null,keyword:null,page:1,rows:999}),C=_(!1),I=d({list:[],loading:!1,favoriteList:[],details:[],bookData:{},showBook:!1,book:{}}),B=_(),E=_([]),x=function(){var e=o((function*(){try{const{data:e}=yield v();i.value=e||[],i.value.length>0&&(c.musicTagId=i.value[0].id)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),L=function(){var i=o((function*(){var i,o;I.loading=!0;const{musicTagId:a}=c,l=r(c,e),_=yield y(function(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({musicTagIds:[a],subjectId:(null===(i=u.user.data)||void 0===i?void 0:i.subjectId)||""},l));200===(null==_?void 0:_.code)&&Array.isArray(null==_||null===(o=_.data)||void 0===o?void 0:o.rows)&&(I.list=_.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),I.loading=!1,C.value=!0}));return function(){return i.apply(this,arguments)}}();f(o((function*(){s({api:"setStatusBarVisibility",content:{isVisibility:0}}),I.loading=!0,yield x(),yield L(),I.loading=!1})));return()=>g("div",{class:[S.container,p().isTablet?S.containerTablet:""]},[g("div",{class:S.back,onClick:a},[g("img",{src:h},null)]),g("div",{class:[S.centerSearch]},[g("div",{id:"coai-0"},[g(b,{class:["searchNotice"],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",onSearch:e=>{c.keyword=e,L()}},null)])]),g("div",{class:S.section},[g("div",{class:S.directorySection},[g("div",{class:S.directionc},[i.value.map((e=>g("p",{class:[S.dirItem,c.musicTagId==e.id?S.active:""],onClick:()=>{c.musicTagId=e.id,L()}},[e.name])))])]),g("div",{class:S.content},[g("div",{class:[S.wrap,I.list.length<=0&&!I.loading?S.emtpyWrap:""],ref:B},[I.list.map(((e,t)=>g("div",{class:[S.wrapfirstI]},[g("div",{ref:e=>E.value[t]=e,class:[S.wrapItem,I.bookData.id===e.id&&I.showBook?S.wrapItemHide:""],key:e.key,onClick:()=>(e=>{const t=w.stringify({musicTagId:c.musicTagId,id:e.id,name:e.name}),n=location.origin+location.pathname+"#/co-ai-detail?"+t;console.log("🚀 ~ url:",n),s({api:"openWebView",content:{url:n,orientation:0,isHideTitle:!1,c_orientation:0}})})(e)},[g("div",{class:S.item},[g(k,A({"data-id":e.id},{id:0==t?"courseware-0":""},{class:[S.cover,e.load?S.loaded:""],objectFit:"cover",src:e.coverImg,fallbackSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAFwCAMAAABpZfXvAAAAV1BMVEXy8vL////Pz8/R0dHk5OS3t7fMzMzT09PKysre3t7h4eHAwMDDw8O9vb26urq2trbIyMjGxsbb29vZ2dnX19fV1dXp6enu7u7w8PDr6+v39/f7+/vm5uai4HaqAAAHe0lEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABm50zW5ATBKIpgIZMGnLV8/+cMg6BGLZNdQ+p81bVw1yf3vyDa+fLly5f/iLFnTYcQhBjDoqH50g8j+J8YWAMxxgQbAW1NLYwxYwL8F4wMEWINEB2BWkMdzJL/Bx76DhMHRu1BgbHgPSQ9GD0iOwUaayF48OQJaxgK4oFt4x2ELGxJYHmyGijx4KJdJTQmCOckGJYEu2GAREpifiRsWy/BQT07CSmGoSfSQLQH2LU7C9dRcCxpWcilh6CuXbHzcJkElq+kNBJUBjDUdNaBpd4vEIz6JCRoYQJgXBoiAzfVqB0kbMHRyA10SAKlrJ+mYZj6xTlg6VrIpdpZCBLyYc423vPYszzhLNRq09A5CXR4Z4FNxJQH0lojNNhYsCZUYaJAx+yG9+gl9CAtqFQaY8GMQ9v0JgWPGiaQEswpMCCzSILsM+8hvVpgKgC1g3rOHpn7xAZiksqDO+3AjcJjGNKKAlYe2XVtM2d/B0jpLqJQgUJL8A6emdPpxkUFcNd1U7bn2QJIAnIIwr4QngGJtAJVFqF/oJYAsn9iyBeQAFIIY8B8FV1RZ1cA2rX5ZUTeSwpRoMaB+8CiuG6EHhm6+bIWUtgrEOFRqCiKd3ZmRg6aXdHHPw99UCCIdsCyCxa08j7dUs5g6OOfh0IEoJbQZxdQtAL2v//QL6ncRkkRMNMwZhfkaGU+bpkjuqPO6x7cMoqAKrSFy+4bkKPbdgf7w8YYFkkkCW7utv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1xIiXRw8I7qSYMJRmU/FjYSP60OtibYXPRM+WyhfHuX3ksvt4qCJtxcDQ1GekuAh1gG8f39pjL0XNxbId2l4BUpo+XD/kDfRV8KOgSLFy0obKA/T4KJwt2F6N00ClXDFNg3bWcPNQIxNE/kCeQMNDsTh6K15ZyeYlhDbQ4e/Qmy1eHxUWZ8sgEaTRi0eYVsQvIPbLDDtIJ1a3BFqsTo/oGrnYyO0WkJkj+X/iu7lURev8xTTYWlINAhDWBr4xfsLx5cVWNu2dYqNwMM+6fL1NgNbNUytnoYEdswnSCiE69c9nYZ60h5Aq0lxeeyCA0kuLaDC0nVN3nZtG+VR+wP10cHRwt6BJc1CKEIfyLs3f5GTUDgLCRYCDuuClHL/5wBnCak6GJUfBSE1WxTwRRQSdbCU3oGSBnJRCg4/D+k5mKqXxwbhrhRCNyaYAwByHizwzQK5m4ck7xg0XQhDqbaBuJYQ2Wvt/8Akt5G4qUZoLXRJnqd5evXa1eNZArIkcrh8zyK2mfBROGpok47BSk8qr0Gco5DkHdMVY1eGhULsLaA0D9fvWGDwUApFjAXUJPNf7P09Q42Ve6WpKmX78//i88uXL1++fPny5cuXL19+tweHBAAAAACC/r/2hgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbgLA3LS2LXStLwAAAABJRU5ErkJggg==",onLoad:()=>{e.load=!0},onError:()=>{e.load=!0,e.error=!0}}),null)]),g("div",{class:S.name},[e.name])])]))),I.list.length<=0&&!I.loading&&g(m,{image:"list",description:"暂无数据"},null)])])])])}}))}}}))}();