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