login.vue 23 KB

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