import{_ as d,a as u,b as p,c,d as m,s}from"./index.module.d7fec199.js";import{_}from"./wx_bg.3aa8574a.js";import{d as f,T as h,b as g,i as t,B as w,A as b}from"./index.7994470a.js";const r=o=>{const a=`./images/${o}`;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":_}[a].default};var S=f({name:"transfer",data(){return{wxStatus:!1}},mounted(){const{origin:o,pathname:a}=location;let i=o+a+"#/";const e=this.$route.query;if(!e.url&&!e.action)return;i+=e.url;const n={url:i,action:e.action||"h5",pageTag:e.pageTag||1};e.liveRoomId&&(n.params="",n.params=JSON.stringify({liveRoomId:e.liveRoomId}));const l=encodeURIComponent(JSON.stringify(n));/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${l}`:/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${l}`:h("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{downLoadApp(){if(g().weixin){this.wxStatus=!0;return}g().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:r("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:r("student_bg.png"),alt:""},null)]),this.wxStatus&&t("div",{class:s.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:r("wx_bg.png"),alt:""},null)])])}});export{S as default,r as getAssetsHomeFile};
