1 |
- import{d as r,n as o,y as p,f as a,j as t,N as d,A as i,B as l}from"./ResizeObserver.es.f28023e0.js";import{w as h}from"./wx_bg.2f1a3efe.js";const w="_inviteSuccess_101db_1",v="_backIcon_101db_6",b="_h2_101db_19",f="_tips_101db_25",g="_btnDownload_101db_31",_="_wxpopup_101db_35";var s={inviteSuccess:w,backIcon:v,h2:b,tips:f,btnDownload:g,wxpopup:_},m="./assets/success_tips.737b42b1.png",k=r({name:"inviteSuccess",data(){return{wxStatus:!1,androidUrl:"",navBarHeight:0}},async mounted(){o({api:"getNavHeight"},n=>{const{content:e}=n,u=e.dpi||2;if(e.navHeight){const c=e.navHeight/u;this.navBarHeight=c}});try{const{data:n}=await p.get("/api-student/open/appVersionInfo/queryLatestByPlatform",{params:{platform:"android-student",status:"history"}});this.androidUrl=n.downloadUrl}catch{}},methods:{onBack(){a().isApp?o({api:"goBack"}):this.$router.back()},onDownload(){if(a().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},[a().isApp&&t(d,{name:"arrow-left",class:s.backIcon,style:{top:`calc(${this.navBarHeight}px + 12px)`},onClick:this.onBack},null),t("img",{src:m},null),t("p",{class:s.h2},[i("\u606D\u559C\u4F60\u6CE8\u518C\u6210\u529F")]),t("p",{class:s.tips},[i("\u4E0B\u8F7D\u9177\u4E50\u79C0APP\u5F00\u542F\u5668\u4E50\u5B66\u4E60\u4E4B\u65C5\uFF01")]),!a().isApp&&t("div",{class:"btnGroup"},[t(l,{type:"primary",round:!0,class:s.btnDownload,onClick:this.onDownload},{default:()=>[i("\u4E0B\u8F7D\u9177\u4E50\u79C0")]})]),this.wxStatus&&t("div",{class:s.wxpopup,onClick:()=>{this.wxStatus=!1}},[t("img",{src:h,alt:""},null)])])}});export{k as default};
|