login.vue 23 KB

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