Skip to content

Commit

Permalink
register success dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
DARREN-ZHANG committed Sep 24, 2019
1 parent bfe6e0f commit 883206a
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,39 @@
fluid
>

<div class="text-center">
<v-dialog
v-model="dialog"
width="500"
>
<v-card>
<v-card-title
class="headline"
primary-title
>
注册成功
</v-card-title>

<v-card-text class="dialogText">
注册成功,快去APP赚取收益吧!
</v-card-text>

<v-divider></v-divider>

<v-card-actions>
<div class="flex-grow-1"></div>
<v-btn
color="primary"
text
@click="dialog = false"
>
关闭
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>

<v-col>

<v-row
Expand Down Expand Up @@ -290,6 +323,21 @@
text-align: center;
}
.alert{
background-color: #c62c43;
}
.dialogText{
margin-top:20px;
height: 40px;
text-align: left;
}
.headline{
color: white;
background-color: #c62c43;
}
</style>

<script>
Expand Down Expand Up @@ -368,6 +416,7 @@
qrSize: 100,
tutorial: 'https://bbb2019.zendesk.com/hc/zh-cn/articles/360033801811-BBB-%E6%95%99%E7%A8%8B',
downloadLink: 'https://app.cybex.io/MobileAPP/BBB_release.apk',
dialog: false,
// nameRules: [
// value => !!value || validation.account_required,
Expand Down Expand Up @@ -523,13 +572,14 @@
"referrer": this.referrer
}
});
console.log("TCL: createAccount -> result", result)
this.dialog = true;
if(this.isAndroid() === true){
window.location.href=this.downloadLink;
}else if(this.isiOS() === true){
window.location.href=this.tutorial;
}
} catch (e) {
this.dialog = false;
if (e.response.data) {
throw new Error(e.response.data)
}
Expand Down

0 comments on commit 883206a

Please sign in to comment.