Skip to content

Commit

Permalink
Merge pull request #1287 from williamchong007/feature/migrate_cta
Browse files Browse the repository at this point in the history
 💄 Add missing getapp page
  • Loading branch information
williamchong authored Nov 22, 2019
2 parents 7ed7883 + f83fddb commit 0985266
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pages/in/getapp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<template>
<div>
<h1>{{ $t('GetApp.title') }}</h1>
<div>
<a
:href="getLikerLandAppURL"
@click="onClickDownloadApp"
>
{{ $t('GetApp.button.downloadNow') }}
</a>
</div>
<div>
<a
:href="getLikerLandURL"
@click="onClickContinue"
>
{{ $t('GetApp.button.continueToWeb') }}
</a>
</div>
<div>
insert image here
</div>
</div>
</template>


<script>
import { getLikerLandAppURL, getLikerLandURL } from '@/util/api/api';
import { checkIsMobileClient } from '~/util/client';
import { logTrackerEvent } from '@/util/EventLogger';
export default {
name: 'home',
computed: {
getLikerLandAppURL,
getLikerLandURL,
},
mounted() {
if (!checkIsMobileClient()) {
this.$router.push({ name: 'index' });
}
},
methods: {
onClickDownloadApp() {
logTrackerEvent(this, 'GetApp', 'ClickDownloadApp', 'ClickDownloadApp', 1);
},
onClickContinue() {
logTrackerEvent(this, 'GetApp', 'ClickContinueToWeb', 'ClickContinueToWeb', 1);
},
},
};
</script>

0 comments on commit 0985266

Please # to comment.