login.vue 22 KB

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