import{_ as u,a as p,b as m,c,d as _,s as o}from"./index.module.8a289a7a.js";import{_ as f}from"./wx_bg.2f1a3efe.js";import{d as h,y as w,f as d,j as t,B as b,A as y}from"./ResizeObserver.es.b7226882.js";const r=e=>{const s=`./images/${e}`;return{"./images/bg.png":u,"./images/logo.png":p,"./images/student_bg.png":m,"./images/teacher_bg.png":c,"./images/teacher_logo.png":_,"./images/wx_bg.png":f}[s].default};var A=h({name:"transfer",data(){return{wxStatus:!1,androidUrl:""}},async mounted(){try{const{data:g}=await w.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-student",status:"history"}});this.androidUrl=g.downloadUrl}catch{}const{origin:e,pathname:s}=location;let i=e+s+"#/";const a=this.$route.query;if(!a.url&&!a.action)return;i+=a.url;const n={url:i,action:a.action||"h5",pageTag:a.pageTag||1};a.liveRoomId&&(n.params="",n.params=JSON.stringify({liveRoomId:a.liveRoomId}));const l=encodeURIComponent(JSON.stringify(n));/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${l}`:window.location.href=`colexiustudent://html:8888/SplashActivity?url=${l}`},methods:{downLoadApp(){if(d().weixin){this.wxStatus=!0;return}d().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://itunes.apple.com/cn/app/id1626971695?mt=8":window.location.href=this.androidUrl}},render(){return t("div",{class:o.downContainer},[t("div",{class:o.logo},[t("img",{src:r("logo.png"),alt:""},null)]),t("div",{class:o.down},[t(b,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:()=>[y("\u70B9\u51FB\u4E0B\u8F7DApp")]})]),t("div",{class:o.mainImg},[t("img",{src:r("student_bg.png"),alt:""},null)]),this.wxStatus&&t("div",{class:o.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:r("wx_bg.png"),alt:""},null)])])}});export{A as default,r as getAssetsHomeFile};