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

updates

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