import{d as n,w as i,f as e,j as t,z as a,B as u}from"./index.4f40e5e1.js";import{w as r}from"./wx_bg.2f1a3efe.js";const d="_inviteSuccess_1k1g9_1",p="_h2_1k1g9_10",c="_tips_1k1g9_16",l="_btnDownload_1k1g9_22",w="_wxpopup_1k1g9_26";var s={inviteSuccess:d,h2:p,tips:c,btnDownload:l,wxpopup:w},h="./assets/success_tips.737b42b1.png",_=n({name:"inviteSuccess",data(){return{wxStatus:!1,androidUrl:""}},async mounted(){try{const{data:o}=await i.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-student",status:"history"}});this.androidUrl=o.downloadUrl}catch{}},methods:{onDownload(){if(e().weixin){this.wxStatus=!0;return}/(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=this.androidUrl:this.$toast("\u8BF7\u7528\u624B\u673A\u6216\u79FB\u52A8\u8BBE\u5907\u6253\u5F00")}},render(){return t("div",{class:s.inviteSuccess},[t("img",{src:h},null),t("p",{class:s.h2},[a("\u606D\u559C\u4F60\u6CE8\u518C\u6210\u529F")]),t("p",{class:s.tips},[a("\u4E0B\u8F7D\u9177\u4E50\u79C0APP\u5F00\u542F\u5668\u4E50\u5B66\u4E60\u4E4B\u65C5\uFF01")]),!e().isApp&&t("div",{class:"btnGroup"},[t(u,{type:"primary",round:!0,class:s.btnDownload,onClick:this.onDownload},{default:()=>[a("\u4E0B\u8F7D\u9177\u4E50\u79C0")]})]),this.wxStatus&&t("div",{class:s.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:r,alt:""},null)])])}});export{_ as default};
