change base url and translate login page and add field

This commit is contained in:
AliGhasami
2021-01-31 01:48:21 +03:30
parent b05899d062
commit 2f77bf9cf6
6 changed files with 681 additions and 23 deletions
+10 -16
View File
@@ -15,19 +15,16 @@
<img src="@/assets/images/logo.svg" width="120px" height="120px" class="mx-auto">
<div class="vx-card__title mb-4">
<h4 class="mb-4">
{{$t('Login')}}
ورود
</h4>
<p>{{$t('Welcome Login')}}</p>
<p>به آسکو خوش آمدید.</p>
</div>
<div>
<vs-input
v-validate="'required|min:3'"
data-vv-validate-on="blur"
name="mobile"
icon-no-border
icon="icon icon-user"
icon-pack="feather"
:label-placeholder="$t('Mail or Mobile')"
label-placeholder="شماره تلفن همراه یا ایمیل"
v-model="email"
@keydown.enter="loginJWT"
class="w-full"/>
@@ -38,10 +35,7 @@
v-validate="'required'"
type="password"
name="password"
icon-no-border
icon="icon icon-lock"
icon-pack="feather"
:label-placeholder="$t('Password')"
label-placeholder="رمز عبور"
v-model="password"
@keydown.enter="loginJWT"
class="w-full mt-8" />
@@ -54,16 +48,16 @@
</div>
<div class="flex flex-wrap justify-between mb-3 ">
<vs-button class="mx-auto" :disabled="!validateForm" @click="loginJWT" >
{{$t('Login')}}
ورود
</vs-button>
</div>
<div>
<!-- <router-link to="/auth/register">
{{$t('Are you register')}}
</router-link>-->
<a-button type="link" @click="registerUser">
<router-link to="/register/form">
آیا هنوز ثبت نام نکرده اید؟
</a-button>
</router-link>
<!-- <a-button type="link" @click="registerUser">
آیا هنوز ثبت نام نکرده اید؟
</a-button>-->
</div>
</div>
</div>