transfer.feef0bbe.js 3.1 KB

12
  1. import{d as A,o as d,e as m,c as s,B as E}from"./index.ffe80dbe.js";import{s as B,t as k,m as x,a as n,w as v}from"./manage-center.56576989.js";import{q as T}from"./index.339fc024.js";import{I as r}from"./index.7e972106.js";var I=A({name:"download-transfer",data(){return{wxStatus:!1,type:"student",buttonText:"\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u751F\u7AEF"}},mounted(){const{pn:t,url:e,action:l,pageTag:g,...w}=this.$route.query,{origin:f,pathname:y}=location;let a=y,i="BandMusicTeam://linkUrl=",o="orchestrastudent://html:8888/SplashActivity?url=";t==="s"?(this.type="student",this.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u751F\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=");let p=f+a+"#/";if(!e&&!l)return;const c=T.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:B},null),this.type==="teacher"&&s(r,{src:k},null),this.type==="manage"&&s(r,{src:x},null),s("div",{class:n.buttonGroup},[s(E,{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:v,alt:""},null)])])}});export{I as default};