import{s as o,_ as a,a as l,b as p,c as r,d}from"./index.module.fb717104.js";import{_ as g}from"./wx_bg.993c33e7.js";import{b as n}from"./index.a9c80450.js";import{d as u,a as t,B as c,j as m}from"./vendor.cd162bf7.js";const i=e=>{const s=`./images/${e}`;return{"./images/bg.png":a,"./images/logo.png":l,"./images/student_bg.png":p,"./images/teacher_bg.png":r,"./images/teacher_logo.png":d,"./images/wx_bg.png":g}[s].default};var b=u({name:"download",data(){return{type:this.$route.query.type||"student",wxStatus:!1}},mounted(){this.type==="student"?document.title="\u9177\u4E50\u79C0\u4E0B\u8F7D":this.type==="teacher"&&(document.title="\u9177\u4E50\u79C0\u5B66\u9662\u4E0B\u8F7D")},methods:{downLoadApp(){if(n().weixin){this.wxStatus=!0;return}let e="",s="";location.origin.indexOf("online.colexiu.com")>-1?this.type==="student"?(e="https://itunes.apple.com/cn/app/id1626971695?mt=8",s="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk"):this.type==="teacher"&&(e="https://itunes.apple.com/cn/app/id1626971149?mt=8",s="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-teacher-domain.apk"):this.type==="student"?(e="https://www.pgyer.com/powy",s="https://www.pgyer.com/70e7"):(e="https://www.pgyer.com/iO0m",s="https://www.pgyer.com/N2U3"),n().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=e:/(Android)/i.test(navigator.userAgent)?window.location.href=s:this.$toast("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")}},render(){return t("div",{class:o.downContainer},[t("div",{class:o.logo},[this.type==="student"?t("img",{src:i("logo.png"),alt:""},null):t("img",{src:i("teacher_logo.png"),alt:""},null)]),t("div",{class:o.down},[t(c,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:()=>[m("\u70B9\u51FB\u4E0B\u8F7DApp")]})]),t("div",{class:o.mainImg},[this.type==="student"?t("img",{src:i("student_bg.png"),alt:""},null):t("img",{src:i("teacher_bg.png"),alt:""},null)]),this.wxStatus&&t("div",{class:o.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:i("wx_bg.png"),alt:""},null)])])}});export{b as default,i as getAssetsHomeFile};
