import{s,_ as d,a as u,b as p,c,d as m}from"./index.module.f2f46766.js";import{_}from"./wx_bg.993c33e7.js";import{e as l}from"./index.3d95a92c.js";import{d as f,T as h,a as t,B as w,j as b}from"./vendor.a0144ce9.js";const n=a=>{const o=`./images/${a}`;return{"./images/bg.png":d,"./images/logo.png":u,"./images/student_bg.png":p,"./images/teacher_bg.png":c,"./images/teacher_logo.png":m,"./images/wx_bg.png":_}[o].default};var y=f({name:"transfer",data(){return{wxStatus:!1}},mounted(){const{origin:a,pathname:o}=location;let i=a+o+"#/",e=this.$route.query;if(!e.url&&!e.action)return;i+=e.url;const r={url:i,action:e.action||"h5",pageTag:e.pageTag||1,params:{}},g=encodeURIComponent(JSON.stringify(r));/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${g}`:/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${JSON.stringify(r)}`:h("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{downLoadApp(){if(l().weixin){this.wxStatus=!0;return}l().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://itunes.apple.com/cn/app/id1626971695?mt=8":/(Android)/i.test(navigator.userAgent)?window.location.href="https://appstore.ks3-cn-beijing.ksyuncs.com/clx-student-domain.apk":this.$toast("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")}},render(){return t("div",{class:s.downContainer},[t("div",{class:s.logo},[t("img",{src:n("logo.png"),alt:""},null)]),t("div",{class:s.down},[t(w,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:()=>[b("\u70B9\u51FB\u4E0B\u8F7DApp")]})]),t("div",{class:s.mainImg},[t("img",{src:n("student_bg.png"),alt:""},null)]),this.wxStatus&&t("div",{class:s.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:n("wx_bg.png"),alt:""},null)])])}});export{y as default,n as getAssetsHomeFile};
