download.4a56b511.js 1.9 KB

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