<<<<<<<< HEAD:dist/assets/transfer.ba0c4570.js import{d as B,n as E,bf as x,f as l,q as S,c as a,B as T}from"./ResizeObserver.es.baf4a4ed.js";import{s as U,t as b,m as v,a as n}from"./manage-center.3e62a754.js";import{w as P}from"./wx_bg.3aff1fb2.js";import{I as d}from"./index.ed9574cc.js";var M=B({name:"download-transfer",data(){return{wxStatus:!1,type:"student",androidUrl:"",buttonText:"\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF"}},async mounted(){const{pn:t,url:e,action:h,pageTag:f,...w}=this.$route.query,{origin:y,pathname:g}=location;let s=g,i="BandMusicTeam://linkUrl=",r="orchestrastudent://html:8888/SplashActivity?url=",o="android-student";t==="s"?(this.type="student",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF",s="/orchestra-student/",i="BandMusicTeam://linkUrl=",r="orchestrastudent://html:8888/SplashActivity?url=",o="android-student"):t==="t"?(this.type="teacher",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u4F34\u5B66\u7AEF",s="/orchestra-teacher/",i="BandMusicTeamTeacher://linkUrl=",r="orchestrateacher://html:8888/SplashActivity?url=",o="android-student"):t==="m"&&(this.type="manage",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF",s="/orchestra-school/",i="BandMusicTeamManager://linkUrl=",r="orchestramanager://html:8888/SplashActivity?url=",o="android-school");try{const{data:A}=await E.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:o,status:"history"}});this.androidUrl=A.downloadUrl}catch{}document.title=this.buttonText;let c=y+s+"#/";if(!e&&!h)return;const p=x.stringify({...w});c+=e+(p?"?"+p:"");const u={url:c,action:h||"h5",pageTag:f||1},m=encodeURIComponent(JSON.stringify(u));console.log(u,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=i+m:l().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=r+m:S("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{onDownload(){if(l().weixin){this.wxStatus=!0;return}let t="",e="";location.origin.indexOf("online.lexiaoya.cn")>-1?this.type==="student"?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",e=this.androidUrl):this.type==="teacher"?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E4%BC%B4%E5%AD%A6%E7%AB%AF/id1670584741?uo=4",e=this.androidUrl):this.type==="manage"&&(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4",e=this.androidUrl):this.type==="student"?(t="https://www.pgyer.com/2Wg2",e=this.androidUrl):this.type==="teacher"?(t="https://www.pgyer.com/v5yB",e=this.androidUrl):this.type==="manage"&&(t="https://www.pgyer.com/DGrR",e=this.androidUrl),l().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):window.location.href=e}},render(){return a("div",{class:[n.downloadContainer]},[this.type!=="teacher"&&this.type!=="manage"&&a(d,{src:U},null),this.type==="teacher"&&a(d,{src:b},null),this.type==="manage"&&a(d,{src:v},null),a("div",{class:n.buttonGroup},[a(T,{round:!0,size:"large",color:"#FF8057",class:n.btn,onClick:this.onDownload},{default:()=>[this.buttonText]})]),this.wxStatus&&a("div",{class:n.wxpopup,onClick:()=>{this.wxStatus=!1}},[a("img",{src:P,alt:""},null)])])}});export{M as default}; ======== import{d as B,n as E,bf as x,f as l,q as S,c as a,B as T}from"./ResizeObserver.es.711e87db.js";import{s as U,t as b,m as v,a as n}from"./manage-center.3e62a754.js";import{w as P}from"./wx_bg.3aff1fb2.js";import{I as d}from"./index.02d06093.js";var M=B({name:"download-transfer",data(){return{wxStatus:!1,type:"student",androidUrl:"",buttonText:"\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF"}},async mounted(){const{pn:t,url:e,action:h,pageTag:f,...w}=this.$route.query,{origin:y,pathname:g}=location;let s=g,i="BandMusicTeam://linkUrl=",r="orchestrastudent://html:8888/SplashActivity?url=",o="android-student";t==="s"?(this.type="student",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF",s="/orchestra-student/",i="BandMusicTeam://linkUrl=",r="orchestrastudent://html:8888/SplashActivity?url=",o="android-student"):t==="t"?(this.type="teacher",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u4F34\u5B66\u7AEF",s="/orchestra-teacher/",i="BandMusicTeamTeacher://linkUrl=",r="orchestrateacher://html:8888/SplashActivity?url=",o="android-student"):t==="m"&&(this.type="manage",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF",s="/orchestra-school/",i="BandMusicTeamManager://linkUrl=",r="orchestramanager://html:8888/SplashActivity?url=",o="android-school");try{const{data:A}=await E.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:o,status:"history"}});this.androidUrl=A.downloadUrl}catch{}document.title=this.buttonText;let c=y+s+"#/";if(!e&&!h)return;const p=x.stringify({...w});c+=e+(p?"?"+p:"");const u={url:c,action:h||"h5",pageTag:f||1},m=encodeURIComponent(JSON.stringify(u));console.log(u,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=i+m:l().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=r+m:S("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{onDownload(){if(l().weixin){this.wxStatus=!0;return}let t="",e="";location.origin.indexOf("online.lexiaoya.cn")>-1?this.type==="student"?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",e=this.androidUrl):this.type==="teacher"?(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E4%BC%B4%E5%AD%A6%E7%AB%AF/id1670584741?uo=4",e=this.androidUrl):this.type==="manage"&&(t="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2%E7%AE%A1%E7%90%86%E7%AB%AF/id1671473981?uo=4",e=this.androidUrl):this.type==="student"?(t="https://www.pgyer.com/2Wg2",e=this.androidUrl):this.type==="teacher"?(t="https://www.pgyer.com/v5yB",e=this.androidUrl):this.type==="manage"&&(t="https://www.pgyer.com/DGrR",e=this.androidUrl),l().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):window.location.href=e}},render(){return a("div",{class:[n.downloadContainer]},[this.type!=="teacher"&&this.type!=="manage"&&a(d,{src:U},null),this.type==="teacher"&&a(d,{src:b},null),this.type==="manage"&&a(d,{src:v},null),a("div",{class:n.buttonGroup},[a(T,{round:!0,size:"large",color:"#FF8057",class:n.btn,onClick:this.onDownload},{default:()=>[this.buttonText]})]),this.wxStatus&&a("div",{class:n.wxpopup,onClick:()=>{this.wxStatus=!1}},[a("img",{src:P,alt:""},null)])])}});export{M as default}; >>>>>>>> iteration-20241018-courseware:dist/assets/transfer.6f0a7f21.js