download.4ab519bd.js 2.0 KB

1
  1. import{_ as a,a as l,b as p,c as r,d,s as o}from"./index.module.d7fec199.js";import{_ as g}from"./wx_bg.3aa8574a.js";import{d as u,b as n,i as t,B as c,A as m}from"./index.6b776f4b.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 f=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{f as default,i as getAssetsHomeFile};