login.vue 23 KB

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