|
|
@ -27,6 +27,18 @@ |
|
|
<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}`"></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"> |
|
|
@ -66,9 +78,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="form-group row"> |
|
|
<div class="form-group row"> |
|
|
<input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.c6')}`" /> |
|
|
<!-- <input type="text" class="form-control" :disabled="$route.query.invite_code?true:false" v-model="user.parentCode" :placeholder="`${$t('login.c6')}`" /> --> |
|
|
<!-- (${$t('login.optional')}) --> |
|
|
<!-- (${$t('login.optional')}) --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="custom-control custom-checkbox"> |
|
|
<div class="custom-control custom-checkbox"> |
|
|
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" /> |
|
|
<input type="checkbox" class="custom-control-input" id="form-checkbox" v-model="isAgree" /> |
|
|
@ -292,17 +305,17 @@ export default { |
|
|
); |
|
|
); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (this.user.parentCode=="") { |
|
|
// if (this.user.parentCode=="") { |
|
|
// 没有填写推荐人/邀请码 |
|
|
// // 没有填写推荐人/邀请码 |
|
|
this.$message( |
|
|
// this.$message( |
|
|
{ |
|
|
// { |
|
|
type: "warning", |
|
|
// type: "warning", |
|
|
message: this.$t("login.c7") + "!" |
|
|
// message: this.$t("login.c7") + "!" |
|
|
}, |
|
|
// }, |
|
|
1000 |
|
|
// 1000 |
|
|
); |
|
|
// ); |
|
|
return; |
|
|
// return; |
|
|
} |
|
|
// } |
|
|
if(this.user.withdrawal_psw==""){ |
|
|
if(this.user.withdrawal_psw==""){ |
|
|
this.$message( |
|
|
this.$message( |
|
|
{ |
|
|
{ |
|
|
@ -342,7 +355,9 @@ export default { |
|
|
// console.log(token); |
|
|
// console.log(token); |
|
|
Member.sendEmailCode({ |
|
|
Member.sendEmailCode({ |
|
|
email: this.user.email, |
|
|
email: this.user.email, |
|
|
|
|
|
phone: this.user.phone, |
|
|
gc_code: this.user.gc_code, |
|
|
gc_code: this.user.gc_code, |
|
|
|
|
|
country_code: this.country.country_code, |
|
|
gc_key: this.gc_key, |
|
|
gc_key: this.gc_key, |
|
|
token |
|
|
token |
|
|
}).then(data => { |
|
|
}).then(data => { |
|
|
@ -548,6 +563,8 @@ 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: |
|
|
|