import{d as A,E as d,R as u,a as o,C as x}from"./index-74aaacd7.js";import{s as S,a as s,w as y}from"./student-center-0b9ea657.js";import{q as k}from"./base-aba1ba3e.js";import{I as v}from"./index-418977f3.js";const C=A({name:"download-transfer",data(){return{wxStatus:!1}},mounted(){const{pn:e,url:t,action:n,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&&!n)return;const r=k.stringify({...p});i+=t+(r?"?"+r:"");const a={url:i,action:n||"h5",pageTag:c||1},l=encodeURIComponent(JSON.stringify(a));console.log(a,"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 e="",t="";location.origin.indexOf("kt.colexiu.com")>-1?(e="https://apps.apple.com/us/app/%E9%9F%B3%E4%B9%90%E6%95%B0%E5%AD%97%E8%AF%BE%E5%A0%82/id6452725878",t="https://appstore.ks3-cn-beijing.ksyuncs.com/kt_cooleshow_student.apk"):(e="https://www.pgyer.com/dzRRNN",t="https://www.pgyer.com/2meenh"),u().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?e&&(window.location.href=e):/(Android)/i.test(navigator.userAgent)?window.location.href=t:d("请用手机或移动设备打开")}},render(){return o("div",{class:[s.downloadContainer]},[o(v,{src:S},null),o("div",{class:s.buttonGroup},[o(x,{round:!0,size:"large",class:s.btn,onClick:this.onDownload},null)]),this.wxStatus&&o("div",{class:s.wxpopup,onClick:()=>{this.wxStatus=!1}},[o("img",{src:y,alt:""},null)])])}});export{C as default};