|
|
@ -36,18 +36,6 @@ |
|
|
<input type="email" name="email" class="form-control" :placeholder="$t('login.pleaseEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" /> |
|
|
<input type="email" name="email" class="form-control" :placeholder="$t('login.pleaseEmail')" v-model="user.email" :data-has="$t('login.pleaseEmail')" :data-message="$t('login.invalidEmail')" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="tab-pane fade" :class="{show:registerType == 1, active:registerType == 1}" v-if="registerType==1" id="phone" role="tabpanel" aria-labelledby="phone-tab"> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<div class="d-flex"> |
|
|
|
|
|
<div class="mr-2"> |
|
|
|
|
|
<el-select v-model="user.country_id" filterable :placeholder="$t('login.country')"> |
|
|
|
|
|
<el-option v-for="(item, index) in cacheOption" :key="index" :value="`${item.id}`" :label="`+${item.country_code} ${item.name} ${item.code}`"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<input type="text" name="phone" class="form-control" :placeholder="$t('login.enterMobile')" v-model="user.phone" :data-has="$t('login.enterMobile')"/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- phone number --> |
|
|
<!-- phone number --> |
|
|
<div class="tab-pane fade" :class="{show:registerType == 2, active:registerType == 2}" v-if="registerType==2" id="phone" role="tabpanel" aria-labelledby="phone-tab"> |
|
|
<div class="tab-pane fade" :class="{show:registerType == 2, active:registerType == 2}" v-if="registerType==2" id="phone" role="tabpanel" aria-labelledby="phone-tab"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
@ -368,8 +356,6 @@ export default { |
|
|
// console.log(token); |
|
|
// console.log(token); |
|
|
Member.sendEmailCode({ |
|
|
Member.sendEmailCode({ |
|
|
email: this.user.email, |
|
|
email: this.user.email, |
|
|
phone: this.user.phone, |
|
|
|
|
|
country_code: this.country.country_code, |
|
|
|
|
|
gc_code: this.user.gc_code, |
|
|
gc_code: this.user.gc_code, |
|
|
gc_key: this.gc_key, |
|
|
gc_key: this.gc_key, |
|
|
token |
|
|
token |
|
|
@ -576,8 +562,6 @@ export default { |
|
|
case 1: |
|
|
case 1: |
|
|
data.type = `2`; |
|
|
data.type = `2`; |
|
|
data.account = this.user.email; |
|
|
data.account = this.user.email; |
|
|
data.phone = this.user.phone; |
|
|
|
|
|
data.country_code = this.country.country_code; |
|
|
|
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
default: |
|
|
default: |
|
|
|