Soleilw 1 год назад
Родитель
Сommit
4f09ca1b16
3 измененных файлов: 140 добавлений и 139 удалений
  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
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
dist/index.html Просмотреть файл

@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/logo_1.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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">
</head>
<body>

+ 7
- 6
src/views/login/login.vue Просмотреть файл

@@ -36,7 +36,7 @@
<a-row :gutter="10">
<a-col span="12">
<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-col>
<a-col span="12">
@@ -54,7 +54,7 @@
</a-col>
<a-col span="8">
<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">
{{ state.codeTxt }}</a-button>
</a-form-item>
@@ -89,13 +89,13 @@
const { routerTo } = useAsRouter();
let capt_id = ref<String>('')
let codeImage = ref<String>('')
let captcha = ref<String>('')


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

interface State {
@@ -112,10 +112,10 @@
let timer = ref<any>(null)
const sendCode = () => {
if (!createForm.value.mobile) {
message.danger('请输入手机号')
message.warn('请输入手机号')
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('发送验证码成功,验证码有效期为一分钟');
timer.value = setInterval(function () {
if (state.value.count > 1) {
@@ -136,6 +136,7 @@
clearInterval(timer.value);
})
const toLogin = () => {
createForm.value.sms_code = Number(createForm.value.sms_code)
if (!createForm.value.mobile) {
message.warning('请输入登录账号');
return false;

Загрузка…
Отмена
Сохранить