baseIndex-legacy-d0b4cef4.js 14 KB

1
  1. !function(){const e=["musicTagId"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r,i,n={},o=Object.keys(e);for(i=0;i<o.length;i++)r=o[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n(e,t,r,i,n,o,a){try{var c=e[o](a),l=c.value}catch(d){return void r(d)}c.done?t(l):Promise.resolve(l).then(i,n)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,l,"next",e)}function l(e){n(a,i,o,c,l,"throw",e)}c(void 0)}))}}System.register(["./index-legacy-e1ea41b7.js","./api-legacy-73355484.js","./index-legacy-214a2846.js","./Image-legacy-1c337f42.js","./index-legacy-f104347d.js","./index-legacy-666fea96.js","./fade-in-scale-up.cssr-legacy-9162e935.js"],(function(n,a){"use strict";var c,l,d,s,A,g,_,u,p,m,w,h,f,b,v,y;return{setters:[e=>{c=e.d,l=e.q,d=e.r,s=e.x,A=e.y,g=e.a6,_=e.a,u=e.h,p=e.a1,m=e.M,w=e.W},e=>{h=e.i,f=e.a,b=e.b},e=>{v=e.M},e=>{y=e.N},null,null,null],execute:function(){var z=document.createElement("style");z.textContent="._container_1ldz1_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_1ldz1_10{position:fixed;left:.4rem;top:.45333rem;width:.82667rem;height:.82667rem}._back_1ldz1_10>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._back_1ldz1_10:active{opacity:.8}._centerSearch_1ldz1_25{position:absolute;top:.4rem;right:.48rem;width:8rem}._centerSearch_1ldz1_25 .van-search{width:100%;z-index:1;padding:0}._centerSearch_1ldz1_25 .van-field__control::-webkit-input-placeholder{font-size:.32rem}._section_1ldz1_39{display:flex;height:calc(100vh - 2.10667rem)}._section_1ldz1_39 ._directorySection_1ldz1_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/cZJHCvp4IDI7K0xKYF9isv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background-size:contain;border-radius:.48rem;margin-right:.4rem}._section_1ldz1_39 ._directorySection_1ldz1_43 ._directionc_1ldz1_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_1ldz1_39 ._directorySection_1ldz1_43 ._directionc_1ldz1_50::-webkit-scrollbar{width:0;display:none}._section_1ldz1_39 ._directorySection_1ldz1_43 ._dirItem_1ldz1_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_1ldz1_39 ._directorySection_1ldz1_43 ._dirItem_1ldz1_63._active_1ldz1_77{background-color:#fff;background:#fef8ef;border-radius:.16rem;color:#0ca2ea}._content_1ldz1_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_1ldz1_83::-webkit-scrollbar{width:0;display:none}._content_1ldz1_83 ._wrap_1ldz1_96{position:relative;display:flex;flex-wrap:wrap;padding-top:.48rem;transition:all .3s ease}._content_1ldz1_83 ._wrap_1ldz1_96._emtpyWrap_1ldz1_103{width:100%;height:100%;padding-top:0}._content_1ldz1_83 ._wrap_1ldz1_96 .van-empty__description{color:#777}._content_1ldz1_83 .van-empty{padding-bottom:0!important}._content_1ldz1_83 .van-empty__description{font-size:.37333rem;color:#fff}._content_1ldz1_83 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapfirstI_1ldz1_122{width:25%;height:125.78125%}._wrapItem_1ldz1_126{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 .37333rem;flex-shrink:0;z-index:1;margin-bottom:.48rem}._wrapItem_1ldz1_126 ._item_1ldz1_136{position:relative;margin-bottom:.4rem;width:100%;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1ldz1_126 ._item_1ldz1_136 img{width:100%;aspect-ratio:53 / 75}._wrapItem_1ldz1_126 ._item_1ldz1_136:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1ldz1_126 ._item_1ldz1_136:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1ldz1_126 ._name_1ldz1_167{font-size:.34667rem;font-weight:400;color:#131415;line-height:.42667rem;text-align:left}._wrapItem_1ldz1_126 ._favoriteBtn_1ldz1_174{position:absolute;top:3.01333rem;right:.53333rem;z-index:3}._containerImg_1ldz1_180{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1ldz1_180:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1ldz1_180:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1ldz1_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_1ldz1_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_1ldz1_206 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1ldz1_206._loaded_1ldz1_236 img{opacity:1}\n',document.head.appendChild(z);const k={container:"_container_1ldz1_1",back:"_back_1ldz1_10",centerSearch:"_centerSearch_1ldz1_25",section:"_section_1ldz1_39",directorySection:"_directorySection_1ldz1_43",directionc:"_directionc_1ldz1_50",dirItem:"_dirItem_1ldz1_63",active:"_active_1ldz1_77",content:"_content_1ldz1_83",wrap:"_wrap_1ldz1_96",emtpyWrap:"_emtpyWrap_1ldz1_103",wrapfirstI:"_wrapfirstI_1ldz1_122",wrapItem:"_wrapItem_1ldz1_126",item:"_item_1ldz1_136",name:"_name_1ldz1_167",favoriteBtn:"_favoriteBtn_1ldz1_174",containerImg:"_containerImg_1ldz1_180",cover:"_cover_1ldz1_206",loaded:"_loaded_1ldz1_236"};n("default",c({name:"baseIndex-list",setup(){l(),d(!1);const n=d([]),a=()=>{g({api:"goBack"})},c=s({musicTagId:null,keyword:null,page:1,rows:999}),z=d(!1),C=s({list:[],loading:!1,favoriteList:[],details:[],bookData:{},showBook:!1,book:{}}),B=d(),I=d([]),S=function(){var e=o((function*(){try{const{data:e}=yield f();n.value=e||[],n.value.length>0&&(c.musicTagId=n.value[0].id)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),E=function(){var n=o((function*(){var n,o;C.loading=!0;const{musicTagId:a}=c,l=i(c,e),d=yield b(function(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({musicTagIds:[a],subjectId:(null===(n=m.user.data)||void 0===n?void 0:n.subjectId)||""},l));200===(null==d?void 0:d.code)&&Array.isArray(null==d||null===(o=d.data)||void 0===o?void 0:o.rows)&&(C.list=d.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),C.loading=!1,z.value=!0}));return function(){return n.apply(this,arguments)}}();A(o((function*(){g({api:"setStatusBarVisibility",content:{isVisibility:0}}),C.loading=!0,yield S(),yield E(),C.loading=!1})));return()=>_("div",{class:k.container},[_("div",{class:k.back,onClick:a},[_("img",{src:h},null)]),_("div",{class:k.centerSearch},[_("div",{id:"coai-0"},[_(v,{class:["searchNotice"],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",onSearch:e=>{c.keyword=e,E()}},null)])]),_("div",{class:k.section},[_("div",{class:k.directorySection},[_("div",{class:k.directionc},[n.value.map((e=>_("p",{class:[k.dirItem,c.musicTagId==e.id?k.active:""],onClick:()=>{c.musicTagId=e.id,E()}},[e.name])))])]),_("div",{class:k.content},[_("div",{class:[k.wrap,C.list.length<=0&&!C.loading?k.emtpyWrap:""],ref:B},[C.list.map(((e,t)=>_("div",{class:k.wrapfirstI},[_("div",{ref:e=>I.value[t]=e,class:[k.wrapItem,C.bookData.id===e.id&&C.showBook?k.wrapItemHide:""],key:e.key,onClick:()=>(e=>{const t=w.stringify({musicTagId:c.musicTagId,id:e.id,name:e.name}),r=location.origin+location.pathname+"#/co-ai-detail?"+t;console.log("🚀 ~ url:",r),g({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})})(e)},[_("div",{class:k.item},[_(y,u({"data-id":e.id},{id:0==t?"courseware-0":""},{class:[k.cover,e.load?k.loaded:""],objectFit:"cover",src:e.coverImg,fallbackSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAFwCAMAAABpZfXvAAAAV1BMVEXy8vL////Pz8/R0dHk5OS3t7fMzMzT09PKysre3t7h4eHAwMDDw8O9vb26urq2trbIyMjGxsbb29vZ2dnX19fV1dXp6enu7u7w8PDr6+v39/f7+/vm5uai4HaqAAAHe0lEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABm50zW5ATBKIpgIZMGnLV8/+cMg6BGLZNdQ+p81bVw1yf3vyDa+fLly5f/iLFnTYcQhBjDoqH50g8j+J8YWAMxxgQbAW1NLYwxYwL8F4wMEWINEB2BWkMdzJL/Bx76DhMHRu1BgbHgPSQ9GD0iOw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aBuJYQ2Wvt/8Akt5G4qUZoLXRJnqd5evXa1eNZArIkcrh8zyK2mfBROGpok47BSk8qr0Gco5DkHdMVY1eGhULsLaA0D9fvWGDwUApFjAXUJPNf7P09Q42Ve6WpKmX78//i88uXL1++fPny5cuXL19+tweHBAAAAACC/r/2hgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbgLA3LS2LXStLwAAAABJRU5ErkJggg==",onLoad:()=>{e.load=!0},onError:()=>{e.load=!0,e.error=!0}}),null)]),_("div",{class:k.name},[e.name])])]))),C.list.length<=0&&!C.loading&&_(p,{image:"list",description:"暂无数据"},null)])])])])}}))}}}))}();