|
@@ -1,7 +1,7 @@
|
|
import { defineComponent } from 'vue'
|
|
import { defineComponent } from 'vue'
|
|
import styles from './index.module.less'
|
|
import styles from './index.module.less'
|
|
import successTips from '../images/success_tips.png'
|
|
import successTips from '../images/success_tips.png'
|
|
-import { Button } from 'vant'
|
|
|
|
|
|
+import { Button, Icon } from 'vant'
|
|
import { browser } from '@/helpers/utils'
|
|
import { browser } from '@/helpers/utils'
|
|
|
|
|
|
import wxBg from '../../down-load/images/wx_bg.png'
|
|
import wxBg from '../../down-load/images/wx_bg.png'
|
|
@@ -12,10 +12,19 @@ export default defineComponent({
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
wxStatus: false,
|
|
wxStatus: false,
|
|
- androidUrl: ''
|
|
|
|
|
|
+ androidUrl: '',
|
|
|
|
+ navBarHeight: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
|
|
+ postMessage({ api: 'getNavHeight' }, (res: any) => {
|
|
|
|
+ const { content } = res as any
|
|
|
|
+ const dpi = content.dpi || 2
|
|
|
|
+ if (content.navHeight) {
|
|
|
|
+ const navHeight = content.navHeight / dpi
|
|
|
|
+ this.navBarHeight = navHeight
|
|
|
|
+ }
|
|
|
|
+ })
|
|
try {
|
|
try {
|
|
const { data } = await request.get(
|
|
const { data } = await request.get(
|
|
'/api-student/open/appVersionInfo/queryLatestByPlatform',
|
|
'/api-student/open/appVersionInfo/queryLatestByPlatform',
|
|
@@ -32,6 +41,13 @@ export default defineComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onBack() {
|
|
|
|
+ if (browser().isApp) {
|
|
|
|
+ postMessage({ api: 'goBack' })
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.back()
|
|
|
|
+ }
|
|
|
|
+ },
|
|
onDownload() {
|
|
onDownload() {
|
|
if (browser().weixin) {
|
|
if (browser().weixin) {
|
|
this.wxStatus = true
|
|
this.wxStatus = true
|
|
@@ -50,6 +66,17 @@ export default defineComponent({
|
|
render() {
|
|
render() {
|
|
return (
|
|
return (
|
|
<div class={styles.inviteSuccess}>
|
|
<div class={styles.inviteSuccess}>
|
|
|
|
+ {browser().isApp && (
|
|
|
|
+ <Icon
|
|
|
|
+ name="arrow-left"
|
|
|
|
+ class={styles.backIcon}
|
|
|
|
+ style={{
|
|
|
|
+ top: `calc(${this.navBarHeight}px + 12px)`
|
|
|
|
+ }}
|
|
|
|
+ onClick={this.onBack}
|
|
|
|
+ />
|
|
|
|
+ )}
|
|
|
|
+
|
|
<img src={successTips} />
|
|
<img src={successTips} />
|
|
|
|
|
|
<p class={styles.h2}>恭喜你注册成功</p>
|
|
<p class={styles.h2}>恭喜你注册成功</p>
|