Soleilw 1 rok temu
rodzic
commit
4f09ca1b16
3 zmienionych plików z 140 dodań i 139 usunięć
  1. 132
    132
      dist/assets/index-OCd_JVu3.js
  2. 1
    1
      dist/index.html
  3. 7
    6
      src/views/login/login.vue

dist/assets/index-OCd_JVu3.js
Plik diff jest za duży
Wyświetl plik


+ 1
- 1
dist/index.html Wyświetl plik

<link rel="icon" type="image/svg+xml" href="/logo_1.jpg" /> <link rel="icon" type="image/svg+xml" href="/logo_1.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>菊城人才市场后台管理</title> <title>菊城人才市场后台管理</title>
<script type="module" crossorigin src="/assets/index-i0sh_yC6.js"></script>
<script type="module" crossorigin src="/assets/index-OCd_JVu3.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-EE_SYqet.css"> <link rel="stylesheet" crossorigin href="/assets/index-EE_SYqet.css">
</head> </head>
<body> <body>

+ 7
- 6
src/views/login/login.vue Wyświetl plik

<a-row :gutter="10"> <a-row :gutter="10">
<a-col span="12"> <a-col span="12">
<a-form-item> <a-form-item>
<a-input v-model:value="createForm.captcha" placeholder="图形验证码" size="large" />
<a-input v-model:value="captcha" placeholder="图形验证码" size="large" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col span="12"> <a-col span="12">
</a-col> </a-col>
<a-col span="8"> <a-col span="8">
<a-form-item> <a-form-item>
<a-button type="primary" block size="large" @click="sendCode"
<a-button size="large" type="primary" block size="large" @click="sendCode"
:disabled="state.disabled"> :disabled="state.disabled">
{{ state.codeTxt }}</a-button> {{ state.codeTxt }}</a-button>
</a-form-item> </a-form-item>
const { routerTo } = useAsRouter(); const { routerTo } = useAsRouter();
let capt_id = ref<String>('') let capt_id = ref<String>('')
let codeImage = ref<String>('') let codeImage = ref<String>('')
let captcha = ref<String>('')




const createForm = ref<Object>({ const createForm = ref<Object>({
mobile: '', mobile: '',
password: '', password: '',
// captcha: '',
// sms_code: ''
sms_code: ''
}) })


interface State { interface State {
let timer = ref<any>(null) let timer = ref<any>(null)
const sendCode = () => { const sendCode = () => {
if (!createForm.value.mobile) { if (!createForm.value.mobile) {
message.danger('请输入手机号')
message.warn('请输入手机号')
return false; return false;
} }
PostSmsSend({ mobile: createForm.mobile, captcha: '', capt_id: capt_id.value }).then(res => {
PostSmsSend({ mobile: createForm.value.mobile, captcha: captcha.value, capt_id: capt_id.value }).then(res => {
message.success('发送验证码成功,验证码有效期为一分钟'); message.success('发送验证码成功,验证码有效期为一分钟');
timer.value = setInterval(function () { timer.value = setInterval(function () {
if (state.value.count > 1) { if (state.value.count > 1) {
clearInterval(timer.value); clearInterval(timer.value);
}) })
const toLogin = () => { const toLogin = () => {
createForm.value.sms_code = Number(createForm.value.sms_code)
if (!createForm.value.mobile) { if (!createForm.value.mobile) {
message.warning('请输入登录账号'); message.warning('请输入登录账号');
return false; return false;

Ładowanie…
Anuluj
Zapisz