| | |
| | | <template> |
| | | <div class="login"> |
| | | <h1>智能健康体检管理系统</h1> |
| | | <!-- <div style="padding-top: 130px;"> --> |
| | | <h2>兴平兴化社区服务站</h2> |
| | | <h1>智能健康体检管理系统</h1> |
| | | <!-- </div> --> |
| | | |
| | | |
| | | <el-form :inline="true" ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> |
| | | <div class="img"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getCodeImg ,getconfigKey} from "@/api/login"; |
| | | import { getCodeImg, getconfigKey } from "@/api/login"; |
| | | import Cookies from "js-cookie"; |
| | | import { encrypt, decrypt } from '@/utils/jsencrypt' |
| | | |
| | |
| | | openeye: require('../assets/images/by.png'), |
| | | flag: false, |
| | | loading: false, |
| | | configKey:"captcha_switch", |
| | | configKey: "captcha_switch", |
| | | // // 验证码开关 |
| | | captchaEnabled: true, |
| | | // 注册开关 |
| | |
| | | this.getCookie(); |
| | | }, |
| | | methods: { |
| | | getstate(){ |
| | | getstate() { |
| | | getconfigKey().then(res => { |
| | | if(res.msg == "Y"){ |
| | | if (res.msg == "Y") { |
| | | this.captchaEnabled = true |
| | | this.getCode(); |
| | | }else if(res.msg == "N"){ |
| | | } else if (res.msg == "N") { |
| | | this.captchaEnabled = false |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | |
| | | |
| | | hide() { |
| | | this.loginForm.username = "10001"; |
| | | this.loginForm.password = "admin123"; |