fix
This commit is contained in:
@@ -48,31 +48,34 @@
|
||||
<div class="login_form_title marign_top30">Email</div>
|
||||
<input
|
||||
class="login_form_input"
|
||||
:class="{active:!!email}"
|
||||
:class="{active:!!email && bindType != 'Modify'}"
|
||||
placeholder="Enter your email address"
|
||||
v-model="email"
|
||||
:disabled="!!email"
|
||||
:disabled="!!email && bindType != 'Modify'"
|
||||
@keydown.enter="submitPerLogin()"
|
||||
/>
|
||||
<div class="login_form_title marign_top30">{{$t('account.Country')}}:</div>
|
||||
<div class="login_form_select">
|
||||
<a-select
|
||||
class="gallerySelect"
|
||||
v-model:value="Country"
|
||||
:disabled="!!userDetail.country"
|
||||
size="large"
|
||||
optionFilterProp="label"
|
||||
style="width: 100%;"
|
||||
:options="countryList"
|
||||
placeholder="Please select"
|
||||
allowClear
|
||||
show-search
|
||||
></a-select>
|
||||
</div>
|
||||
|
||||
<div class="login_form_title marign_top30">{{$t('account.CompanyName')}}:</div>
|
||||
<input class="login_form_input" :class="{active:!!email}" :disabled="!!CompanyName" type="text" placeholder="Please enter occupation" v-model="CompanyName">
|
||||
<div v-if="bindType != 'Modify'">
|
||||
<div class="login_form_title marign_top30">{{$t('account.Country')}}:</div>
|
||||
<div class="login_form_select">
|
||||
<a-select
|
||||
class="gallerySelect"
|
||||
v-model:value="Country"
|
||||
:disabled="!!userDetail.country"
|
||||
size="large"
|
||||
optionFilterProp="label"
|
||||
style="width: 100%;"
|
||||
:options="countryList"
|
||||
placeholder="Please select"
|
||||
allowClear
|
||||
show-search
|
||||
></a-select>
|
||||
</div>
|
||||
|
||||
<div class="login_form_title marign_top30">{{$t('account.CompanyName')}}:</div>
|
||||
<input class="login_form_input" :class="{active:!!CompanyName}" :disabled="!!userDetail.country" type="text" placeholder="Please enter occupation" v-model="CompanyName">
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 邮箱登录 start -->
|
||||
<div class="login_form_email" :class="{active:emailStap===2}">
|
||||
<div v-show="emailStap === 2" class="email_last_step">
|
||||
@@ -267,16 +270,16 @@ export default defineComponent({
|
||||
message.info("The email format is incorrect");
|
||||
return;
|
||||
}
|
||||
if (!this.CompanyName) {
|
||||
if (!this.CompanyName && this.bindType != 'Modify') {
|
||||
message.info("Please enter occupation");
|
||||
return;
|
||||
}
|
||||
if (!this.Country) {
|
||||
if (!this.Country && this.bindType != 'Modify') {
|
||||
message.info("Please select a country");
|
||||
return;
|
||||
}
|
||||
let type = 'BIND_MAILBOX'
|
||||
if(this.email == this.userDetail.email)type = 'UPDATE_USERINFO'
|
||||
if(this.email == this.userDetail.email && this.bindType != 'Modify')type = 'UPDATE_USERINFO'
|
||||
let data = {
|
||||
"email": this.email,
|
||||
"ip": "",
|
||||
|
||||
Reference in New Issue
Block a user