login.vue 23 KB

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