update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import {ref, reactive} from 'vue';
|
||||
import {reactive, ref} from 'vue';
|
||||
import {toPath} from "../../utils/index.js";
|
||||
import VerificationCode from '../../components/VerificationCode/index.vue';
|
||||
import {useUserStore} from "../../pinia/UserStore/index.js";
|
||||
@@ -12,9 +12,9 @@ const MODE = {
|
||||
}
|
||||
|
||||
const from = reactive({
|
||||
phone: null,
|
||||
verificationCode: null,
|
||||
password: null,
|
||||
mobile: '17502997128',
|
||||
code: null,
|
||||
password: '123456',
|
||||
});
|
||||
|
||||
const mode = ref(MODE.PHONE);
|
||||
@@ -29,21 +29,21 @@ const mode = ref(MODE.PHONE);
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-[38px] flex flex-col gap-[20px]">
|
||||
<a-input v-model:model-value="from.phone" placeholder="手机号"></a-input>
|
||||
<a-input v-model:model-value="from.mobile" placeholder="手机号"></a-input>
|
||||
<VerificationCode
|
||||
v-if="mode === MODE.PHONE"
|
||||
:phone="from.phone"
|
||||
v-model:verification-code="from.verificationCode">
|
||||
:mobile="from.mobile"
|
||||
v-model:verification-code="from.code">
|
||||
</VerificationCode>
|
||||
<a-input v-else :model-value="from.password" placeholder="密码">
|
||||
<a-input v-else v-model:model-value="from.password" placeholder="密码">
|
||||
<template #append>
|
||||
<a-link @click="toPath('/loginSYS/forgot')" :hoverable="false">忘记密码?</a-link>
|
||||
</template>
|
||||
</a-input>
|
||||
</div>
|
||||
<div class="flex flex-col mt-[50px] gap-[32px]">
|
||||
<a-button @click="login(false)" type="primary">登陆商户端</a-button>
|
||||
<a-button @click="login(true)" type="primary">登陆管理端</a-button>
|
||||
<a-button @click="login(false, from)" type="primary">登陆商户端</a-button>
|
||||
<a-button @click="login(true, from)" type="primary">登陆管理端</a-button>
|
||||
<a-button
|
||||
@click="toPath('/loginSYS/register')"
|
||||
type="text">
|
||||
|
||||
Reference in New Issue
Block a user