提交 517794dc authored 作者: matian's avatar matian

updates

上级 5ac0f5dd
......@@ -71,6 +71,7 @@ const handleSubmit = () => {
font-size: 16px;
font-weight: 400;
color: #ffffff;
cursor: pointer;
}
.el-input_icon_card {
display: block;
......
......@@ -26,14 +26,19 @@ const handleLogin = () => {
type: loginType.value,
service: window.location.origin
}
api.login(params).then(res => {
api.login(params).then((res: any) => {
console.log(res, '0000')
if (res.code === 0) {
window.location.href = 'https://fdc-admin.ezijing.com'
} else {
ElMessage.warning(res.msg)
}
})
}
// 获取验证码
const handleGetCode = () => {
isShowGetCode.value = !isShowGetCode.value
form.password = ''
}
function getCode() {
if (form.phone === '') {
......@@ -93,7 +98,7 @@ const handleTimeChange = () => {
</el-input>
</el-form-item>
<el-form-item>
<div class="btn_code" @click="handleGetCode">{{ isShowGetCode === false ? '验证码' : '密码登录' }}</div>
<div class="btn_code" @click="handleGetCode">{{ isShowGetCode === false ? '验证码登录' : '密码登录' }}</div>
</el-form-item>
<el-form-item>
<div class="btn_query" @click="handleLogin">登录</div>
......@@ -113,12 +118,14 @@ const handleTimeChange = () => {
font-size: 16px;
font-weight: 400;
color: #ffffff;
cursor: pointer;
}
.btn_code {
font-size: 14px;
font-weight: 400;
color: #01379e;
padding-left: 237px;
cursor: pointer;
}
.el-input_icon_name {
display: block;
......
......@@ -26,14 +26,19 @@ const handleLogin = () => {
type: loginType.value,
service: window.location.origin
}
api.login(params).then(res => {
api.login(params).then((res: any) => {
console.log(res, '0000')
if (res.code === 0) {
window.location.href = 'https://fdc-learning.ezijing.com'
} else {
ElMessage.warning(res.msg)
}
})
}
// 获取验证码
const handleGetCode = () => {
isShowGetCode.value = !isShowGetCode.value
form.password = ''
}
function getCode() {
if (form.phone === '') {
......@@ -93,7 +98,7 @@ const handleTimeChange = () => {
</el-input>
</el-form-item>
<el-form-item>
<div class="btn_code" @click="handleGetCode">{{ isShowGetCode === false ? '验证码' : '密码登录' }}</div>
<div class="btn_code" @click="handleGetCode">{{ isShowGetCode === false ? '验证码登录' : '密码登录' }}</div>
</el-form-item>
<el-form-item>
<div class="btn_query" @click="handleLogin">登录</div>
......@@ -113,12 +118,14 @@ const handleTimeChange = () => {
font-size: 16px;
font-weight: 400;
color: #ffffff;
cursor: pointer;
}
.btn_code {
font-size: 14px;
font-weight: 400;
color: #01379e;
padding-left: 237px;
cursor: pointer;
}
.el-input_icon_name {
display: block;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论