transfer.c55d201d.js 3.1 KB

1
  1. import{d as A,bi as E,o as d,f as m,c as s,B}from"./index.5f7ffb46.js";import{s as x,t as b,m as k,a as n,w as T}from"./manage-center.bcfe16e6.js";import{I as r}from"./index.276a5d68.js";var C=A({name:"download-transfer",data(){return{wxStatus:!1,type:"student",buttonText:"\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF"}},mounted(){const{pn:t,url:e,action:l,pageTag:g,...w}=this.$route.query,{origin:y,pathname:f}=location;let a=f,i="BandMusicTeam://linkUrl=",o="orchestrastudent://html:8888/SplashActivity?url=";t==="s"?(this.type="student",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF",a="/orchestra-student/",i="BandMusicTeam://linkUrl=",o="orchestrastudent://html:8888/SplashActivity?url="):t==="t"?(this.type="teacher",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u4F34\u5B66\u7AEF",a="/orchestra-teacher/",i="BandMusicTeamTeacher://linkUrl=",o="orchestrateacher://html:8888/SplashActivity?url="):t==="m"&&(this.type="manage",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF",a="/orchestra-school/",i="BandMusicTeamManager://linkUrl=",o="orchestramanager://html:8888/SplashActivity?url="),document.title=this.buttonText;let p=y+a+"#/";if(!e&&!l)return;const c=E.stringify({...w});p+=e+(c?"?"+c:"");const h={url:p,action:l||"h5",pageTag:g||1},u=encodeURIComponent(JSON.stringify(h));console.log(h,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=i+u:/(Android)/i.test(navigator.userAgent)?window.location.href=o+u:d("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{onDownload(){if(m().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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk"):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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-teacher.apk"):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="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-manager.apk"):this.type==="student"?(t="https://www.pgyer.com/2Wg2",e="https://www.pgyer.com/9NBz"):this.type==="teacher"?(t="https://www.pgyer.com/v5yB",e="https://www.pgyer.com/BQeE"):this.type==="manage"&&(t="https://www.pgyer.com/DGrR",e="https://www.pgyer.com/TEWv"),m().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?t&&(window.location.href=t):/(Android)/i.test(navigator.userAgent)?window.location.href=e:d("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")}},render(){return s("div",{class:[n.downloadContainer]},[this.type!=="teacher"&&this.type!=="manage"&&s(r,{src:x},null),this.type==="teacher"&&s(r,{src:b},null),this.type==="manage"&&s(r,{src:k},null),s("div",{class:n.buttonGroup},[s(B,{round:!0,size:"large",color:"#FF8057",class:n.btn,onClick:this.onDownload},{default:()=>[this.buttonText]})]),this.wxStatus&&s("div",{class:n.wxpopup,onClick:()=>{this.wxStatus=!1}},[s("img",{src:T,alt:""},null)])])}});export{C as default};