Skip to content

Commit

Permalink
feat: check email when upgrade to family premium
Browse files Browse the repository at this point in the history
  • Loading branch information
duchunter committed Oct 27, 2023
1 parent 5122f0d commit add35b4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/renderer/pages/lifetime/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@
<span class="text-danger">*</span>
{{ needCreateAccount ? 'Email' : 'Locker Email' }}
</p>
<el-input v-model="form.email" />
<el-input
v-model="form.email"
@blur="calcPriceWithEmail"
@keyup.native.enter="calcPriceWithEmail"
/>
</div>

<template v-if="needCreateAccount">
Expand Down Expand Up @@ -458,6 +462,12 @@ export default {
}
},
calcPriceWithEmail () {
if (this.validateEmail(this.form.email)) {
this.calcPrice()
}
},
goToLogin () {
this.$router.push('/vault')
},
Expand All @@ -473,7 +483,8 @@ export default {
.$post(url, {
plan_alias: this.selectedPlan,
promo_code: this.form.promo_code,
currency: 'USD'
currency: 'USD',
email: this.form.email
})
.then(res => {
this.result = res
Expand Down

0 comments on commit add35b4

Please sign in to comment.