flat: 登陆

This commit is contained in:
Apcallover
2024-03-20 20:23:56 +08:00
parent 367341a391
commit 6706e48516

View File

@@ -5,7 +5,7 @@
<image class="login-go-home-image" src="@/static/img/home.svg"></image> <image class="login-go-home-image" src="@/static/img/home.svg"></image>
</view> --> </view> -->
<!-- #endif --> <!-- #endif -->
<jl-input type="number" v-model="phone" placeholder="请输入手机号" @confirm="login"></jl-input> <jl-input type="text" v-model="phone" placeholder="请输入手机号" @confirm="login"></jl-input>
<jl-input type="text" v-model="password" placeholder="请输入登录密码" @confirm="login" showPassword clearable></jl-input> <jl-input type="text" v-model="password" placeholder="请输入登录密码" @confirm="login" showPassword clearable></jl-input>
<!-- <code-input ref="code" v-model="code" :getCode="getCaptcha" @key-change="keyChange" @confirm="login"></code-input> --> <!-- <code-input ref="code" v-model="code" :getCode="getCaptcha" @key-change="keyChange" @confirm="login"></code-input> -->
<view v-if="loading" class="btn nocheck" loading="true">登录中</view> <view v-if="loading" class="btn nocheck" loading="true">登录中</view>
@@ -131,7 +131,7 @@
computed: { computed: {
...mapGetters(['userInfo', 'auth', 'autograph', 'userChecked']), ...mapGetters(['userInfo', 'auth', 'autograph', 'userChecked']),
validate() { validate() {
return isMobile(this.phone) && this.password && this.code return this.phone && this.password && this.code
} }
} }
} }