1 |
- import{_ as u,a as p,b as m,c,d as _,s as e}from"./index.module.8a406a30.js";import{_ as f}from"./wx_bg.2f1a3efe.js";import{d as h,w,f as o,T as b,j as t,B as v,z as y}from"./index.394decd7.js";const l=s=>{const i=`./images/${s}`;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}[i].default};var P=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:s,pathname:i}=location;let n=s+i+"#/";const a=this.$route.query;if(!a.url&&!a.action)return;n+=a.url;const r={url:n,action:a.action||"h5",pageTag:a.pageTag||1};a.liveRoomId&&(r.params="",r.params=JSON.stringify({liveRoomId:a.liveRoomId}));const d=encodeURIComponent(JSON.stringify(r));/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href=`ColexiuStudent://linkUrl=${d}`:o().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=`colexiustudent://html:8888/SplashActivity?url=${d}`:b("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")},methods:{downLoadApp(){if(o().weixin){this.wxStatus=!0;return}o().ios||/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?window.location.href="https://itunes.apple.com/cn/app/id1626971695?mt=8":o().huawei||/(Android)/i.test(navigator.userAgent)?window.location.href=this.androidUrl: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},[t("img",{src:l("logo.png"),alt:""},null)]),t("div",{class:e.down},[t(v,{type:"primary",round:!0,plain:!0,onClick:this.downLoadApp},{default:()=>[y("\u70B9\u51FB\u4E0B\u8F7DApp")]})]),t("div",{class:e.mainImg},[t("img",{src:l("student_bg.png"),alt:""},null)]),this.wxStatus&&t("div",{class:e.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:l("wx_bg.png"),alt:""},null)])])}});export{P as default,l as getAssetsHomeFile};
|