import{a as U}from"./index.91aa181a.js";import{d as b,i as e,A as _,N as Q,Q as F,F as V,S as G,bs as ue,C as ne,$ as K,V as ae,U as H,B as oe,X as pe,Y as de,p as Y,b as P,m as Z,s as I,b1 as me,br as Ae,aT as he,h as fe}from"./index.7994470a.js";import{P as ve}from"./index.41bace0a.js";import{a as J,S as W}from"./index.889feca1.js";import{I as h}from"./index.2fbdc579.js";import"./index.6449f9de.js";import{T as ge,a as $}from"./index.a28173c9.js";import{I as _e,a as we}from"./icon-xin-active.3d0e362e.js";import{C as ie}from"./index.777f4790.js";import{C as be}from"./index.9cdb5783.js";import{L as le}from"./index.ec643df3.js";import{I as ye}from"./icon-play.bc9e7aab.js";import{i as Ce}from"./icon_exquisite.69e33c80.js";import{i as Se}from"./icon_album_active.ce98b2a8.js";import{C as Ie}from"./index.aaa3ed2b.js";import"./use-id.117b75b2.js";import"./use-tab-status.00d7316c.js";import"./use-refs.ad5f4144.js";const Ee="_albumContainer_1c01r_1",Be="_album_1c01r_1",qe="_albumType_1c01r_19",Te="_main_1c01r_32",xe="_favorite_1c01r_35",Ne="_img_1c01r_49",Ue="_title_1c01r_60",Ve="_model_1c01r_68",Fe="_num_1c01r_83";var T={albumContainer:Ee,album:Be,albumType:qe,main:Te,favorite:xe,img:Ne,title:Ue,model:Ve,num:Fe};const Me="_title_1bbb0_1",ke="_cellTitle_1bbb0_8",Le="_cellValue_1bbb0_25";var O={title:Me,cellTitle:ke,cellValue:Le},D=b({name:"the-music",props:{title:{type:String,default:""}},emits:["detail"],setup(s,{emit:t}){return()=>e(ie,{class:O.title,titleClass:O.cellTitle,title:s.title,border:!1},{value:()=>e("span",{class:O.cellValue,onClick:()=>{t("detail")}},[_("\u66F4\u591A"),e(Q,{name:"arrow"},null)])})}}),re={exports:{}};(function(s){var t=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function o(p,i,r){this.fn=p,this.context=i,this.once=r||!1}function C(p,i,r,c,g){if(typeof r!="function")throw new TypeError("The listener must be a function");var v=new o(r,c||p,g),d=n?n+i:i;return p._events[d]?p._events[d].fn?p._events[d]=[p._events[d],v]:p._events[d].push(v):(p._events[d]=v,p._eventsCount++),p}function y(p,i){--p._eventsCount===0?p._events=new a:delete p._events[i]}function m(){this._events=new a,this._eventsCount=0}m.prototype.eventNames=function(){var i=[],r,c;if(this._eventsCount===0)return i;for(c in r=this._events)t.call(r,c)&&i.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(r)):i},m.prototype.listeners=function(i){var r=n?n+i:i,c=this._events[r];if(!c)return[];if(c.fn)return[c.fn];for(var g=0,v=c.length,d=new Array(v);ge(V,null,[s.album.length>0&&e(D,{title:"\u70ED\u95E8\u4E13\u8F91",onDetail:()=>{f.emit("downloadApp")}},null),e("div",{class:T.albumContainer},[s.album.map(t=>e("div",{class:T.album,key:t.id,onClick:()=>{f.emit("downloadApp")}},[e("div",{class:T.main},[t.paymentType==="CHARGE"&&e("span",{class:T.albumType},[_("\u4ED8\u8D39")]),e(h,{class:T.img,src:t.albumCoverUrl},null),e("div",{class:T.model},[e(Q,{name:t.favorite?_e:we},null),e("span",{class:T.num},[t.albumFavoriteCount,_("\u4EBA")])])]),e("h4",{class:[T.title,"van-ellipsis"]},[t.albumName])]))])])}});const Ge="_cellGroup_10uju_1",He="_infoImg_10uju_12",Ke="_valueContent_10uju_18";var R={cellGroup:Ge,infoImg:He,valueContent:Ke};function De(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!K(s)}var Pe=b({name:"info-list",setup(){F();const s=G({platformType:"STUDENT",type:"1",clientType:"STUDENT",page:1,rows:20}),t=G({list:[],dataShow:!0,loading:!1,finished:!1}),n=async()=>{try{const a=await U.post("/api-cms/news/page",{data:{...s}});t.loading=!1;const o=a.data||{};if(t.list.length>0&&o.pageNo===1)return;t.list=t.list.concat(o.rows||[]),t.finished=o.pageNo>=o.totalPage,s.page=o.pageNo+1,t.dataShow=t.list.length>0}catch{t.dataShow=!1,t.finished=!0}};return n(),()=>{let a;return e(V,null,[t.dataShow?e(le,{loading:t.loading,"onUpdate:loading":o=>t.loading=o,finished:t.finished,finishedText:" ",immediateCheck:!1,class:[R.liveList],onLoad:n},{default:()=>[e(be,{inset:!0,class:t.list.length>0&&R.cellGroup},De(a=t.list.map(o=>e(ie,{valueClass:R.valueContent,onClick:()=>{f.emit("downloadApp")}},{icon:()=>e(h,{src:o.coverImage,class:R.infoImg},null),value:()=>e(V,null,[e("h2",{class:"van-multi-ellipsis--l2"},[o.title]),e("p",null,[ue(o.createTime,"YYYY\u5E74MM\u6708DD\u65E5")])])})))?a:{default:()=>[a]})]}):e(ne,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u70ED\u95E8\u8D44\u8BAF"},null)])}}});const Oe="_swipeType_1yx4c_1",je="_swipeTypeShow_1yx4c_17",Xe="_typeSection_1yx4c_20",ze="_typeItem_1yx4c_24",Qe="_swipeTypeImg_1yx4c_28",Je="_typeName_1yx4c_34";var M={swipeType:Oe,swipeTypeShow:je,typeSection:Xe,typeItem:ze,swipeTypeImg:Qe,typeName:Je};function ee(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!K(s)}var We=b({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:s=>{}}},render(){let s;return e(W,{class:[M.swipeType,this.productList.length>1&&M.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},ee(s=this.productList.map(t=>{let n;return e(J,{class:M.typeSection},ee(n=t.map(a=>e("div",{class:M.typeItem,onClick:()=>{f.emit("downloadApp")}},[e(h,{class:M.swipeTypeImg,src:a.coverImage,fit:"cover"},null),e("p",{class:M.typeName},[a.title])])))?n:{default:()=>[n]})}))?s:{default:()=>[s]})}});const Ze="_title_1eb2o_1",$e="_cellTitle_1eb2o_8",et="_cellValue_1eb2o_25",tt="_hotMusic_1eb2o_34",st="_swipeItem_1eb2o_34",nt="_swipeChild_1eb2o_34";var j={title:Ze,cellTitle:$e,cellValue:et,hotMusic:tt,swipeItem:st,swipeChild:nt};const at="_theSong_qtml0_1",ot="_item_qtml0_7",it="_play_qtml0_16",lt="_iconFine_qtml0_19",rt="_iconAlbum_qtml0_25",ct="_content_qtml0_31",ut="_top_qtml0_34",pt="_tag_qtml0_39",dt="_user_qtml0_44",mt="_name_qtml0_48",At="_tags_qtml0_58",ht="_title_qtml0_69",ft="_singer_qtml0_76";var w={theSong:at,item:ot,play:it,iconFine:lt,iconAlbum:rt,content:ct,top:ut,tag:pt,user:dt,name:mt,tags:At,title:ht,singer:ft},vt=b({name:"TheSong",props:{list:{type:Array,default:()=>[]}},emits:["detail"],setup(s,{emit:t}){return F(),()=>e("div",{class:w.theSong},[s.list.map(n=>e("div",{class:w.item,onClick:()=>t("detail",n)},[e("div",{class:w.content},[e("div",{class:w.top},[n.exquisiteFlag===1&&e(h,{src:Ce,class:w.iconFine},null),n.albumNums>0&&e(h,{src:Se,class:w.iconAlbum},null),e("span",{class:[w.title,"van-ellipsis"]},[n.musicSheetName]),e("span",{class:[w.singer,"van-ellipsis"]},[_("-"),n.composer])]),e("div",{class:w.user},[n.addName?e("div",{class:w.name},[_("\u4E0A\u4F20\u8005\uFF1A"),n.addName]):e("div",{class:w.name},[_("\u4F5C\u66F2\uFF1A"),n.composer]),e("div",{class:w.tags},[n==null?void 0:n.subjectNames.split(",").map(a=>e("span",null,[a]))])])]),e("div",{style:w.play},[e(Q,{name:ye,size:28},null)])]))])}});function gt(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!K(s)}var X=b({name:"music-list",props:{title:{type:String,default:"\u6700\u70ED\u66F2\u76EE"},music:{type:Array,default:()=>[]}},setup(s){F(),ae(()=>{a()});const t=H(312),n=H(!1),a=()=>{n.value=!1;const o=document.body.clientWidth>750?750:document.body.clientWidth;t.value=o-63,n.value=!0};return()=>{let o;return e(V,null,[s.music.length>0&&e(D,{title:s.title,onDetail:()=>{f.emit("downloadApp")}},null),e("div",{class:j.hotMusic},[n.value&&e(W,{showIndicators:!1,loop:!1,width:t.value},gt(o=s.music.map(C=>e(J,{class:j.swipeItem},{default:()=>[e("div",{class:j.swipeChild},[e(vt,{list:C,onDetail:y=>{f.emit("downloadApp")}},null)])]})))?o:{default:()=>[o]})])])}}});const _t="_sageContainer_16d3h_1",wt="_sage_16d3h_1",bt="_animation_16d3h_25",yt="_header_16d3h_32",Ct="_living_16d3h_40",St="_img_16d3h_53",It="_username_16d3h_64",Et="_cert_16d3h_76",Bt="_btn_16d3h_82";var E={sageContainer:_t,sage:wt,animation:bt,header:yt,living:Ct,img:St,username:It,cert:Et,btn:Bt,"van-button--disabled":"_van-button--disabled_16d3h_87"},qt="./assets/bars.d9d69cc5.svg",Tt=b({name:"recommend-sage",props:{title:{type:String,default:"\u63A8\u8350\u8FBE\u4EBA"},sage:{type:Array,default:()=>[]}},setup(s){return F(),()=>e(V,null,[s.sage.length>0&&e(D,{title:s.title,onDetail:()=>{f.emit("downloadApp")}},null),e("div",{class:E.sageContainer},[s.sage.map(t=>e("div",{class:E.sage,key:t.id,onClick:()=>{f.emit("downloadApp")}},[t.living&&e(h,{src:qt,class:E.animation},null),e("div",{class:E.header},[e(h,{class:E.img,src:t.avatar,fit:"cover"},null),t.living&&e("span",{class:E.living},[_("\u76F4\u64AD\u4E2D")])]),e("p",{class:E.username},[t.username]),e("p",{class:E.cert},[_("\u8BA4\u8BC1\u8FBE\u4EBA")]),e(oe,{round:!0,size:"mini",class:E.btn,type:t.watch?"default":"primary",disabled:t.watch,onClick:()=>{f.emit("downloadApp")}},{default:()=>[t.watch?"\u5DF2\u5173\u6CE8":"\u5173\u6CE8"]})]))])])}});const xt="_style_1fq3q_1",Nt="_lineContainer_1fq3q_4",Ut="_line_1fq3q_4",Vt="_styleItem_1fq3q_12",Ft="_styleImg_1fq3q_21",Mt="_img_1fq3q_24",kt="_first_1fq3q_28",Lt="_iconVideoPlay_1fq3q_31",Yt="_living_1fq3q_38",Rt="_animationContainer_1fq3q_48",Gt="_animation_1fq3q_48",Ht="_userInfo_1fq3q_67",Kt="_user_1fq3q_67",Dt="_userImg_1fq3q_76",Pt="_lookNum_1fq3q_92";var u={style:xt,lineContainer:Nt,line:Ut,styleItem:Vt,styleImg:Ft,img:Mt,first:kt,iconVideoPlay:Lt,living:Yt,animationContainer:Rt,animation:Gt,userInfo:Ht,user:Kt,userImg:Dt,lookNum:Pt},te="./assets/bars2.c3b1c432.svg",se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABANJREFUaEPVWktME0EY/v+hW3wUY6oXHxx8HDwoJnQpVg6ejEbjwUY9GW/GkxITIiFIvJJgYgIXTTmVmxgkEZsYCZEErC1bEjGKBx8h+EgMwkGxdLc7Y6a2WNaW7T7aunNrZ+b7/2/++We+mVkEG0pDQ8Nmt9u9BxF3A8B2SqkXETcwxmo5PCKmGGMrhJBFAFhgjH2SZfnjzMzMslXzaBYgEAhsVBTlEKX0MCFkJ/fTIBajlH4hhLwUBOFVNBpNGuyfaW7UKLS0tNQpinKUUuoDALcZowX6yISQhCAIzycnJ38YwTRCgIiiGACAYzY6rvVVBoBxSZKiAEBLIVISgUAg4FUU5TwA7CgF1IY2XwVBGIxGozxn1i26BHw+3wEAOIuImYSsVGGMpQDgYSKReLuezXUJNDc3+9Lp9GlEJJVyPN8OY4y6XK7HsVgsUcx+UQLceVVVz1TDca3NmpqaR8VIFCSQnTYXqjXyWgI8EgBwv9B0+ocAT1hZlq9Ues7rRZrnhNvtvqdNbC0BvlReruBqo+e3tv6rJEmh/CV2DQFRFFsA4LhR1Aq3fypJ0mTO5ioBvsOmUqmrZdyk7OIp19bW9uV27FUCfr//BKWU77T/fSGEROPx+BPuaIZAVphdtzr6Xq/XHQwG96mqyoaHh98vLS0pZRoNWRCEO1wAZgiIougHgFNWjPn9/m3d3d0X6+rqtnKcZDL5MxwOR/r7+2et4K7TNyJJUjxDoLGx8TIhZJcVQ0NDQ5fq6+v3aDFmZ2dfd3Z2Rubn539Zwdf2pZR+np6eDmH2MNJmRlrng8ZisZuEkJpCTiaTyeVwOPzY5mgwWZZvoyiKBwHgnNXRmZqauqWHUYZoPMCmpqaTjLEjesb16kshkM2N5YGBgUgoFHqjh6lXj4gvOIGLjLH9eo316kslkMPh0ejq6orMzc2Zzg1EfIc+n+8aInr1HNSrN0ogF42+vr6hwcHBD3r4heoZY4s8B24AwCYzAPl9zBDg/dPpdLq1tfVuPB7/bsKHXzwCXYhYcPUwAmiWALcxOjr6rKOjY9yIPd6WMab+FwTGxsbG29vbn5kiUO0ppKpquq2tLTQxMfHNKAEAyEyhqiXxysrKcm9vr7UkdvwyWumNjI86F3m2bWSVlhJWNy9NnjywU8x1EkJcxcScXfIhD/+PmON/lFtO2zzqGQ6rcpr/sONAI4ritp6enksej2eL3aKtyPL690Bj15HS4/G4gsHgXkIIjoyMfFxYWOC3zeUoa4+U3IKjD/WcgOOvVbK54NyLrexEdfbVIifh9MvdTCAcfb2eW/Mc/cCRT8KxT0w5Eo5+5MuRcPQza54OcO5Dd76YcfKnBmtEmWM/9igkLav5uc1vW5R1K5ZRo7YAAAAASUVORK5CYII=",Ot=b({name:"talent-list",setup(){F();const s=G({platformType:"STUDENT",page:1,rows:20}),t=G({list:[],dataShow:!0,loading:!1,finished:!1}),n=async()=>{try{const a=await U.post("/api-student/teacher/stylePage",{data:{...s}});t.loading=!1;const o=a.data||{};if(t.list.length>0&&o.pageNo===1)return;t.list=t.list.concat(o.rows||[]),t.finished=o.pageNo>=o.totalPage,s.page=o.pageNo+1,t.dataShow=t.list.length>0}catch{t.dataShow=!1,t.finished=!0}};return n(),()=>e(V,null,[t.dataShow?e(le,{loading:t.loading,"onUpdate:loading":a=>t.loading=a,finished:t.finished,finishedText:" ",immediateCheck:!1,class:u.style,onLoad:n},{default:()=>[e("div",{class:u.lineContainer},[e("div",{class:u.line},[t.list.map((a,o)=>o%2===0&&e("div",{class:u.styleItem,onClick:()=>{f.emit("downloadApp")}},[e("div",{class:u.styleImg},[e(h,{src:a.cover,fit:"cover",class:[u.img,o===0&&u.first]},null),a.living===1?e("div",{class:u.living},[e("div",{class:u.animationContainer},[e(h,{src:te,class:u.animation},null)]),e("span",null,[_("\u76F4\u64AD\u4E2D")])]):e(h,{src:se,class:u.iconVideoPlay},null)]),e("div",{class:u.userInfo},[e("p",{class:u.user},[e(h,{src:a.avatar,fit:"cover",class:u.userImg},null),e("span",null,[a.username])]),e("p",{class:u.lookNum},[a.browse,_("\u4EBA\u89C2\u770B")])])]))]),e("div",{class:u.line},[t.list.map((a,o)=>o%2===1&&e("div",{class:u.styleItem,onClick:()=>{f.emit("downloadApp")}},[e("div",{class:u.styleImg},[e(h,{src:a.cover,fit:"cover",class:[u.img,o===0&&u.first]},null),a.living===1?e("div",{class:u.living},[e("div",{class:u.animationContainer},[e(h,{src:te,class:u.animation},null)]),e("span",null,[_("\u76F4\u64AD\u4E2D")])]):e(h,{src:se,class:u.iconVideoPlay},null)]),e("div",{class:u.userInfo},[e("p",{class:u.user},[e(h,{src:a.avatar,fit:"cover",class:u.userImg},null),e("span",null,[a.username])]),e("p",{class:u.lookNum},[a.browse,_("\u4EBA\u89C2\u770B")])])]))])])]}):e(ne,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u8FBE\u4EBA\u98CE\u91C7"},null)])}});const jt="_theHomeHeader_z8488_1",Xt="_content_z8488_6",zt="_mall_z8488_10",Qt="_cart_z8488_15",Jt="_searchBox_z8488_21",Wt="_iconSearch_z8488_32";var N={theHomeHeader:jt,content:Xt,mall:zt,cart:Qt,searchBox:Jt,iconSearch:Wt},Zt="./assets/icon-mall.96831ca5.png",$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRi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F2q1HcK4Bfm8KsdxucAA3ZgbK/VgfLJJvaX7DMqHrrLHE4RaXOYugUwGD11hk3X50qJ3hlttsklgtgLfCZM6sAP1tOFHls3x1os3MEUH8/OW5Vw555mMiCiIrIqkSH+6mWbqm8LHNWptaX97xaBg+LvevgZOUZ4EEL8FRAbcvWQ5FXtb9DjoFlACaTOkmq5VYa+ypBIi0DLuVfFaiBzwH3lQlQ0OxT8pbzMluPXYC6rhDV0T2MRI1eW63bg3KKyInmiJpJ9hhPiiNkzyQWgPql6JcFPghcCYwiAiVEexHwIXC0Y1PUP2F/5zq46/B8h6Ogg7t4ni6ISilauIC44HSy1IVSVnIBlKuluMAZdwPwZonQKSEeNkdanYesfGBa3PBYAPVdGeR2k1IB1H2PyofqrCviALpRUEiNkrDbrWDLKQagbGk3bnRIiQtCl5micTnZTRhAHeRduqQCOt4YFPkVGRUw1dIw5qxs1e2BjhGhEgZQl5e7gCklijvXjG4rFM+6VtEceSUMoJREGkUeSyXqrW8BKsJj3cpm58wHUIMUe8o4bZObcflAy0Oi+r+Zwt8DdAFbwq558xn7F6kwT18APmEPAAAAAElFTkSuQmCC",ss=b({name:"TheHomeHeader",emits:["cart","more","search","headerDom"],setup(s,{emit:t,expose:n}){const a=H(sessionStorage.getItem("navHeight"));(()=>{Y({api:"setBarStatus",content:{status:0}}),!a.value&&Y({api:"getNavHeight"},y=>{const{content:m}=y,p=m.dpi||2;if(m.navHeight){const i=m.navHeight/p+"";sessionStorage.setItem("navHeight",i),a.value=i}})})();const C=H(null);return ae(()=>{pe(()=>{setTimeout(()=>{const{height:y}=de(C);t("headerDom",y)},300)})}),()=>e(Ie,{position:"top"},{default:()=>[e("div",{class:N.theHomeHeader,ref:C},[e("div",{style:{height:a.value+"px",background:"#fff"}},null),e("div",{class:N.content},[e("img",{class:N.mall,src:Zt},null),e("div",{class:N.searchBox,onClick:()=>t("search")},[e("img",{class:N.iconSearch,src:$t},null),e("span",null,[_("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),e("img",{class:N.cart,src:es,onClick:()=>t("cart")},null),e("img",{class:N.cart,src:ts,onClick:()=>t("more")},null)])])]})}});const ns="_videoContainer_1jqb5_1",as="_videoItem_1jqb5_14",os="_viCover_1jqb5_22",is="_viSection_1jqb5_27",ls="_viTitle_1jqb5_30",rs="_viUserNum_1jqb5_35",cs="_subjectName_1jqb5_39",us="_viUser_1jqb5_35",ps="_viUserName_1jqb5_56";var B={videoContainer:ns,videoItem:as,viCover:os,viSection:is,viTitle:ls,viUserNum:rs,subjectName:cs,viUser:us,viUserName:ps},ds=b({name:"video-class",props:{video:{type:Array,default:()=>[]}},setup(s){return F(),()=>e(V,null,[s.video.length>0&&e(D,{title:"\u7CBE\u54C1\u89C6\u9891\u8BFE",onDetail:()=>{f.emit("downloadApp")}},null),e("div",{class:B.videoContainer},[s.video.map(t=>e("div",{class:B.videoItem,onClick:()=>{f.emit("downloadApp")}},[e("div",{style:{position:"relative"}},[e(h,{class:B.viCover,fit:"cover",src:t==null?void 0:t.lessonCoverUrl},null),e("span",{class:B.subjectName},[t==null?void 0:t.subjectName])]),e("div",{class:B.viSection},[e("div",{class:[B.viTitle,"van-ellipsis"]},[t==null?void 0:t.videoGroupName]),e("div",{class:B.viUser},[e("div",{class:B.viUserName},[t.teacherName]),e("div",{class:B.viUserNum},[t==null?void 0:t.buyCount,_("\u4EBA\u5728\u5B66")])])])]))])])}});const ms="_hotContent_17auz_1",As="_swipe_17auz_6",hs="_swipeItemImg_17auz_11",fs="_homeTabs_17auz_26";var L={hotContent:ms,swipe:As,swipeItemImg:hs,homeTabs:fs},vs="./assets/popup-download_bg.7a89cbd7.png";const gs="_download_1kf7v_1",_s="_downloadBtn_1kf7v_7";var z={download:gs,downloadBtn:_s},ws=b({name:"download-popup",props:{buttonText:{type:String,default:"\u4E0B\u8F7D\u9177\u4E50\u79C0"}},emits:["confirm"],setup(s,{emit:t}){return()=>e("div",{class:z.download},[e(h,{src:vs,class:z.img},null),e(oe,{round:!0,class:z.downloadBtn,onClick:()=>t("confirm")},{default:()=>[s.buttonText]})])}}),bs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAktJREFUaEPtmdFLFUEUh7+bYQlGCBJEogZJBSoR4VMPRkEP/r0+CEU99BQiUUGJgiZFIIJEgRmp8YMdWa47O2fu3r1ywn3dM3N+35yZM2dmOjj/Os71cwFw3hHsZwTGgHHgOjAKXAEuF4B/gUPgF/AD2AP2+wHfFOAqcBu4BYxkCjoAvgFbwO/MtqfmvQIMA3eBSeBSr86LdsfADrAO/MntqxcAjfYsIIh+fhL/sYiKud8cANnOAVPm3nsz/AJ8AE4sza0AQ8Aj4Ial0z7Y7AKrwFGqLwuAbBYGKD5oFsTbVCQsAPMDmDaxgdZ0el8XhRSAFuzDVBhb/r9Wt7DrAJRlnrSQbXJ5lZ1exVJsHYAyznSut5bst4vMdKb7GIB22KcZm1RIeakpGQTk2muze1m1Y8cc3gfuGEdTYt4VsFrwKQjZa2FK1AODfZCxCXzq1hRz9sxY2wTxX4uOVVrUQQTxKh30TWRAqHZ6YQFQVfk4Y/Q1mkGQmsUgusXX2cbcv+muYqsiMAPcMwLIzCLMYmNx+RnYKBtWAahkuGnprWRTJ1Bm1iil3H4vSoxTuyqAReBaqqeK/zEImVqmmMXlT+B1KgLPG2xeVRBlf6lFnoLQpraSAljKyP9VDmMQTcXLl1Lv8n8P4H4KuV/E7tOo+43MfSmhLOW6mBOA+3La/YFGUXB9pBSA+0O9IFxfq4SayfXFliDcXy0KwvXlbphKrq/Xy2cItw8cZQjXT0xlELePfFVnYZfPrKlbhNb/py5iWxfQ1MEFQNMRbNr+H/9tvDF3+cosAAAAAElFTkSuQmCC";function ys(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!K(s)}var Hs=b({name:"home-index",props:{album:{type:Array,default:()=>[]}},data(){return{loading:!1,height:"auto",banner:[],appMenu:[],albumList:[],musicList:{topMusicSheet:[],newMusicSheet:[],hotMusicSheet:[]},sageList:[],videoList:[],headerHeight:0,downloadStatus:!1}},async mounted(){await this.init(),f.on("downloadApp",async()=>{const s=P().orchestraAndroid?"com.cooleshow.student":"ColexiuStudent://";await Z({api:"isInstall",content:{type:s}}).then(t=>{const n=t.content;I.orchestraInfo.installStatus=n.installStatus,this.downloadStatus=!0})}),me("webViewOnResume",()=>{Z({api:"getUserAccount"}).then(s=>{const t=s.content;t.phone!==I.orchestraInfo.phone&&(t.unionId?window.location.reload():(I.orchestraInfo.token=t.token.split(" ")[1],I.orchestraInfo.phone=t.phone,I.orchestraInfo.nickname=t.nickname,I.orchestraInfo.avatar=t.avatar,I.orchestraInfo.unionId=t.unionId||0,fe(),this.$router.push({path:"/home-auth"})))})}),Y({api:"setBarStatus",content:{status:0}})},unmounted(){Ae("webViewOnResume",()=>{})},methods:{async init(){try{const t=(await U.post("/api-cms/news/app/home",{data:{clientType:"STUDENT"}})).data||{};this.banner=t.banner||[],this.appMenu=this.arrChange(5,t.appMenu||[]);const n=await U.post("/api-student/music/album/list",{data:{albumStatus:1,clientId:"STUDENT"}});this.albumList=n.data.rows||[];const o=(await U.post("/api-student/music/sheet/appMusicSheet",{data:{}})).data||[];this.musicList={topMusicSheet:this.arrChange(4,o.topMusicSheet||[]),newMusicSheet:this.arrChange(4,o.newMusicSheet||[]),hotMusicSheet:this.arrChange(4,o.hotMusicSheet||[])};const C=await U.get("/api-student/teacher/queryHotTeacherList");this.sageList=C.data||[];const y=await U.get("/api-student/courseSchedule/queryLiveAndVideo");this.videoList=y.data.videoList||[]}catch{}setTimeout(()=>{this.loading=!1},500)},arrChange(s,t){const n=[];for(;t.length>0;)n.push(t.splice(0,s));return n},async onRefresh(){await this.init(),setTimeout(()=>{this.loading=!1},500)}},render(){let s;return e("div",{class:L.home},[e(ss,{ref:"header",onHeaderDom:t=>{console.log(t,"height"),this.headerHeight=t},onCart:()=>{f.emit("downloadApp")},onSearch:()=>{f.emit("downloadApp")},onMore:()=>{f.emit("downloadApp")}},null),e(ve,{modelValue:this.loading,"onUpdate:modelValue":t=>this.loading=t,"loading-text":"\u6B63\u5728\u5237\u65B0...","success-text":"\u5237\u65B0\u5B8C\u6210",onRefresh:()=>this.onRefresh()},{default:()=>{var t,n,a;return[e("div",{class:L.hotContent},[e(W,{class:L.swipe,autoplay:3e3},ys(s=this.banner.map(o=>e(J,{onClick:()=>{f.emit("downloadApp")}},{default:()=>[e(h,{class:L.swipeItemImg,src:o.coverImage,fit:"fill"},null)]})))?s:{default:()=>[s]}),e(We,{productList:this.appMenu},null)]),e(Re,{album:this.albumList},null),e(X,{title:"\u63A8\u8350\u66F2\u76EE",music:((t=this.musicList)==null?void 0:t.topMusicSheet)||[]},null),e(X,{title:"\u6700\u65B0\u66F2\u76EE",music:((n=this.musicList)==null?void 0:n.newMusicSheet)||[]},null),e(X,{title:"\u6700\u70ED\u66F2\u76EE",music:((a=this.musicList)==null?void 0:a.hotMusicSheet)||[]},null),e(Tt,{sage:this.sageList},null),e(ds,{video:this.videoList},null),e(ge,{shrink:!0,background:"#f6f8f9",class:L.homeTabs,sticky:!0,offsetTop:this.headerHeight+"px"},{default:()=>[e($,{title:"\u8FBE\u4EBA\u98CE\u91C7",name:"sage"},{default:()=>[e(Ot,null,null)]}),e($,{title:"\u70ED\u95E8\u8D44\u8BAF",name:"info"},{default:()=>[e(Pe,null,null)]})]})]}}),e(he,{show:this.downloadStatus,"onUpdate:show":t=>this.downloadStatus=t,round:!0,style:{width:"86%",background:"transparent"},closeable:!0,closeIcon:bs},{default:()=>[e(ws,{buttonText:I.orchestraInfo.installStatus?"\u6253\u5F00\u9177\u4E50\u79C0":"\u4E0B\u8F7D\u9177\u4E50\u79C0",onConfirm:()=>{const t=P().orchestraAndroid?"com.cooleshow.student":"ColexiuStudent://";if(I.orchestraInfo.installStatus)Y({api:"openApp",content:{type:t}});else{const n=P().orchestraAndroid?window.location.origin+window.location.pathname+"#/download":"https://itunes.apple.com/cn/app/id1626971695?mt=8";Y({api:"downloadApp",content:{type:t,url:n}})}}},null)]})])}});export{Hs as default};