This commit is contained in:
X1627315083
2025-01-14 11:02:02 +08:00
parent d4c83ce43a
commit 4421488a7b
5 changed files with 67 additions and 72 deletions

View File

@@ -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": "",