index.725d62ed.js 2.2 KB

1
  1. import{d as c,ah as u,r as l,$ as d,c as s,B as w,f as p,o as m}from"./index.5f7ffb46.js";import{s as y,t as g,m as f,a as o,w as h}from"./manage-center.bcfe16e6.js";import{I as n}from"./index.276a5d68.js";var B=c({name:"download",setup(){const i=u(),t=l({wxStatus:!1,type:"student",buttonText:"\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF"}),r=()=>{if(p().weixin){t.wxStatus=!0;return}let e="",a="";location.origin.indexOf("online.lexiaoya.cn")>-1?t.type==="student"?(e="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"):t.type==="teacher"?(e="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",a="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-teacher.apk"):t.type==="manage"&&(e="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",a="https://appstore.ks3-cn-beijing.ksyuncs.com/gyt-manager.apk"):t.type==="student"?(e="https://www.pgyer.com/2Wg2",a="https://www.pgyer.com/9NBz"):t.type==="teacher"?(e="https://www.pgyer.com/v5yB",a="https://www.pgyer.com/BQeE"):t.type==="manage"&&(e="https://www.pgyer.com/DGrR",a="https://www.pgyer.com/TEWv"),p().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?e&&(window.location.href=e):/(Android)/i.test(navigator.userAgent)?window.location.href=a:m("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")};return d(()=>{const e=i.query.type;t.type=e||"student",e==="student"?t.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u5B66\u5458\u7AEF":e==="teacher"?t.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u4F34\u5B66\u7AEF":e==="manage"&&(t.buttonText="\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF"),document.title=t.buttonText}),()=>s("div",{class:[o.downloadContainer]},[t.type!=="teacher"&&t.type!=="manage"&&s(n,{src:y},null),t.type==="teacher"&&s(n,{src:g},null),t.type==="manage"&&s(n,{src:f},null),s("div",{class:o.buttonGroup},[s(w,{round:!0,size:"large",color:"#FF8057",class:o.btn,onClick:r},{default:()=>[t.buttonText]})]),t.wxStatus&&s("div",{class:o.wxpopup,onClick:()=>{t.wxStatus=!1}},[s("img",{src:h,alt:""},null)])])}});export{B as default};