1 |
- import{d as E,m as x,bd as S,f as n,o as f,c as a,B as T}from"./index.f2940478.js";import{s as U,t as v,m as b,a as l}from"./manage-center.3e62a754.js";import{w as P}from"./wx_bg.3aff1fb2.js";import{I as d}from"./index.a76f4d1e.js";var M=E({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:g,...w}=this.$route.query,{origin:y,pathname:A}=location;let s=A,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:B}=await x.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:o,status:"history"}});this.androidUrl=B.downloadUrl}catch{}document.title=this.buttonText;let c=y+s+"#/";if(!e&&!h)return;const u=S.stringify({...w});c+=e+(u?"?"+u:"");const p={url:c,action:h||"h5",pageTag:g||1},m=encodeURIComponent(JSON.stringify(p));console.log(p,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=i+m:n().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=r+m:f("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{onDownload(){if(n().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),n().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):n().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=e:f("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")}},render(){return a("div",{class:[l.downloadContainer]},[this.type!=="teacher"&&this.type!=="manage"&&a(d,{src:U},null),this.type==="teacher"&&a(d,{src:v},null),this.type==="manage"&&a(d,{src:b},null),a("div",{class:l.buttonGroup},[a(T,{round:!0,size:"large",color:"#FF8057",class:l.btn,onClick:this.onDownload},{default:()=>[this.buttonText]})]),this.wxStatus&&a("div",{class:l.wxpopup,onClick:()=>{this.wxStatus=!1}},[a("img",{src:P,alt:""},null)])])}});export{M as default};
|