login.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. <template>
  2. <div class="login-page scrollbar-box">
  3. <!--<img class="logo-img" src="@/assets/ZDimages/login/logo.png">-->
  4. <img class="logo-img" :src="rectangleLogo">
  5. <div class="title-img-box">
  6. <div>
  7. <img class="title-img" src="@/assets/ZDimages/login/title_icon.png">
  8. <!--<p>v 2.0</p>-->
  9. </div>
  10. </div>
  11. <div class="form-box">
  12. <p class="form-title-p">登录</p>
  13. <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
  14. <div class="username-input-box" :class="userTypeCode == 1||userTypeCode == 4?'username-input-box-code':''">
  15. <img src="@/assets/ZDimages/login/icon_dl_zh.png" alt="">
  16. <input type="text" v-model="loginForm.username" placeholder="请输入账号" maxlength="20" @keyup.enter="handleLogin">
  17. </div>
  18. <div class="password-input-box" :class="userTypeCode == 2||userTypeCode == 4?'username-input-box-code':''">
  19. <img src="@/assets/ZDimages/login/icon_dl_mm.png" alt="">
  20. <input type="password" v-model="loginForm.password" placeholder="请输入密码" maxlength="20" @keyup.enter="handleLogin">
  21. </div>
  22. <p class="text-p">{{text}}</p>
  23. <div class="code-input-box">
  24. <div class="code-input-left-box" :class="userTypeCode == 3||userTypeCode == 5?'username-input-box-code':''">
  25. <img src="@/assets/ZDimages/login/icon_dl_yzm.png" alt="">
  26. <input type="text" v-model="loginForm.code" placeholder="请输入验证码" maxlength="4" @keyup.enter="handleLogin">
  27. </div>
  28. <div class="login-code">
  29. <img :src="codeUrl" @click="getCode" class="login-code-img"/>
  30. </div>
  31. </div>
  32. <el-form-item>
  33. <el-button
  34. class="form-button-p"
  35. :loading="loading"
  36. size="medium"
  37. height="50"
  38. @click.native.prevent="handleLogin"
  39. >
  40. <span v-if="!loading">登 录</span>
  41. <span v-else>登 录 中...</span>
  42. </el-button>
  43. <div style="float: right;" v-if="register">
  44. <router-link class="link-type" :to="'/register'">立即注册</router-link>
  45. </div>
  46. </el-form-item>
  47. </el-form>
  48. </div>
  49. <p class="introduction-p">技术支持:江苏忠江智能科技有限公司</p>
  50. </div>
  51. </template>
  52. <script>
  53. import { getCodeImg,initPage } from "@/api/login";
  54. import Cookies from "js-cookie";
  55. import { encrypt, decrypt } from '@/utils/jsencrypt'
  56. import store from '@/store'
  57. import { getLogoInfo,getUrlConfig} from "@/api/system/publicConfig";
  58. import { Encrypt,Decrypt} from '@/utils/secret.js'
  59. export default {
  60. name: "Login",
  61. data() {
  62. return {
  63. codeUrl: "",
  64. cookiePassword: "",
  65. type:1,
  66. loginForm: {
  67. // username: "admin",
  68. // password: "admin123",
  69. username: "",
  70. password: "",
  71. rememberMe: false,
  72. code: "",
  73. uuid: "",
  74. // userType:""
  75. },
  76. loginRules: {
  77. // username: [
  78. // { required: true, trigger: "blur", message: "请输入您的账号" }
  79. // ],
  80. // password: [
  81. // { required: true, trigger: "blur", message: "请输入您的密码" }
  82. // ],
  83. // code: [{ required: true, trigger: "change", message: "请输入验证码" }]
  84. },
  85. loading: false,
  86. // 验证码开关
  87. captchaOnOff: true,
  88. // 注册开关
  89. register: false,
  90. redirect: undefined,
  91. text:"",
  92. userTypeCode:"",
  93. rectangleLogo:localStorage.getItem('rectangleLogo'),
  94. };
  95. },
  96. watch: {
  97. $route: {
  98. handler: function(route) {
  99. this.redirect = route.query && route.query.redirect;
  100. },
  101. immediate: true
  102. }
  103. },
  104. created() {
  105. localStorage.setItem('windowHref',window.location.href)
  106. this.getCode();
  107. this.getCookie();
  108. // this.exitFullscreen();
  109. },
  110. mounted(){
  111. this.getLogoInfo();
  112. this.initPage();
  113. },
  114. methods: {
  115. //获取首页配置
  116. initPage(){
  117. initPage().then(response => {
  118. if(response.data){
  119. localStorage.setItem('initPage',true);
  120. }else{
  121. localStorage.setItem('initPage',false);
  122. }
  123. });
  124. },
  125. //获取公共配置
  126. getLogoInfo(){
  127. getLogoInfo().then(response => {
  128. console.log('公共配置',response.data)
  129. store.dispatch('settings/setSmartAlarmType', response.data.smartLock)
  130. localStorage.setItem('setSmartAlarmType',response.data.smartLock)
  131. this.rectangleLogo = response.data.rectangleLogo;
  132. localStorage.setItem('circularLogo',response.data.circularLogo)
  133. localStorage.setItem('rectangleLogo',response.data.rectangleLogo)
  134. localStorage.setItem('videoCover',response.data.videoCover)
  135. localStorage.setItem('schoolName',response.data.schoolName)
  136. });
  137. },
  138. //获取开发配置数据
  139. getUrlConfig(){
  140. getUrlConfig().then(response => {
  141. console.log('开发配置',response.data)
  142. //判定http或者https
  143. let urlText = window.location.href.split('://')[0]+'://';
  144. let outerNet=window.location.href.indexOf(response.data.ipIdentify) == -1//true外网 false 内网
  145. if(outerNet){//外网
  146. //文件预览地址
  147. localStorage.setItem('filePreviewUrl',urlText+response.data.fileExtranetUrl)
  148. //摄像头代理访问地址
  149. localStorage.setItem('cameraExtranetAgent',urlText+response.data.cameraExtranetAgent)
  150. //摄像头地址ip段
  151. localStorage.setItem('ipIdentify',response.data.ipIdentify)
  152. //摄像头访问地址
  153. localStorage.setItem('cameraUrl','wss://'+response.data.cameraExtranetUrl)
  154. //MQTT地址
  155. localStorage.setItem('mqttUrl','wss://'+Decrypt(response.data.mqttExtranetUrl))
  156. //MQTT账号
  157. localStorage.setItem('mqttUser',Decrypt(response.data.mqttExtranetUser))
  158. //MQTT密码
  159. localStorage.setItem('mqttPassword',Decrypt(response.data.mqttExtranetPassword))
  160. //可视化大屏访问地址
  161. localStorage.setItem('screenUrl',urlText+response.data.screenExtranetUrl)
  162. }else{
  163. //文件预览地址
  164. localStorage.setItem('filePreviewUrl',urlText+response.data.fileIntranetUrl)
  165. //摄像头代理访问地址
  166. localStorage.setItem('cameraExtranetAgent',urlText+response.data.cameraIntranetAgent)
  167. //摄像头地址ip段
  168. localStorage.setItem('ipIdentify',response.data.ipIdentify)
  169. //摄像头访问地址
  170. localStorage.setItem('cameraUrl','wss://'+response.data.cameraIntranetUrl)
  171. //MQTT地址
  172. localStorage.setItem('mqttUrl','ws://'+Decrypt(response.data.mqttIntranetUrl))
  173. //MQTT账号
  174. localStorage.setItem('mqttUser',Decrypt(response.data.mqttIntranetUser))
  175. //MQTT密码
  176. localStorage.setItem('mqttPassword',Decrypt(response.data.mqttIntranetPassword))
  177. //可视化大屏访问地址
  178. localStorage.setItem('screenUrl',urlText+response.data.screenIntranetUrl)
  179. }
  180. //二维码连接地址
  181. localStorage.setItem('codeOnlineAdd',response.data.codeOnlineAdd)
  182. });
  183. },
  184. getCode() {
  185. // getCodeImg().then(res => {
  186. // this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
  187. // if (this.captchaOnOff) {
  188. // this.codeUrl = "data:image/gif;base64," + res.img;
  189. // this.loginForm.uuid = res.uuid;
  190. // }
  191. // });
  192. },
  193. getCookie() {
  194. const username = Cookies.get("username");
  195. const password = Cookies.get("password");
  196. const rememberMe = Cookies.get('rememberMe')
  197. this.loginForm = {
  198. username: username === undefined ? this.loginForm.username : username,
  199. password: password === undefined ? this.loginForm.password : decrypt(password),
  200. rememberMe: rememberMe === undefined ? false : Boolean(rememberMe)
  201. };
  202. },
  203. handleLogin() {
  204. let self = this;
  205. if(this.loginForm.username.length<1){
  206. this.text = "*请输入账号";
  207. this.userTypeCode = "1";
  208. return
  209. }else if(this.loginForm.password.length<1){
  210. this.text = "*请输入密码";
  211. this.userTypeCode = "2";
  212. return
  213. }else if(!this.loginForm.code||this.loginForm.code.length<1){
  214. this.text = "*请输入验证码";
  215. this.userTypeCode = "3";
  216. return
  217. }
  218. this.text = "";
  219. this.userTypeCode = "";
  220. this.$refs.loginForm.validate(valid => {
  221. if (valid) {
  222. this.loading = true;
  223. if (this.loginForm.rememberMe) {
  224. Cookies.set("username", this.loginForm.username, { expires: 30 });
  225. Cookies.set("password", encrypt(this.loginForm.password), { expires: 30 });
  226. Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 });
  227. } else {
  228. Cookies.remove("username");
  229. Cookies.remove("password");
  230. Cookies.remove('rememberMe');
  231. }
  232. this.$store.dispatch("Login", this.loginForm).then((res) => {
  233. if(res.code != 200){
  234. this.text = "*"+res.msg;
  235. if(res.code == 530){
  236. this.userTypeCode = "4";
  237. }else if(res.code == 503){
  238. this.userTypeCode = "5";
  239. }
  240. this.loading = false;
  241. this.getCode();
  242. return
  243. }
  244. this.getUrlConfig();
  245. if(res.data.reset_password){
  246. this.$confirm('账号当前登录密码为默认密码,是否现在修改?', "提示", {
  247. confirmButtonText: "确定",
  248. cancelButtonText: "取消",
  249. type: "warning"
  250. }).then(function() {
  251. let routeData = JSON.parse(localStorage.getItem("routeData"))
  252. for(let i=0;i<routeData.length;i++){
  253. if(!routeData[i].hidden&&routeData[i].name != 'Https://www.sxitdlc.com'){
  254. store.dispatch('settings/setPageName', routeData[i].meta.title)
  255. self.$store.commit("SET_SIDEBAR_ROUTERS", routeData[i].children);
  256. // self.$router.push({ path: '/mine' });
  257. self.$router.push({ path: '/comprehensive/system/mine' });
  258. // self.$router.push({ path: '/user/profile' });
  259. break
  260. }
  261. }
  262. }).then(() => {
  263. }).catch(() => {
  264. });
  265. }
  266. if(res.data.type){
  267. localStorage.setItem('userType',res.data.type)
  268. localStorage.setItem('userId',res.data.user_id)
  269. localStorage.setItem('identity',res.data.screen_token);
  270. localStorage.setItem('identityType',res.data.screen_type);
  271. }
  272. this.fullScreen();
  273. this.$router.push({ path: this.redirect || "/home" }).catch(()=>{});
  274. }).catch(() => {
  275. this.loading = false;
  276. if (this.captchaOnOff) {
  277. this.getCode();
  278. }
  279. });
  280. }
  281. });
  282. },
  283. //全屏
  284. fullScreen() {
  285. var element = document.documentElement;
  286. if (element.requestFullscreen) {
  287. element.requestFullscreen();
  288. } else if (element.msRequestFullscreen) {
  289. element.msRequestFullscreen();
  290. } else if (element.mozRequestFullScreen) {
  291. element.mozRequestFullScreen();
  292. } else if (element.webkitRequestFullscreen) {
  293. element.webkitRequestFullscreen();
  294. }
  295. },
  296. //退出全屏
  297. exitFullscreen() {
  298. if (document.exitFullscreen) {
  299. document.exitFullscreen();
  300. } else if (document.msExitFullscreen) {
  301. document.msExitFullscreen();
  302. } else if (document.mozCancelFullScreen) {
  303. document.mozCancelFullScreen();
  304. } else if (document.webkitExitFullscreen) {
  305. document.webkitExitFullscreen();
  306. }
  307. },
  308. }
  309. };
  310. </script>
  311. <style rel="stylesheet/scss" lang="scss">
  312. .login-page{
  313. height: 100%;
  314. width:100%;
  315. background-image: url("../assets/ZDimages/login/icon_dl_bbg.png");
  316. background-repeat:no-repeat;
  317. background-size: cover;
  318. -webkit-background-size: cover;
  319. -o-background-size: cover;
  320. position: relative;
  321. *{
  322. margin:0;
  323. }
  324. .logo-img{
  325. position: absolute;
  326. top:29px;
  327. left:52px;
  328. width:250px;
  329. height:55px;
  330. }
  331. .title-img-box{
  332. position: absolute;
  333. top:74px;
  334. left:50%;
  335. margin-left:-580px;
  336. width:1180px;
  337. height:230px;
  338. div{
  339. position: relative;
  340. img{
  341. width:1180px;
  342. height:230px;
  343. }
  344. p{
  345. position: absolute;
  346. top:72px;
  347. right:300px;
  348. width:50px;
  349. height:26px;
  350. line-height:26px;
  351. text-align: center;
  352. background: #0045AF;
  353. color:#fff;
  354. font-size:14px;
  355. border-radius:70px;
  356. }
  357. }
  358. }
  359. .form-box{
  360. width:680px;
  361. height:520px;
  362. background-image: url("../assets/ZDimages/login/img_dlk_bg.png");
  363. position: absolute;
  364. top:290px;
  365. left:50%;
  366. margin-left:-340px;
  367. .form-title-p{
  368. line-height:52px;
  369. font-size:24px;
  370. text-align: center;
  371. color:#fff;
  372. font-weight:700;
  373. }
  374. .username-input-box-code:hover{
  375. box-shadow: 0 0 4px 1px rgba(255,39,39,1)!important;
  376. }
  377. .username-input-box-code{
  378. border: 1px solid #FF6A6A!important;
  379. }
  380. .username-input-box:hover{
  381. box-shadow: 0 0 4px 1px rgba(0, 255, 252, 1);
  382. }
  383. .username-input-box{
  384. width:480px;
  385. height:60px;
  386. border: 1px solid #00FFFC;
  387. border-radius: 10px;
  388. background: rgba(0, 13, 41, 0.2);
  389. margin: 40px auto 32px;
  390. display: flex;
  391. overflow: hidden;
  392. img{
  393. height:20px;
  394. width:20px;
  395. margin:20px;
  396. }
  397. input:-webkit-autofill {
  398. //input 背景色 #0C2034根据自己需要替换
  399. -webkit-box-shadow : 0 0 0px 1000px rgba(1,25,67,1) inset !important;
  400. //input字体颜色 颜色根据自己要求替换
  401. -webkit-text-fill-color: #FFFFFF !important;
  402. }
  403. input{
  404. flex:1;
  405. border:none;
  406. outline:none;
  407. background-color: transparent !important;
  408. color: #dedede;
  409. font-size:16px;
  410. }
  411. ::placeholder{
  412. color:#999999 ;
  413. font-size:16px;
  414. }
  415. }
  416. .password-input-box:hover{
  417. box-shadow: 0 0 4px 1px rgba(0, 255, 252, 1);
  418. }
  419. .password-input-box{
  420. width:480px;
  421. height:60px;
  422. border: 1px solid #00FFFC;
  423. border-radius: 10px;
  424. background: rgba(0, 13, 41, 0.2);
  425. margin: 0 auto;
  426. display: flex;
  427. overflow: hidden;
  428. img{
  429. height:20px;
  430. width:20px;
  431. margin:20px;
  432. }
  433. input:-webkit-autofill {
  434. //input 背景色 #0C2034根据自己需要替换
  435. -webkit-box-shadow : 0 0 0px 1000px rgba(1,25,67,1) inset !important;
  436. //input字体颜色 颜色根据自己要求替换
  437. -webkit-text-fill-color: #FFFFFF !important;
  438. }
  439. input{
  440. flex:1;
  441. border:none;
  442. outline:none;
  443. background-color: transparent !important;
  444. color: #dedede;
  445. font-size:16px;
  446. }
  447. ::placeholder{
  448. color:#999999 ;
  449. font-size:16px;
  450. }
  451. }
  452. .text-p{
  453. width:480px;
  454. height:59px;
  455. line-height: 59px;
  456. margin: 0 auto;
  457. font-size: 14px;
  458. font-family: Microsoft YaHei;
  459. color: #DC1616;
  460. }
  461. .code-input-box{
  462. width:480px;
  463. height:60px;
  464. display: flex;
  465. margin: 0 auto;
  466. .code-input-left-box:hover{
  467. box-shadow: 0 0 4px 1px rgba(0, 255, 252, 1);
  468. }
  469. .code-input-left-box{
  470. width:330px;
  471. height:60px;
  472. border: 1px solid #00FFFC;
  473. border-radius: 10px;
  474. background: rgba(0, 13, 41, 0.2);
  475. display: flex;
  476. overflow: hidden;
  477. img{
  478. height:20px;
  479. width:20px;
  480. margin:20px;
  481. }
  482. input:-webkit-autofill {
  483. -webkit-box-shadow: 0 0 0 1000px white inset !important;
  484. }
  485. input{
  486. flex:1;
  487. border:none;
  488. outline:none;
  489. background-color: transparent !important;
  490. color: #dedede;
  491. font-size:16px;
  492. }
  493. ::placeholder{
  494. color:#999999 ;
  495. font-size:16px;
  496. }
  497. }
  498. .login-code{
  499. width:124px;
  500. height:50px;
  501. margin:6px 0 0 25px;
  502. img {
  503. width:124px;
  504. height:50px;
  505. cursor: pointer;
  506. vertical-align: middle;
  507. }
  508. }
  509. }
  510. .form-button-p{
  511. font-size:16px;
  512. display: block;
  513. width:480px;
  514. height: 60px;
  515. background: #0045AF;
  516. color:#fff;
  517. border:none;
  518. border-radius: 10px;
  519. margin:34px auto 0;
  520. }
  521. }
  522. .introduction-p{
  523. width:100%;
  524. text-align: center;
  525. color:#fff;
  526. font-size:16px;
  527. line-height:44px;
  528. position: absolute;
  529. left:0;
  530. bottom:0;
  531. }
  532. }
  533. .login {
  534. /*display: flex;*/
  535. /*justify-content: right;*/
  536. /*padding-right:220px;*/
  537. /*align-items: center;*/
  538. height: 100%;
  539. width:100%;
  540. background-image: url("../assets/ZDimages/img_dl_bg.png");
  541. background-size: 100%;
  542. position: relative;
  543. .login-max-box{
  544. position: absolute;
  545. height:800px;
  546. width:1600px;
  547. background: #FFFFFF;
  548. border-radius: 30px;
  549. top:50%;
  550. left:50%;
  551. margin-top:-400px;
  552. margin-left:-800px;
  553. display: flex;
  554. .left-box{
  555. width:591px;
  556. height:500px;
  557. background-image: url("../assets/ZDimages/img_dl_sy.png");
  558. background-size: 100%;
  559. margin:172px 0 178px 140px;
  560. }
  561. .right-box{
  562. flex:1;
  563. .title {
  564. margin:91px 0 40px 0;
  565. text-align: center;
  566. padding:0;
  567. font-size: 50px;
  568. font-family: Microsoft YaHei;
  569. font-weight: bold;
  570. color: #0045AF;
  571. /*
  572. position: absolute;
  573. margin:0;
  574. top: -100px;
  575. right:-120px;
  576. font-size:60px;
  577. width:770px;
  578. text-align: center;
  579. font-weight:700;
  580. */
  581. -webkit-touch-callout: none; /* iOS Safari */
  582. -webkit-user-select: none; /* Chrome/Safari/Opera */
  583. -khtml-user-select: none; /* Konqueror */
  584. -moz-user-select: none; /* Firefox */
  585. -ms-user-select: none; /* Internet Explorer/Edge */
  586. user-select: none; /* Non-prefixed version, currently not supported by any browser */
  587. }
  588. .login-form {
  589. border-radius: 6px;
  590. background: #ffffff;
  591. width: 500px;
  592. margin:0 auto;
  593. padding: 25px 25px 5px 25px;
  594. .el-input {
  595. height: 38px;
  596. input {
  597. height: 38px;
  598. }
  599. }
  600. .input-icon {
  601. height: 39px;
  602. width: 14px;
  603. margin-left: 2px;
  604. }
  605. .username-input-box{
  606. width:448px;
  607. height:48px;
  608. background: #f8f8f8;
  609. border: 1px solid #E0E0E0;
  610. border-radius:10px;
  611. display: flex;
  612. margin-bottom:30px;
  613. img{
  614. width:20px;
  615. height:20px;
  616. margin:14px 16px 0 16px;
  617. }
  618. input{
  619. height:46px;
  620. flex:1;
  621. background: #f8f8f8;
  622. outline: none;
  623. border:none;
  624. margin-right:20px;
  625. color:#333;
  626. }
  627. input::placeholder{
  628. color:#ccc;
  629. }
  630. }
  631. .password-input-box{
  632. width:448px;
  633. height:48px;
  634. background: #f8f8f8;
  635. border: 1px solid #E0E0E0;
  636. border-radius:10px;
  637. display: flex;
  638. img{
  639. width:20px;
  640. height:20px;
  641. margin:14px 16px 0 16px;
  642. }
  643. input{
  644. height:46px;
  645. flex:1;
  646. background: #f8f8f8;
  647. outline: none;
  648. border:none;
  649. margin-right:20px;
  650. color:#333;
  651. }
  652. input::placeholder{
  653. color:#ccc;
  654. }
  655. }
  656. .code-input-box{
  657. width:450px;
  658. height:50px;
  659. display: flex;
  660. margin-bottom:60px;
  661. .code-input-left-box{
  662. width:274px;
  663. height:48px;
  664. background: #f8f8f8;
  665. border: 1px solid #E0E0E0;
  666. border-radius:10px;
  667. img{
  668. width:20px;
  669. height:20px;
  670. margin:14px 16px 0 16px;
  671. }
  672. input{
  673. height:46px;
  674. flex:1;
  675. background: #f8f8f8;
  676. outline: none;
  677. border:none;
  678. margin-right:20px;
  679. color:#333;
  680. }
  681. input::placeholder{
  682. color:#ccc;
  683. }
  684. display: flex;
  685. }
  686. .login-code {
  687. margin-left:24px;
  688. width: 150px;
  689. height: 48px;
  690. img {
  691. width: 150px;
  692. height: 48px;
  693. cursor: pointer;
  694. vertical-align: middle;
  695. }
  696. }
  697. }
  698. }
  699. .login-tip {
  700. font-size: 13px;
  701. text-align: center;
  702. color: #bfbfbf;
  703. }
  704. .el-login-footer {
  705. height: 40px;
  706. line-height: 40px;
  707. position: fixed;
  708. bottom: 0;
  709. width: 100%;
  710. text-align: center;
  711. color: #fff;
  712. font-family: Arial;
  713. font-size: 12px;
  714. letter-spacing: 1px;
  715. }
  716. .login-code-img {
  717. height: 38px;
  718. }
  719. .type-max-box{
  720. display: flex;
  721. margin-bottom:58px;
  722. width:450px;
  723. /*border-bottom:1px solid #e0e0e0;*/
  724. p{
  725. font-size:18px;
  726. text-align: center;
  727. line-height:56px;
  728. margin:0;
  729. color:#666666;
  730. cursor:pointer;
  731. }
  732. p:nth-child(1){
  733. width:90px;
  734. margin-right:30px;
  735. }
  736. p:nth-child(2){
  737. width:126px;
  738. }
  739. .typeColorA{
  740. color:#0045af;
  741. border-bottom:2px solid #0045af;
  742. }
  743. }
  744. .text-p{
  745. margin:0;
  746. width: 172px;
  747. height: 50px;
  748. font-size: 14px;
  749. font-family: Microsoft YaHei;
  750. color: #DC1616;
  751. line-height: 50px;
  752. }
  753. }
  754. .logo-img{
  755. position: absolute;
  756. left:20px;
  757. top:20px;
  758. width:267px;
  759. height:66px;
  760. }
  761. }
  762. .position-p{
  763. position: absolute;
  764. right:0;
  765. bottom:20px;
  766. width: 638px;
  767. height: 15px;
  768. font-size: 14px;
  769. color: #AAE1FF;
  770. line-height: 15px;
  771. padding:0;
  772. margin:0;
  773. }
  774. }
  775. </style>