import{d as r,x as l,a as t,C as d,R as n,E as u}from"./index-971588a5.js";import{s as p,a as e,w as c}from"./student-center-c423a8f7.js";import{I as w}from"./index-96cc08e7.js";const x=r({name:"download",setup(){const o=l({wxStatus:!1}),i=()=>{if(n().weixin){o.wxStatus=!0;return}let s="",a="";location.origin.indexOf("online.lexiaoya.cn")>-1?(s="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E5%9B%A2/id1671474346?uo=4 ",a="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-student.apk"):(s="https://www.pgyer.com/dzRRNN",a="https://www.pgyer.com/2meenh"),n().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?s&&(window.location.href=s):/(Android)/i.test(navigator.userAgent)?window.location.href=a:u("请用手机或移动设备打开")};return()=>t("div",{class:[e.downloadContainer]},[t(w,{src:p},null),t("div",{class:e.buttonGroup},[t(d,{round:!0,size:"large",class:e.btn,onClick:i},null)]),o.wxStatus&&t("div",{class:e.wxpopup,onClick:()=>{o.wxStatus=!1}},[t("img",{src:c,alt:""},null)])])}});export{x as default};
