import{d as m,j as t,A as r,N as k,Q as _,F as f,S as q,bw as W,C as P,$ as T,V as X,U as B,B as z,X as Z,Y as $,n as S,f as V,p as G,g as d,b5 as tt,bv as et,aS as st,a as at}from"./ResizeObserver.es.39b48a47.js";import{a as v}from"./index.1ee2d5e6.js";import{P as nt}from"./index.d3f6a1c6.js";import{a as L,S as Y}from"./index.0e35d2fb.js";import{I as l}from"./index.fcbcb027.js";import"./index.608320e9.js";import{T as ot,a as H}from"./index.5d4d28cc.js";import{I as it,a as lt}from"./icon-xin-active.3d0e362e.js";import{C as Q}from"./index.db115763.js";import{E as ct}from"./index.b6ce06cf.js";import{C as rt}from"./index.9f5e14d1.js";import{L as J}from"./index.6c529ad4.js";import{I as ut}from"./icon-play.bc9e7aab.js";import{i as mt}from"./icon_exquisite.01ddc5aa.js";import{i as dt}from"./icon_album_active.cb923735.js";import{C as pt}from"./index.b1c0c586.js";import"./auth.6996b3a7.js";import"./routes-common.b13b2b40.js";import"./use-id.b004ff17.js";import"./use-tab-status.bcc0c503.js";import"./use-refs.07204da6.js";import"./index.dc19bc54.js";const At="_albumContainer_1c01r_1",gt="_album_1c01r_1",ht="_albumType_1c01r_19",vt="_main_1c01r_32",ft="_favorite_1c01r_35",_t="_img_1c01r_49",wt="_title_1c01r_60",bt="_model_1c01r_68",yt="_num_1c01r_83";var g={albumContainer:At,album:gt,albumType:ht,main:vt,favorite:ft,img:_t,title:wt,model:bt,num:yt};const Ct="_title_1bbb0_1",St="_cellTitle_1bbb0_8",It="_cellValue_1bbb0_25";var N={title:Ct,cellTitle:St,cellValue:It},E=m({name:"the-music",props:{title:{type:String,default:""}},emits:["detail"],setup(s,{emit:e}){return()=>t(Q,{class:N.title,titleClass:N.cellTitle,title:s.title,border:!1},{value:()=>t("span",{class:N.cellValue,onClick:()=>{e("detail")}},[r("\u66F4\u591A"),t(k,{name:"arrow"},null)])})}}),c=new ct,qt=m({name:"hot-album",props:{album:{type:Array,default:[]}},setup(s){return _(),()=>t(f,null,[s.album.length>0&&t(E,{title:"\u70ED\u95E8\u4E13\u8F91",onDetail:()=>{c.emit("downloadApp")}},null),t("div",{class:g.albumContainer},[s.album.map(e=>t("div",{class:g.album,key:e.id,onClick:()=>{c.emit("downloadApp")}},[t("div",{class:g.main},[e.paymentType==="CHARGE"&&t("span",{class:g.albumType},[r("\u4ED8\u8D39")]),t(l,{class:g.img,src:e.albumCoverUrl},null),t("div",{class:g.model},[t(k,{name:e.favorite?it:lt},null),t("span",{class:g.num},[e.albumFavoriteCount,r("\u4EBA")])])]),t("h4",{class:[g.title,"van-ellipsis"]},[e.albumName])]))])])}});const Bt="_cellGroup_10uju_1",Tt="_infoImg_10uju_12",Et="_valueContent_10uju_18";var I={cellGroup:Bt,infoImg:Tt,valueContent:Et};function Ut(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!T(s)}var Vt=m({name:"info-list",setup(){_();const s=q({platformType:"STUDENT",type:"1",clientType:"STUDENT",page:1,rows:20}),e=q({list:[],dataShow:!0,loading:!1,finished:!1}),a=async()=>{try{const n=await v.post("/api-cms/news/page",{data:{...s}});e.loading=!1;const o=n.data||{};if(e.list.length>0&&o.pageNo===1)return;e.list=e.list.concat(o.rows||[]),e.finished=o.pageNo>=o.totalPage,s.page=o.pageNo+1,e.dataShow=e.list.length>0}catch{e.dataShow=!1,e.finished=!0}};return a(),()=>{let n;return t(f,null,[e.dataShow?t(J,{loading:e.loading,"onUpdate:loading":o=>e.loading=o,finished:e.finished,finishedText:" ",immediateCheck:!1,class:[I.liveList],onLoad:a},{default:()=>[t(rt,{inset:!0,class:e.list.length>0&&I.cellGroup},Ut(n=e.list.map(o=>t(Q,{valueClass:I.valueContent,onClick:()=>{c.emit("downloadApp")}},{icon:()=>t(l,{src:o.coverImage,class:I.infoImg},null),value:()=>t(f,null,[t("h2",{class:"van-multi-ellipsis--l2"},[o.title]),t("p",null,[W(o.createTime,"YYYY\u5E74MM\u6708DD\u65E5")])])})))?n:{default:()=>[n]})]}):t(P,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u70ED\u95E8\u8D44\u8BAF"},null)])}}});const Nt="_swipeType_1yx4c_1",Ft="_swipeTypeShow_1yx4c_17",Mt="_typeSection_1yx4c_20",xt="_typeItem_1yx4c_24",kt="_swipeTypeImg_1yx4c_28",Lt="_typeName_1yx4c_34";var y={swipeType:Nt,swipeTypeShow:Ft,typeSection:Mt,typeItem:xt,swipeTypeImg:kt,typeName:Lt};function K(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!T(s)}var Yt=m({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:s=>{}}},render(){let s;return t(Y,{class:[y.swipeType,this.productList.length>1&&y.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},K(s=this.productList.map(e=>{let a;return t(L,{class:y.typeSection},K(a=e.map(n=>t("div",{class:y.typeItem,onClick:()=>{c.emit("downloadApp")}},[t(l,{class:y.swipeTypeImg,src:n.coverImage,fit:"cover"},null),t("p",{class:y.typeName},[n.title])])))?a:{default:()=>[a]})}))?s:{default:()=>[s]})}});const Rt="_title_1eb2o_1",Gt="_cellTitle_1eb2o_8",Ht="_cellValue_1eb2o_25",Kt="_hotMusic_1eb2o_34",Dt="_swipeItem_1eb2o_34",jt="_swipeChild_1eb2o_34";var F={title:Rt,cellTitle:Gt,cellValue:Ht,hotMusic:Kt,swipeItem:Dt,swipeChild:jt};const Pt="_theSong_qtml0_1",Xt="_item_qtml0_7",zt="_play_qtml0_16",Qt="_iconFine_qtml0_19",Jt="_iconAlbum_qtml0_25",Ot="_content_qtml0_31",Wt="_top_qtml0_34",Zt="_tag_qtml0_39",$t="_user_qtml0_44",te="_name_qtml0_48",ee="_tags_qtml0_58",se="_title_qtml0_69",ae="_singer_qtml0_76";var u={theSong:Pt,item:Xt,play:zt,iconFine:Qt,iconAlbum:Jt,content:Ot,top:Wt,tag:Zt,user:$t,name:te,tags:ee,title:se,singer:ae},ne=m({name:"TheSong",props:{list:{type:Array,default:()=>[]}},emits:["detail"],setup(s,{emit:e}){return _(),()=>t("div",{class:u.theSong},[s.list.map(a=>t("div",{class:u.item,onClick:()=>e("detail",a)},[t("div",{class:u.content},[t("div",{class:u.top},[a.exquisiteFlag===1&&t(l,{src:mt,class:u.iconFine},null),a.albumNums>0&&t(l,{src:dt,class:u.iconAlbum},null),t("span",{class:[u.title,"van-ellipsis"]},[a.musicSheetName]),t("span",{class:[u.singer,"van-ellipsis"]},[r("-"),a.composer])]),t("div",{class:u.user},[a.composer?t("div",{class:u.name},[r("\u4F5C\u66F2\uFF1A"),a.composer]):t("div",{class:u.name},[r("\u4E0A\u4F20\u8005\uFF1A"),a.addName]),t("div",{class:u.tags},[a==null?void 0:a.subjectNames.split(",").map(n=>t("span",null,[n]))])])]),t("div",{style:u.play},[t(k,{name:ut,size:28},null)])]))])}});function oe(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!T(s)}var M=m({name:"music-list",props:{title:{type:String,default:"\u6700\u70ED\u66F2\u76EE"},music:{type:Array,default:()=>[]}},setup(s){_(),X(()=>{n()});const e=B(312),a=B(!1),n=()=>{a.value=!1;const o=document.body.clientWidth>750?750:document.body.clientWidth;e.value=o-63,a.value=!0};return()=>{let o;return t(f,null,[s.music.length>0&&t(E,{title:s.title,onDetail:()=>{c.emit("downloadApp")}},null),t("div",{class:F.hotMusic},[a.value&&t(Y,{showIndicators:!1,loop:!1,width:e.value},oe(o=s.music.map(w=>t(L,{class:F.swipeItem},{default:()=>[t("div",{class:F.swipeChild},[t(ne,{list:w,onDetail:b=>{c.emit("downloadApp")}},null)])]})))?o:{default:()=>[o]})])])}}});const ie="_sageContainer_16d3h_1",le="_sage_16d3h_1",ce="_animation_16d3h_25",re="_header_16d3h_32",ue="_living_16d3h_40",me="_img_16d3h_53",de="_username_16d3h_64",pe="_cert_16d3h_76",Ae="_btn_16d3h_82";var p={sageContainer:ie,sage:le,animation:ce,header:re,living:ue,img:me,username:de,cert:pe,btn:Ae,"van-button--disabled":"_van-button--disabled_16d3h_87"},ge="./assets/bars.d9d69cc5.svg",he=m({name:"recommend-sage",props:{title:{type:String,default:"\u63A8\u8350\u8001\u5E08"},sage:{type:Array,default:()=>[]}},setup(s){return _(),()=>t(f,null,[s.sage.length>0&&t(E,{title:s.title,onDetail:()=>{c.emit("downloadApp")}},null),t("div",{class:p.sageContainer},[s.sage.map(e=>t("div",{class:p.sage,key:e.id,onClick:()=>{c.emit("downloadApp")}},[e.living&&t(l,{src:ge,class:p.animation},null),t("div",{class:p.header},[t(l,{class:p.img,src:e.avatar,fit:"cover"},null),e.living&&t("span",{class:p.living},[r("\u76F4\u64AD\u4E2D")])]),t("p",{class:p.username},[e.username]),t("p",{class:p.cert},[r("\u8BA4\u8BC1\u8001\u5E08")]),t(z,{round:!0,size:"mini",class:p.btn,type:e.watch?"default":"primary",disabled:e.watch,onClick:()=>{c.emit("downloadApp")}},{default:()=>[e.watch?"\u5DF2\u5173\u6CE8":"\u5173\u6CE8"]})]))])])}});const ve="_style_1fq3q_1",fe="_lineContainer_1fq3q_4",_e="_line_1fq3q_4",we="_styleItem_1fq3q_12",be="_styleImg_1fq3q_21",ye="_img_1fq3q_24",Ce="_first_1fq3q_28",Se="_iconVideoPlay_1fq3q_31",Ie="_living_1fq3q_38",qe="_animationContainer_1fq3q_48",Be="_animation_1fq3q_48",Te="_userInfo_1fq3q_67",Ee="_user_1fq3q_67",Ue="_userImg_1fq3q_76",Ve="_lookNum_1fq3q_92";var i={style:ve,lineContainer:fe,line:_e,styleItem:we,styleImg:be,img:ye,first:Ce,iconVideoPlay:Se,living:Ie,animationContainer:qe,animation:Be,userInfo:Te,user:Ee,userImg:Ue,lookNum:Ve},D="./assets/bars2.c3b1c432.svg",j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABANJREFUaEPVWktME0EY/v+hW3wUY6oXHxx8H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EAyEyhqiXxysrKcm9vr7UkdvwyWumNjI86F3m2bWSVlhJWNy9NnjywU8x1EkJcxcScXfIhD/+PmON/lFtO2zzqGQ6rcpr/sONAI4ritp6enksej2eL3aKtyPL690Bj15HS4/G4gsHgXkIIjoyMfFxYWOC3zeUoa4+U3IKjD/WcgOOvVbK54NyLrexEdfbVIifh9MvdTCAcfb2eW/Mc/cCRT8KxT0w5Eo5+5MuRcPQza54OcO5Dd76YcfKnBmtEmWM/9igkLav5uc1vW5R1K5ZRo7YAAAAASUVORK5CYII=",Ne=m({name:"talent-list",setup(){_();const s=q({platformType:"STUDENT",page:1,rows:20}),e=q({list:[],dataShow:!0,loading:!1,finished:!1}),a=async()=>{try{const n=await v.post("/api-student/teacher/stylePage",{data:{...s}});e.loading=!1;const o=n.data||{};if(e.list.length>0&&o.pageNo===1)return;e.list=e.list.concat(o.rows||[]),e.finished=o.pageNo>=o.totalPage,s.page=o.pageNo+1,e.dataShow=e.list.length>0}catch{e.dataShow=!1,e.finished=!0}};return a(),()=>t(f,null,[e.dataShow?t(J,{loading:e.loading,"onUpdate:loading":n=>e.loading=n,finished:e.finished,finishedText:" ",immediateCheck:!1,class:i.style,onLoad:a},{default:()=>[t("div",{class:i.lineContainer},[t("div",{class:i.line},[e.list.map((n,o)=>o%2===0&&t("div",{class:i.styleItem,onClick:()=>{c.emit("downloadApp")}},[t("div",{class:i.styleImg},[t(l,{src:n.cover,fit:"cover",class:[i.img,o===0&&i.first]},null),n.living===1?t("div",{class:i.living},[t("div",{class:i.animationContainer},[t(l,{src:D,class:i.animation},null)]),t("span",null,[r("\u76F4\u64AD\u4E2D")])]):t(l,{src:j,class:i.iconVideoPlay},null)]),t("div",{class:i.userInfo},[t("p",{class:i.user},[t(l,{src:n.avatar,fit:"cover",class:i.userImg},null),t("span",null,[n.username])]),t("p",{class:i.lookNum},[n.browse,r("\u4EBA\u89C2\u770B")])])]))]),t("div",{class:i.line},[e.list.map((n,o)=>o%2===1&&t("div",{class:i.styleItem,onClick:()=>{c.emit("downloadApp")}},[t("div",{class:i.styleImg},[t(l,{src:n.cover,fit:"cover",class:[i.img,o===0&&i.first]},null),n.living===1?t("div",{class:i.living},[t("div",{class:i.animationContainer},[t(l,{src:D,class:i.animation},null)]),t("span",null,[r("\u76F4\u64AD\u4E2D")])]):t(l,{src:j,class:i.iconVideoPlay},null)]),t("div",{class:i.userInfo},[t("p",{class:i.user},[t(l,{src:n.avatar,fit:"cover",class:i.userImg},null),t("span",null,[n.username])]),t("p",{class:i.lookNum},[n.browse,r("\u4EBA\u89C2\u770B")])])]))])])]}):t(P,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u8001\u5E08\u98CE\u91C7"},null)])}});const Fe="_theHomeHeader_z8488_1",Me="_content_z8488_6",xe="_mall_z8488_10",ke="_cart_z8488_15",Le="_searchBox_z8488_21",Ye="_iconSearch_z8488_32";var h={theHomeHeader:Fe,content:Me,mall:xe,cart:ke,searchBox:Le,iconSearch:Ye},Re="./assets/icon-mall.96831ca5.png",Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABLtJREFUWEe9l2toXEUUgM+Zu4kaQVKpVVLKZjMz2bYrRiEpEhHFltJqWpXijxbBNlUQrIoSKkIrFqvS+kb7Q3yB+kPoQ2tBqVLjI7WowUeFxt25s5uIkFCVsk26mN29c2R0d5ndbDebJuT8u/eexzdzzp1zBqEO0Vp3GWN6ELGbiNoRcSERNQLABACMAMBJxlh/KBT6KBwOn6nDZUkFayknk8l1QRA8BQAddTqdZIy96Xne062traP12FQFGBoaam1oaHifiG6ox0kVnQwi7hJC7J3OfgqA1nqlMeYDAFhYw5gAIAcANg215GA2m90ci8VsqqpKGYDWepUx5hMAaHC1icgGOwgAR0Kh0PFIJDKKiNmRkZEF+XyeE9EaItoIAMsroyDiN5OTk6tisVi2GkEJIJFILEPEbwGguULxYGNj4/ZwOJystVQiYr7vb0TE54noKlcXEd8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B1H2PyofqrCviALpRUEiNkrDbrWDLKQagbGk3bnRIiQtCl5micTnZTRhAHeRduqQCOt4YFPkVGRUw1dIw5qxs1e2BjhGhEgZQl5e7gCklijvXjG4rFM+6VtEceSUMoJREGkUeSyXqrW8BKsJj3cpm58wHUIMUe8o4bZObcflAy0Oi+r+Zwt8DdAFbwq558xn7F6kwT18APmEPAAAAAElFTkSuQmCC",De=m({name:"TheHomeHeader",emits:["cart","more","search","headerDom"],setup(s,{emit:e,expose:a}){const n=B(sessionStorage.getItem("navHeight"));(()=>{S({api:"setBarStatus",content:{status:0}}),!n.value&&S({api:"getNavHeight"},b=>{const{content:U}=b,O=U.dpi||2;if(U.navHeight){const R=U.navHeight/O+"";sessionStorage.setItem("navHeight",R),n.value=R}})})();const w=B(null);return X(()=>{Z(()=>{setTimeout(()=>{const{height:b}=$(w);e("headerDom",b)},300)})}),()=>t(pt,{position:"top"},{default:()=>[t("div",{class:h.theHomeHeader,ref:w},[t("div",{style:{height:n.value+"px",background:"#fff"}},null),t("div",{class:h.content},[t("img",{class:h.mall,src:Re},null),t("div",{class:h.searchBox,onClick:()=>e("search")},[t("img",{class:h.iconSearch,src:Ge},null),t("span",null,[r("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),t("img",{class:h.cart,src:He,onClick:()=>e("cart")},null),t("img",{class:h.cart,src:Ke,onClick:()=>e("more")},null)])])]})}});const je="_videoContainer_1jqb5_1",Pe="_videoItem_1jqb5_14",Xe="_viCover_1jqb5_22",ze="_viSection_1jqb5_27",Qe="_viTitle_1jqb5_30",Je="_viUserNum_1jqb5_35",Oe="_subjectName_1jqb5_39",We="_viUser_1jqb5_35",Ze="_viUserName_1jqb5_56";var A={videoContainer:je,videoItem:Pe,viCover:Xe,viSection:ze,viTitle:Qe,viUserNum:Je,subjectName:Oe,viUser:We,viUserName:Ze},$e=m({name:"video-class",props:{video:{type:Array,default:()=>[]}},setup(s){return _(),()=>t(f,null,[s.video.length>0&&t(E,{title:"\u7CBE\u54C1\u89C6\u9891\u8BFE",onDetail:()=>{c.emit("downloadApp")}},null),t("div",{class:A.videoContainer},[s.video.map(e=>t("div",{class:A.videoItem,onClick:()=>{c.emit("downloadApp")}},[t("div",{style:{position:"relative"}},[t(l,{class:A.viCover,fit:"cover",src:e==null?void 0:e.lessonCoverUrl},null),t("span",{class:A.subjectName},[e==null?void 0:e.subjectName])]),t("div",{class:A.viSection},[t("div",{class:[A.viTitle,"van-ellipsis"]},[e==null?void 0:e.videoGroupName]),t("div",{class:A.viUser},[t("div",{class:A.viUserName},[e.teacherName]),t("div",{class:A.viUserNum},[e==null?void 0:e.buyCount,r("\u4EBA\u5728\u5B66")])])])]))])])}});const ts="_hotContent_17auz_1",es="_swipe_17auz_6",ss="_swipeItemImg_17auz_11",as="_homeTabs_17auz_26";var C={hotContent:ts,swipe:es,swipeItemImg:ss,homeTabs:as},ns="./assets/popup-download_bg.7a89cbd7.png";const os="_download_1kf7v_1",is="_downloadBtn_1kf7v_7";var x={download:os,downloadBtn:is},ls=m({name:"download-popup",props:{buttonText:{type:String,default:"\u4E0B\u8F7D\u9177\u4E50\u79C0"}},emits:["confirm"],setup(s,{emit:e}){return()=>t("div",{class:x.download},[t(l,{src:ns,class:x.img},null),t(z,{round:!0,class:x.downloadBtn,onClick:()=>e("confirm")},{default:()=>[s.buttonText]})])}}),cs="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 rs(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!T(s)}var Ns=m({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(),c.on("downloadApp",async()=>{const s=V().orchestraAndroid?"com.cooleshow.student":"ColexiuStudent://";await G({api:"isInstall",content:{type:s}}).then(e=>{const a=e.content;d.orchestraInfo.installStatus=a.installStatus,this.downloadStatus=!0})}),tt("webViewOnResume",()=>{G({api:"getUserAccount"}).then(s=>{const e=s.content;e.phone!==d.orchestraInfo.phone&&(e.unionId?window.location.reload():(d.orchestraInfo.token=e.token.split(" ")[1],d.orchestraInfo.phone=e.phone,d.orchestraInfo.nickname=e.nickname,d.orchestraInfo.avatar=e.avatar,d.orchestraInfo.unionId=e.unionId||0,at(),this.$router.push({path:"/home-auth"})))})}),S({api:"setBarStatus",content:{status:0}})},unmounted(){et("webViewOnResume",()=>{})},methods:{async init(){try{const e=(await v.post("/api-cms/news/app/home",{data:{clientType:"STUDENT"}})).data||{};this.banner=e.banner||[],this.appMenu=this.arrChange(5,e.appMenu||[]);const a=await v.post("/api-student/music/album/list",{data:{albumStatus:1,clientId:"STUDENT"}});this.albumList=a.data.rows||[];const o=(await v.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 w=await v.get("/api-student/teacher/queryHotTeacherList");this.sageList=w.data||[];const b=await v.get("/api-student/courseSchedule/queryLiveAndVideo");this.videoList=b.data.videoList||[]}catch{}setTimeout(()=>{this.loading=!1},500)},arrChange(s,e){const a=[];for(;e.length>0;)a.push(e.splice(0,s));return a},async onRefresh(){await this.init(),setTimeout(()=>{this.loading=!1},500)}},render(){let s;return t("div",{class:C.home},[t(De,{ref:"header",onHeaderDom:e=>{console.log(e,"height"),this.headerHeight=e},onCart:()=>{c.emit("downloadApp")},onSearch:()=>{c.emit("downloadApp")},onMore:()=>{c.emit("downloadApp")}},null),t(nt,{modelValue:this.loading,"onUpdate:modelValue":e=>this.loading=e,"loading-text":"\u6B63\u5728\u5237\u65B0...","success-text":"\u5237\u65B0\u5B8C\u6210",onRefresh:()=>this.onRefresh()},{default:()=>{var e,a,n;return[t("div",{class:C.hotContent},[t(Y,{class:C.swipe,autoplay:3e3},rs(s=this.banner.map(o=>t(L,{onClick:()=>{c.emit("downloadApp")}},{default:()=>[t(l,{class:C.swipeItemImg,src:o.coverImage,fit:"fill"},null)]})))?s:{default:()=>[s]}),t(Yt,{productList:this.appMenu},null)]),t(qt,{album:this.albumList},null),t(M,{title:"\u63A8\u8350\u66F2\u76EE",music:((e=this.musicList)==null?void 0:e.topMusicSheet)||[]},null),t(M,{title:"\u6700\u65B0\u66F2\u76EE",music:((a=this.musicList)==null?void 0:a.newMusicSheet)||[]},null),t(M,{title:"\u6700\u70ED\u66F2\u76EE",music:((n=this.musicList)==null?void 0:n.hotMusicSheet)||[]},null),t(he,{sage:this.sageList},null),t($e,{video:this.videoList},null),t(ot,{shrink:!0,background:"#f6f8f9",class:C.homeTabs,sticky:!0,offsetTop:this.headerHeight+"px"},{default:()=>[t(H,{title:"\u8001\u5E08\u98CE\u91C7",name:"sage"},{default:()=>[t(Ne,null,null)]}),t(H,{title:"\u70ED\u95E8\u8D44\u8BAF",name:"info"},{default:()=>[t(Vt,null,null)]})]})]}}),t(st,{show:this.downloadStatus,"onUpdate:show":e=>this.downloadStatus=e,round:!0,style:{width:"86%",background:"transparent"},closeable:!0,closeIcon:cs},{default:()=>[t(ls,{buttonText:d.orchestraInfo.installStatus?"\u6253\u5F00\u9177\u4E50\u79C0":"\u4E0B\u8F7D\u9177\u4E50\u79C0",onConfirm:()=>{const e=V().orchestraAndroid?"com.cooleshow.student":"ColexiuStudent://";if(d.orchestraInfo.installStatus)S({api:"openApp",content:{type:e}});else{const a=V().orchestraAndroid?window.location.origin+window.location.pathname+"#/download":"https://itunes.apple.com/cn/app/id1626971695?mt=8";S({api:"downloadApp",content:{type:e,url:a}})}}},null)]})])}});export{Ns as default};