baseIndex-legacy-a17e42f3.js 11 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,a=function(e,t){if(null==e)return{};var r,i,a={},n=Object.keys(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function a(e,t,r,i,a,n,o){try{var c=e[n](o),d=c.value}catch(l){return void r(l)}c.done?t(d):Promise.resolve(d).then(i,a)}function n(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var o=e.apply(t,r);function c(e){a(o,i,n,c,d,"next",e)}function d(e){a(o,i,n,c,d,"throw",e)}c(void 0)}))}}System.register(["./index-legacy-1caf4f97.js","./api-legacy-30fad2db.js","./index-legacy-be61a62f.js","./base-legacy-f60ccc23.js","./Image-legacy-5a18349f.js","./index-legacy-3a374f50.js","./index-legacy-458ca26e.js","./fade-in-scale-up.cssr-legacy-9e550374.js"],(function(a,o){"use strict";var c,d,l,_,s,w,f,g,m,u,p,h,b,v,y,A,k=document.createElement("style");return k.textContent="._container_1dwaf_1{position:relative;height:100vh;overflow:hidden;background:url("+new URL("icon_bg-f94bd665.png",o.meta.url).href+') no-repeat center center / cover;display:flex;flex-direction:column;padding:1.62667rem .48rem .48rem .98667rem}._back_1dwaf_10{position:fixed;left:.4rem;top:.45333rem;width:.82667rem;height:.82667rem}._back_1dwaf_10>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._back_1dwaf_10:active{opacity:.8}._centerSearch_1dwaf_25{position:absolute;top:.4rem;right:.48rem;width:8rem}._centerSearch_1dwaf_25 .van-search{width:100%;z-index:1;padding:0}._centerSearch_1dwaf_25 .van-field__control::-webkit-input-placeholder{font-size:.32rem}._section_1dwaf_39{display:flex;height:calc(100vh - 2.10667rem)}._section_1dwaf_39 ._directorySection_1dwaf_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/cZJHCvp4IDI7K0xKYF9isvBc5ge3LJTgJ6Jh6r4PBS22mzAgeRlwI7e4EBGSUggslaRU4vtnyTAgeVlwJntDu5bCcBvbA17eHQvqrcWSjYnMD1yEuBnX3AgGwT+CyC7Qt9TmxK4HrlpcDZ7k6u3k1Ab/aoDWDP/Du2zAgcRl4K7G4ARuSAgODYeEVuzM3EhMBh5aXAOWhOpuAm4GGqrQODcx+ASF3gKOSlwO7aMyI3BCbGq3JpNptUBY5KXgqcm+ZkIm4CH39+w/rZ54lTEzhKeSmwu+qMyA8BEZyuVWRSM0pF4KjlpcD5aU5m4iag3+xRq8hwKgLHIS8FdhedEfki4AEj+h1biZ6B45KXAuerOZmNDwKCK+MVOZWYwHHKS4F9FJwheSPwfLwqWxIROG55KXDeepP5+CDgSTN6Yhc4CXkpsI9yMyR/BDwcjFXgpOSlwPnrTWbkJuAB+k8N4hlJykuB46khZ7VNQB/4j0XgpOXVJEb5r1VsdxtXFweBp5ELnLS8SqWxBOxZGwcfzkkCpgm8jVTgNORVvG2NwM5e06C5OBKInoDgfWQCpyWvUuluBbZ0R8+HM5KAcQLfIxE4TXkVcHUFsLHDOGoujwRiIBBa4LTlVSZbu4Gu1hjocEoSME4glMAW5C0JsHst0BAqE+NV4vJIYBECdbe9BXk1pzXLgOEu1pcEikmgLoGtyMvtczGblln/JRBYYEvyLm8CdvSk9K0E7CISMEAgkMCW5FV2unXWLTQHCRSVgG+BrclbbgG2rS5q2Zg3CcwQ8CWwNXn1irNunfUOLA4SKDIBp8DW5NVibV4F9LQVuWzMnQR8nIEtysu7rti6JODjKrRFede1A4Nln/t+VpkECkBgwS20RXn1zLuhg/IWoCeZYgAC/wlsTV69YDVU5nveADVlaIEI/COwNXn1o6JNZV5tLlA/MtWABP4IbElevcNq/UrepBGwlgwvIIHfAluQV58q0gfz+9qBVa18r1vAXmTKdRCQc4+9yz89nK/j2LoO0b8YDSWguTSzNW5vAjpbgM7mmZ9zkAAJ+CfwC/U4C3AqfYjwAAAAAElFTkSuQmCC) no-repeat top center;background-size:contain;border-radius:.48rem;margin-right:.4rem}._section_1dwaf_39 ._directorySection_1dwaf_43 ._directionc_1dwaf_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_1dwaf_39 ._directorySection_1dwaf_43 ._directionc_1dwaf_50::-webkit-scrollbar{width:0;display:none}._section_1dwaf_39 ._directorySection_1dwaf_43 ._dirItem_1dwaf_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_1dwaf_39 ._directorySection_1dwaf_43 ._dirItem_1dwaf_63._active_1dwaf_77{background-color:#fff;background:#FEF8EF;border-radius:.16rem;color:#0ca2ea}._content_1dwaf_83{overflow-y:auto;overflow-x:hidden;flex:1;padding:0 0 0 4%;background:rgba(255,255,255,.8);border-radius:.48rem;border:.05333rem solid rgba(255,255,255,.9)}._content_1dwaf_83::-webkit-scrollbar{width:0;display:none}._content_1dwaf_83 ._wrap_1dwaf_97{position:relative;display:flex;flex-wrap:wrap;padding-top:.48rem;gap:0 .85333rem}._content_1dwaf_83 ._wrap_1dwaf_97._emtpyWrap_1dwaf_104{width:100%;padding-top:0}._content_1dwaf_83 .van-empty{padding-bottom:0!important}._content_1dwaf_83 .van-empty__description{font-size:.37333rem;color:#fff}._content_1dwaf_83 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapItem_1dwaf_119{position:relative;width:2.72rem;display:flex;flex-direction:column;align-items:center;padding:0;flex-shrink:0;z-index:1;margin-bottom:.48rem}._wrapItem_1dwaf_119 ._item_1dwaf_130{position:relative;margin-bottom:.4rem;width:100%;height:3.84rem;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1dwaf_119 ._item_1dwaf_130 img{position:absolute}._wrapItem_1dwaf_119 ._item_1dwaf_130:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1dwaf_119 ._item_1dwaf_130:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1dwaf_119 ._name_1dwaf_161{font-size:.34667rem;font-weight:400;color:#131415;line-height:.42667rem;text-align:left}._wrapItem_1dwaf_119 ._favoriteBtn_1dwaf_168{position:absolute;top:3.01333rem;right:.53333rem;z-index:3}._containerImg_1dwaf_174{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1dwaf_174:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1dwaf_174:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1dwaf_200{position:relative;z-index:3;display:block;width:100%;height:4.53333rem;background-color:#edeff2;background-image:url(./image/icon_default.svg);background-repeat:no-repeat;background-position:center center}._cover_1dwaf_200: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_1dwaf_200 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1dwaf_200._loaded_1dwaf_230 img{opacity:1}\n',document.head.appendChild(k),{setters:[e=>{c=e.d,d=e.q,l=e.r,_=e.x,s=e.y,w=e.a,f=e.h,g=e.a0,m=e.a5,u=e.M},e=>{p=e.i,h=e.a,b=e.b},e=>{v=e.M},e=>{y=e.q},e=>{A=e.N},null,null,null],execute:function(){const o={container:"_container_1dwaf_1",back:"_back_1dwaf_10",centerSearch:"_centerSearch_1dwaf_25",section:"_section_1dwaf_39",directorySection:"_directorySection_1dwaf_43",directionc:"_directionc_1dwaf_50",dirItem:"_dirItem_1dwaf_63",active:"_active_1dwaf_77",content:"_content_1dwaf_83",wrap:"_wrap_1dwaf_97",emtpyWrap:"_emtpyWrap_1dwaf_104",wrapItem:"_wrapItem_1dwaf_119",item:"_item_1dwaf_130",name:"_name_1dwaf_161",favoriteBtn:"_favoriteBtn_1dwaf_168",containerImg:"_containerImg_1dwaf_174",cover:"_cover_1dwaf_200",loaded:"_loaded_1dwaf_230"};a("default",c({name:"baseIndex-list",setup(){d(),l(!1);const a=l([]),c=()=>{m({api:"goBack"})},k=_({musicTagId:null,keyword:null,page:1,rows:999}),I=l(!1),S=_({list:[],loading:!1,favoriteList:[],details:[],bookData:{},showBook:!1,book:{}}),O=function(){var e=n((function*(){try{const{data:e}=yield h();a.value=e||[],a.value.length>0&&(k.musicTagId=a.value[0].id)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),x=function(){var a=n((function*(){var a,n;S.loading=!0;const{musicTagId:o}=k,c=i(k,e),d=yield b(function(e){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?t(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({musicTagIds:[o],subjectId:(null===(a=u.user.data)||void 0===a?void 0:a.subjectId)||""},c));200===(null==d?void 0:d.code)&&Array.isArray(null==d||null===(n=d.data)||void 0===n?void 0:n.rows)&&(S.list=d.data.rows.map((e=>(e.load=!1,e.key=Date.now()+e.id,e)))),S.loading=!1,I.value=!0}));return function(){return a.apply(this,arguments)}}();s(n((function*(){yield O(),yield x()})));return()=>w("div",{class:o.container},[w("div",{class:o.back,onClick:c},[w("img",{src:p},null)]),w("div",{class:o.centerSearch},[w("div",{id:"coai-0"},[w(v,{class:["searchNotice"],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",onSearch:e=>{k.keyword=e,x()}},null)])]),w("div",{class:o.section},[w("div",{class:o.directorySection},[w("div",{class:o.directionc},[a.value.map((e=>w("p",{class:[o.dirItem,k.musicTagId==e.id?o.active:""],onClick:()=>{k.musicTagId=e.id,x()}},[e.name])))])]),w("div",{class:o.content},[w("div",{class:[o.wrap,S.list.length<=0&&!S.loading?o.emtpyWrap:""]},[S.list.map(((e,t)=>w("div",{class:[o.wrapItem,S.bookData.id===e.id&&S.showBook?o.wrapItemHide:""],key:e.key,onClick:()=>(e=>{const t=y.stringify({musicTagId:k.musicTagId,id:e.id,name:e.name}),r=location.origin+location.pathname+"#/co-ai-detail?"+t;console.log("🚀 ~ url:",r),m({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})})(e)},[w("div",{class:o.item},[w(A,f({"data-id":e.id},{id:0==t?"courseware-0":""},{class:[o.cover,e.load?o.loaded:""],objectFit:"cover",src:e.coverImg,onLoad:()=>{e.load=!0},onError:()=>{e.load=!0}}),null)]),w("div",{class:o.name},[e.name])]))),S.list.length<=0&&!S.loading&&w(g,{image:"list",description:"暂无数据"},null)])])])])}}))}}}))}();