1 |
- import{s as e,_ as n,a as d,b as p,c as l,d as r}from"./index.module.f2f46766.js";import{_ as g}from"./wx_bg.993c33e7.js";import{e as o}from"./index.81f6b5d6.js";import{d as u,a as t,B as m,j as c}from"./vendor.555770a3.js";const s=a=>{const i=`./images/${a}`;return{"./images/bg.png":n,"./images/logo.png":d,"./images/student_bg.png":p,"./images/teacher_bg.png":l,"./images/teacher_logo.png":r,"./images/wx_bg.png":g}[i].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\u5B66\u9662\u4E0B\u8F7D":this.type==="teacher"&&(document.title="\u9177\u4E50\u79C0\u4E0B\u8F7D")},methods:{downLoadApp(){if(o().weixin){this.wxStatus=!0;return}o().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?(this.type=="student"||this.type=="teacher")&&(window.location.href="https://apps.apple.com/cn/app/%E7%AE%A1%E4%B9%90%E8%BF%B7/id1487054260"):/(Android)/i.test(navigator.userAgent)?(this.type=="student"||this.type=="teacher")&&(window.location.href="https://sj.qq.com/myapp/detail.htm?apkName=com.daya.studaya_android"):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(m,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:()=>[c("\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{b as default,s as getAssetsHomeFile};
|