import{d as y,E as d,R as u,a as e,C as A}from"./index-971588a5.js";import{s as x,a as n,w as S}from"./student-center-c423a8f7.js";import{q as v}from"./base-aba1ba3e.js";import{I as P}from"./index-96cc08e7.js";const B=y({name:"download-transfer",data(){return{wxStatus:!1}},mounted(){const{pn:o,url:t,action:s,pageTag:c,...p}=this.$route.query,{origin:m,pathname:w}=location;let f=w,g="BandInstrumentTeam://linkUrl=",h="colexiukt://html:8888/SplashActivity?url=",i=m+f+"#/";if(!t&&!s)return;const a=v.stringify({...p});i+=t+(a?"?"+a:"");const r={url:i,action:s||"h5",pageTag:c||1},l=encodeURIComponent(JSON.stringify(r));console.log(r,"iosStr"),/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=g+l:/(Android)/i.test(navigator.userAgent)?window.location.href=h+l:d("请用手机或移动设备打开")},methods:{onDownload(){if(u().weixin){this.wxStatus=!0;return}let o="",t="";location.origin.indexOf("online.lexiaoya.cn")>-1?(o="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",t="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk"):(o="https://www.pgyer.com/dzRRNN",t="https://www.pgyer.com/2meenh"),u().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?o&&(window.location.href=o):/(Android)/i.test(navigator.userAgent)?window.location.href=t:d("请用手机或移动设备打开")}},render(){return e("div",{class:[n.downloadContainer]},[e(P,{src:x},null),e("div",{class:n.buttonGroup},[e(A,{round:!0,size:"large",class:n.btn,onClick:this.onDownload},null)]),this.wxStatus&&e("div",{class:n.wxpopup,onClick:()=>{this.wxStatus=!1}},[e("img",{src:S,alt:""},null)])])}});export{B as default};
