update
This commit is contained in:
@@ -4,8 +4,11 @@ import {toPath} from "../../utils/index.js";
|
||||
import VerificationCode from '../../components/VerificationCode/index.vue';
|
||||
import {useUserStore} from "../../pinia/UserStore/index.js";
|
||||
import {Message} from "@arco-design/web-vue";
|
||||
import {useSystemStore} from "../../pinia/SystemStore/index.js";
|
||||
import Api from "../../api/index.js";
|
||||
|
||||
const {login} = useUserStore();
|
||||
const {BUILD_MODE} = useSystemStore();
|
||||
|
||||
const MODE = {
|
||||
PHONE: 'PHONE',
|
||||
@@ -13,9 +16,9 @@ const MODE = {
|
||||
}
|
||||
|
||||
const from = reactive({
|
||||
mobile: '17502997128',
|
||||
mobile: '15709267061',
|
||||
code: null,
|
||||
password: '654321',
|
||||
password: '123456',
|
||||
});
|
||||
|
||||
const mode = ref(MODE.PHONE);
|
||||
@@ -52,6 +55,7 @@ const loginSYS = (isRoot, form) => {
|
||||
<a-input v-model:model-value="from.mobile" placeholder="手机号"></a-input>
|
||||
<VerificationCode
|
||||
:type="2"
|
||||
:api="BUILD_MODE==='merchant'?Api.merchant.sendSms:Api.admin.sendSms"
|
||||
v-if="mode === MODE.PHONE"
|
||||
:mobile="from.mobile"
|
||||
v-model:verification-code="from.code">
|
||||
@@ -63,8 +67,12 @@ const loginSYS = (isRoot, form) => {
|
||||
</a-input>
|
||||
</div>
|
||||
<div class="flex flex-col mt-[50px] gap-[32px]">
|
||||
<a-button @click="loginSYS(false, from)" type="primary">登陆商户端</a-button>
|
||||
<a-button @click="loginSYS(true, from)" type="primary">登陆管理端</a-button>
|
||||
<a-button v-if="BUILD_MODE==='merchant'" @click="loginSYS(false, from)" type="primary">
|
||||
登陆商户端
|
||||
</a-button>
|
||||
<a-button v-if="BUILD_MODE==='admin'" @click="loginSYS(true, from)" type="primary">
|
||||
登陆管理端
|
||||
</a-button>
|
||||
<a-button
|
||||
@click="toPath('/loginSYS/register')"
|
||||
type="text">
|
||||
|
||||
Reference in New Issue
Block a user