index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <template>
  2. <div class="login-wrap">
  3. <div
  4. class="logo"
  5. :class="{ logoleave: jumpAnimate }"
  6. >
  7. <img src="@assets/img/icon_logo2.png" />
  8. </div>
  9. <div class="login-title">
  10. <h1 class="title-name">智慧社区管理平台</h1>
  11. <!-- <p class="title-lang">Smart community management platform</p> -->
  12. <p class="title-lang">SMART COMMUNITY MANAGEMENT PLATFORM</p>
  13. </div>
  14. <div
  15. class="ms-login ms-login1"
  16. :class="{ 'ms-login1leave': jumpAnimate }"
  17. v-show="!isSelectTenant"
  18. >
  19. <div class="ms-main">
  20. <!-- <div class="login-topImg paTop10"><img
  21. src="@assets/img/loginPop/img1.png"
  22. alt=""
  23. /></div> -->
  24. <el-tabs
  25. v-model="activeName"
  26. @tab-click="handleClick"
  27. class="login-body"
  28. >
  29. <el-tab-pane
  30. label="账号登录"
  31. name="accountNumber"
  32. class="regist_class"
  33. >
  34. <el-form>
  35. <div class="form-item">
  36. <el-input
  37. type="text"
  38. placeholder="请输入账号"
  39. required="required"
  40. v-model="accountNumberData.mobile"
  41. maxlength="11"
  42. @focus="namefocus = true"
  43. @blur="onnamefocus"
  44. clearable
  45. >
  46. </el-input>
  47. </div>
  48. <div class="form-item">
  49. <el-input
  50. type="password"
  51. placeholder="请输入密码"
  52. v-model="accountNumberData.password"
  53. @focus="phonefocus = true"
  54. @blur="onphonefocus"
  55. clearable
  56. >
  57. </el-input>
  58. </div>
  59. <div class="remember">
  60. <el-checkbox v-model="rememberName">记住账号</el-checkbox>
  61. </div>
  62. <span
  63. class="tips"
  64. v-if="accountNumberData.errMsg"
  65. >{{ accountNumberData.errMsg }}</span>
  66. <el-button
  67. type="primary"
  68. class="btn"
  69. @click="accountNumberSubmit"
  70. v-preventReClick
  71. >登录</el-button>
  72. </el-form>
  73. </el-tab-pane>
  74. <el-tab-pane
  75. label="手机登录"
  76. name="login"
  77. class="login_class"
  78. >
  79. <el-form>
  80. <div class="form-item">
  81. <el-input
  82. type="text"
  83. placeholder="请输入手机号"
  84. required="required"
  85. v-model="loginData.mobile"
  86. maxlength="11"
  87. @focus="mobilefocus = true"
  88. @blur="onmobilefocus"
  89. clearable
  90. >
  91. </el-input>
  92. </div>
  93. <div class="form-item">
  94. <el-input
  95. type="text"
  96. placeholder="请输入校验码"
  97. required="required"
  98. v-model="loginData.code"
  99. @focus="codefocus = true"
  100. @blur="oncodefocus"
  101. >
  102. </el-input>
  103. <img
  104. class="el-fl-right codeImg codeImg-item"
  105. :src="loginData.codeUrl"
  106. @click="refreshCode"
  107. />
  108. </div>
  109. <div class="form-item">
  110. <el-input
  111. type="text"
  112. placeholder="请输入手机验证码"
  113. v-model="loginData.smsCode"
  114. @focus="smsCodefocus = true"
  115. @blur="onsmsCodefocus"
  116. >
  117. </el-input>
  118. <el-button
  119. type="text"
  120. v-if="loginData.time"
  121. class="el-fl-right codeImg sms-code sms-code-istime"
  122. :disabled="!!loginData.time"
  123. @click="getCode"
  124. >
  125. {{ `${loginData.time}s后重新获取` }}</el-button>
  126. <el-button
  127. type="text"
  128. v-else
  129. class="el-fl-right codeImg sms-code sms-code-notime"
  130. :disabled="!!loginData.time"
  131. @click="getCode"
  132. >
  133. 获取验证码</el-button>
  134. </div>
  135. <span
  136. class="tips"
  137. v-if="loginData.errMsg"
  138. >{{ loginData.errMsg }}</span>
  139. <el-button
  140. type="primary"
  141. class="btn mgTop16"
  142. @click="loginSubmit"
  143. >登录</el-button>
  144. </el-form>
  145. </el-tab-pane>
  146. </el-tabs>
  147. <!-- <div class="login-buttonImg paTop10"><img
  148. src="@assets/img/loginPop/img2.png"
  149. alt=""
  150. /></div> -->
  151. </div>
  152. </div>
  153. <select-tenant
  154. :selectDta="loginInfoArr"
  155. :class="{ 'ms-login1leave': jumpAnimate }"
  156. v-show="isSelectTenant"
  157. ></select-tenant>
  158. </div>
  159. </template>
  160. <script>
  161. import SelectTenant from '@/components/ToggleTenant';
  162. let timer;
  163. const phoneRegExp = /^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|147)\d{8}$/,
  164. codeRegExp = /^\d{4}$/;
  165. export default {
  166. components: {
  167. SelectTenant
  168. },
  169. data () {
  170. return {
  171. isSelectTenant: false,
  172. loginInfoArr: [],
  173. // 获取url地址后面的参数
  174. activeName: 'accountNumber',
  175. urlQuery: '',
  176. activeIndex: '1',
  177. loginData: {
  178. mobile: '17800000001', //手机号
  179. code: '', //校验码
  180. codeUrl: '',
  181. smsCode: '', //手机校验码
  182. time: 0,
  183. random: '', //用于重新获取数字校验码的随机数
  184. errMsg: ''
  185. },
  186. accountNumberData: {
  187. mobile: '',
  188. password: '',
  189. errMsg: ''
  190. },
  191. rememberName: false,
  192. registerData: {
  193. registered: false,
  194. name: '',
  195. mobile: '',
  196. errMsg: '',
  197. roleType: '',
  198. roleTypeOptions: [
  199. {
  200. id: 1,
  201. label: '水表厂家用户'
  202. },
  203. {
  204. id: 2,
  205. label: '自来水公司用户'
  206. },
  207. {
  208. id: 3,
  209. label: '城市合伙人'
  210. }
  211. ]
  212. },
  213. mobilefocus: false,
  214. codefocus: false,
  215. smsCodefocus: false,
  216. namefocus: false,
  217. phonefocus: false,
  218. tanasfocus: false,
  219. jumpAnimate: false
  220. };
  221. },
  222. methods: {
  223. onmobilefocus () {
  224. if (this.loginData.mobile.length === 0) {
  225. this.mobilefocus = false;
  226. }
  227. },
  228. oncodefocus () {
  229. if (this.loginData.code.length === 0) {
  230. this.codefocus = false;
  231. }
  232. },
  233. onsmsCodefocus () {
  234. if (this.loginData.smsCode.length === 0) {
  235. this.smsCodefocus = false;
  236. }
  237. },
  238. onnamefocus () {
  239. if (this.registerData.name.length === 0) {
  240. this.namefocus = false;
  241. }
  242. },
  243. onphonefocus () {
  244. if (this.registerData.mobile.length === 0) {
  245. this.phonefocus = false;
  246. }
  247. },
  248. ontanasfocus () {
  249. if (this.registerData.roleType.length === 0) {
  250. this.tanasfocus = false;
  251. }
  252. },
  253. ontanaschange (val) {
  254. if (val.length === 0) {
  255. this.tanasfocus = false;
  256. }
  257. },
  258. //获取随机数
  259. getRandom () {
  260. const CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  261. for (var r, chars = CHARS, uuid = new Array(36), rnd = 0, i = 0; 36 > i; i++) {
  262. 8 == i || 13 == i || 18 == i || 23 == i
  263. ? (uuid[i] = '-')
  264. : 14 == i
  265. ? (uuid[i] = '4')
  266. : (2 >= rnd && (rnd = (33554432 + 16777216 * Math.random()) | 0),
  267. (r = 15 & rnd),
  268. (rnd >>= 4),
  269. (uuid[i] = chars[19 == i ? (3 & r) | 8 : r]));
  270. }
  271. return uuid.join('');
  272. },
  273. refreshCode () {
  274. this.loginData.random = this.getRandom();
  275. this.loginData.codeUrl = `/czc-user-auth/validateCode/image?random=${this.loginData.random}`;
  276. },
  277. //获取手机验证码
  278. getCode () {
  279. const { mobile, code, random } = this.loginData;
  280. let errorMsg = '';
  281. if (!codeRegExp.test(code)) {
  282. errorMsg = '您输入的图形验证码有误,请重新输入';
  283. }
  284. if (!code) {
  285. errorMsg = '请输入图形验证码';
  286. }
  287. if (!phoneRegExp.test(mobile)) {
  288. errorMsg = '您输入的手机号码格式有误,请重新输入';
  289. }
  290. if (!mobile) {
  291. errorMsg = '请输入手机号码';
  292. }
  293. if (errorMsg) {
  294. this.loginData.errMsg = errorMsg;
  295. return;
  296. }
  297. this.loginData.errMsg = '';
  298. this.$http
  299. .postForm('/sms/v2/send', {
  300. mobile,
  301. code,
  302. random
  303. })
  304. .then(({ status, msg }) => {
  305. this.$message({
  306. type: status === 0 ? 'success' : 'error',
  307. message: msg
  308. });
  309. if (status === 0) {
  310. this.loginData.time = 60;
  311. timer = setInterval(() => {
  312. this.loginData.time -= 1;
  313. if (this.loginData.time == 0) {
  314. clearInterval(timer);
  315. }
  316. }, 1000);
  317. }
  318. });
  319. },
  320. registerSubmit () {
  321. const params = { ...this.registerData };
  322. if (!params.name) {
  323. this.registerData.errMsg = '· 请输入姓名';
  324. return;
  325. }
  326. if (!params.mobile) {
  327. this.registerData.errMsg = '· 请输入手机号';
  328. return;
  329. }
  330. if (!phoneRegExp.test(params.mobile)) {
  331. this.registerData.errMsg = '· 请输入正确的手机号';
  332. return;
  333. }
  334. if (!params.roleType) {
  335. this.registerData.errMsg = '· 请输入用户类型';
  336. return;
  337. }
  338. let registparams = {
  339. username: params.name,
  340. phone: params.mobile,
  341. userType: params.roleType
  342. };
  343. this.$http.post('/user/insertRegister', registparams).then(({ status, data, msg }) => {
  344. if (status === 0) {
  345. this.registerData.errMsg = '';
  346. this.$message({
  347. type: 'success',
  348. message: '注册成功,请登录'
  349. });
  350. this.activeName = 'accountNumber';
  351. } else {
  352. this.$message({
  353. type: 'err',
  354. message: '注册失败'
  355. });
  356. }
  357. });
  358. },
  359. accountNumberSubmit () {
  360. let errorMsg = '';
  361. const params = { ...this.accountNumberData };
  362. if (!params.password) {
  363. errorMsg = '· 请输入密码';
  364. }
  365. if (!params.mobile) {
  366. errorMsg = '· 请输入账号';
  367. }
  368. if (errorMsg) {
  369. this.accountNumberData.errMsg = errorMsg;
  370. return;
  371. }
  372. if (this.rememberName) {
  373. localStorage.setItem('accountNumberName', params.mobile);
  374. } else {
  375. localStorage.removeItem('accountNumberName');
  376. }
  377. this.$http.postForm('/user/mobileLogin', params).then(({ status, data, msg }) => {
  378. if (status === 0 && data) {
  379. localStorage.setItem('CZC_token', data.token.access_token);
  380. this.loginInfoArr = data.loginInfo;
  381. if (data.loginInfo.length > 1) {
  382. this.isSelectTenant = true;
  383. } else {
  384. console.log('this.loginInfoArr', this.loginInfoArr);
  385. this.$store.commit('setloginInfo', data.loginInfo[0]);
  386. this.jumpAnimate = true;
  387. window.sessionStorage.setItem('loginJson', JSON.stringify(this.loginInfoArr));
  388. window.sessionStorage.setItem('loginJsonActive', JSON.stringify(this.loginInfoArr[0]));
  389. setTimeout(() => {
  390. this.$router.push({
  391. path: '/nav'
  392. });
  393. }, 1500);
  394. }
  395. } else {
  396. this.$message.error(msg);
  397. if (msg === '您输入的手机验证码已过期,请重新输入') {
  398. self.refreshCode();
  399. self.loginData.code = '';
  400. }
  401. }
  402. });
  403. },
  404. loginSubmit () {
  405. let errorMsg = '';
  406. const params = { ...this.loginData };
  407. if (!codeRegExp.test(params.smsCode)) {
  408. errorMsg = '· 您输入的手机验证码有误,请重新输入';
  409. }
  410. if (!params.smsCode) {
  411. errorMsg = '· 请输入手机检验码';
  412. }
  413. if (!codeRegExp.test(params.code)) {
  414. errorMsg = '· 您输入的图形验证码有误,请重新输入';
  415. }
  416. if (!params.code) {
  417. errorMsg = '· 请输入图形验证码';
  418. }
  419. if (!phoneRegExp.test(params.mobile)) {
  420. errorMsg = '· 请输入正确的手机号';
  421. }
  422. if (!params.mobile) {
  423. errorMsg = '· 请输入手机号';
  424. }
  425. if (errorMsg) {
  426. this.loginData.errMsg = errorMsg;
  427. return;
  428. }
  429. this.$http.postForm('/user/smsCodeLogin', params).then(({ status, data, msg }) => {
  430. if (status === 0 && data) {
  431. localStorage.setItem('CZC_token', data.token.access_token);
  432. this.loginInfoArr = data.loginInfo;
  433. if (data.loginInfo.length > 1) {
  434. this.isSelectTenant = true;
  435. } else {
  436. console.log('this.loginInfoArr', this.loginInfoArr);
  437. this.$store.commit('setloginInfo', data.loginInfo[0]);
  438. this.jumpAnimate = true;
  439. window.sessionStorage.setItem('loginJson', JSON.stringify(this.loginInfoArr));
  440. window.sessionStorage.setItem('loginJsonActive', JSON.stringify(this.loginInfoArr[0]));
  441. setTimeout(() => {
  442. this.$router.push({
  443. path: '/nav'
  444. });
  445. }, 1500);
  446. }
  447. } else {
  448. this.$message.error(msg);
  449. if (msg === '您输入的手机验证码已过期,请重新输入') {
  450. self.refreshCode();
  451. self.loginData.code = '';
  452. }
  453. }
  454. });
  455. }
  456. },
  457. created () {
  458. if (localStorage.getItem('logOut')) {
  459. this.$message.success('您已退出登录');
  460. localStorage.removeItem('logOut');
  461. }
  462. let that = this;
  463. document.onkeydown = function (e) {
  464. e = window.event || e;
  465. if (that.$route.path == '/login' && (e.code == 'Enter' || e.code == 'enter') && that.activeName == 'accountNumber') {
  466. that.loginSubmit(); //登录函数
  467. }
  468. };
  469. this.refreshCode();
  470. localStorage.removeItem('menupath');
  471. localStorage.removeItem('ms_username');
  472. localStorage.removeItem('CZC_token');
  473. // sessionStorage.removeItem('tabs');
  474. sessionStorage.clear();
  475. const accountNumberName = localStorage.getItem('accountNumberName') || '';
  476. this.accountNumberData.mobile = accountNumberName;
  477. this.rememberName = !!accountNumberName;
  478. }
  479. };
  480. </script>
  481. <style lang="scss" scoped>
  482. @import './style.scss';
  483. // /deep/.el-input__inner {
  484. // font-family: Microsoft YaHei;
  485. // height: 48px;
  486. // line-height: 10px;
  487. // border-radius: 6px;
  488. // background: #1d212a;
  489. // border: 1px solid rgba(255, 255, 255, 0.3);
  490. // color: #ffffff;
  491. // font-size: 16px;
  492. // font-weight: 400;
  493. // &:focus {
  494. // border: 1px solid #0eaeff;
  495. // border-radius: 6px;
  496. // }
  497. // // opacity: 0.3;
  498. // }
  499. // /deep/.el-form-item {
  500. // margin-bottom: 30px;
  501. // }
  502. // /deep/.el-tabs {
  503. // // position: relative;
  504. // // position: absolute;
  505. // // top: 10px;
  506. // width: 100%;
  507. // // padding: 0px 30px 30px 30px;
  508. // // height: 360px;
  509. // .el-tabs__header {
  510. // margin: 0;
  511. // }
  512. // .el-tabs__content {
  513. // .el-form .form-item {
  514. // }
  515. // }
  516. // .el-tabs__nav-wrap::after {
  517. // display: none;
  518. // }
  519. // .el-tabs__nav {
  520. // width: 100%;
  521. // .el-tabs__bar {
  522. // height: 0;
  523. // }
  524. // .el-tabs__active-bar {
  525. // background-color: transparent;
  526. // }
  527. // .el-tabs__item {
  528. // width: 50%;
  529. // color: #ffffff33;
  530. // text-align: center;
  531. // padding: 0;
  532. // }
  533. // .el-tabs__item.is-active {
  534. // color: #ffffff;
  535. // &::after {
  536. // display: block;
  537. // content: '';
  538. // position: absolute;
  539. // width: 48px;
  540. // left: 50%;
  541. // transform: translateX(-50%);
  542. // height: 2px;
  543. // background: #0eaeff;
  544. // bottom: 0;
  545. // }
  546. // }
  547. // }
  548. // }
  549. // /deep/ .right-tabbox-newnotice /deep/.el-tabs__nav-wrap::after {
  550. // position: static !important;
  551. // }
  552. // // 改版
  553. // // 动画
  554. // @-webkit-keyframes lightfadeout {
  555. // 0% {
  556. // opacity: 0;
  557. // }
  558. // 100% {
  559. // opacity: 1;
  560. // }
  561. // }
  562. // @keyframes lightfadeout {
  563. // 0% {
  564. // opacity: 0;
  565. // }
  566. // 100% {
  567. // opacity: 1;
  568. // }
  569. // }
  570. // @-webkit-keyframes lightfadeoutleave {
  571. // 0% {
  572. // opacity: 1;
  573. // }
  574. // 100% {
  575. // opacity: 0;
  576. // }
  577. // }
  578. // @keyframes lightfadeoutleave {
  579. // 0% {
  580. // opacity: 1;
  581. // }
  582. // 100% {
  583. // opacity: 0;
  584. // }
  585. // }
  586. // .login-wrap .logo {
  587. // position: absolute;
  588. // top: 120px;
  589. // left: 130px;
  590. // margin: 0;
  591. // opacity: 0;
  592. // animation-name: lightfadeout;
  593. // animation-duration: 0.267s;
  594. // animation-timing-function: linear;
  595. // animation-delay: 1.267s;
  596. // animation-iteration-count: 1;
  597. // animation-fill-mode: forwards;
  598. // }
  599. // .login-wrap .logo > img {
  600. // width: 150px;
  601. // height: 40px;
  602. // }
  603. // .login-wrap .logoleave {
  604. // opacity: 1;
  605. // animation-name: lightfadeoutleave;
  606. // animation-duration: 0.267s;
  607. // animation-timing-function: linear;
  608. // animation-delay: 0.3s;
  609. // animation-iteration-count: 1;
  610. // animation-fill-mode: forwards;
  611. // }
  612. // .ms-login1 {
  613. // opacity: 0;
  614. // animation-name: lightfadeout;
  615. // animation-duration: 0.5s;
  616. // animation-timing-function: linear;
  617. // animation-delay: 0.5s;
  618. // animation-iteration-count: 1;
  619. // animation-fill-mode: forwards;
  620. // }
  621. // .ms-login1leave {
  622. // opacity: 1;
  623. // animation-name: lightfadeoutleave;
  624. // animation-duration: 0.5s;
  625. // animation-timing-function: linear;
  626. // animation-delay: 0.5s;
  627. // animation-iteration-count: 1;
  628. // animation-fill-mode: forwards;
  629. // }
  630. // /deep/.el-input__inner {
  631. // &::placeholder {
  632. // font-size: 16px;
  633. // font-family: Microsoft YaHei;
  634. // font-weight: 400;
  635. // color: #ffffff33;
  636. // }
  637. // }
  638. // .prefix-img {
  639. // height: 18px;
  640. // position: absolute;
  641. // top: 15px;
  642. // padding: 0 10px 0 14px;
  643. // }
  644. // .center-middle {
  645. // width: 1660px;
  646. // height: 430px;
  647. // position: absolute;
  648. // top: 23%;
  649. // left: 50%;
  650. // transform: translate(-50%, -50%);
  651. // }
  652. // .suffix-img {
  653. // position: absolute;
  654. // top: 15px;
  655. // right: 0;
  656. // padding: 0 10px 0 14px;
  657. // }
  658. // /deep/.el-input--prefix .el-input__inner {
  659. // padding-left: 44px;
  660. // }
  661. // .login-wrap .ms-main .form-item .codeImg-item {
  662. // width: 110px;
  663. // height: 34px;
  664. // background: #97a3c1;
  665. // opacity: 0.8;
  666. // border-radius: 4px;
  667. // }
  668. // .login-wrap .ms-main .form-item .sms-code {
  669. // border-left: 1px solid rgba(38, 133, 242, 0.3);
  670. // padding-left: 26px;
  671. // font-size: 16px;
  672. // font-family: Microsoft YaHei;
  673. // font-weight: 400;
  674. // color: rgba(14, 174, 255, 1);
  675. // }
  676. // .login-wrap .ms-main .form-item .sms-code-notime {
  677. // width: 110px;
  678. // padding-left: 10px;
  679. // }
  680. // .login-wrap .ms-main .form-item .sms-code-istime {
  681. // font-size: 16px;
  682. // font-family: Microsoft YaHei;
  683. // font-weight: 400;
  684. // color: rgba(255, 255, 255, 0.4);
  685. // }
  686. // .login-wrap .ms-main .btn {
  687. // border: none;
  688. // }
  689. // .define-el-select {
  690. // /deep/ .el-input__suffix {
  691. // display: none;
  692. // }
  693. // }
  694. // .login-wrap .ms-main .form-item .btn-select {
  695. // padding: 0 10px 0 20px;
  696. // pointer-events: none;
  697. // img {
  698. // width: 18px;
  699. // height: 18px;
  700. // }
  701. // }
  702. // .login-wrap {
  703. // min-width: 1280px;
  704. // width: 100%;
  705. // height: 100%;
  706. // background: url(../../assets/img/loginPop/bg.png) center no-repeat;
  707. // background-size: cover;
  708. // overflow: hidden;
  709. // position: relative;
  710. // .ms-login {
  711. // position: absolute;
  712. // top: 50%;
  713. // right: 215px;
  714. // transform: translateY(-50%);
  715. // }
  716. // .login-title {
  717. // position: absolute;
  718. // top: 226px;
  719. // left: 130px;
  720. // color: white;
  721. // font-family: PingFangSC-Semibold;
  722. // .title-name {
  723. // font-size: 60px;
  724. // }
  725. // .title-lang {
  726. // font-size: 17.5px;
  727. // display: inline-block;
  728. // // margin-left: 60px;
  729. // // transform: scale(1.35, 0.9);
  730. // // -ms-transform: scale(1.35, 0.9);
  731. // // -webkit-transform: scale(1.35, 0.9);
  732. // // -moz-transform: scale(1.35, 0.9);
  733. // // -o-transform: scale(1.35, 0.9);
  734. // margin-left: 30px;
  735. // transform: scale(1.15, 0.8);
  736. // -ms-transform: scale(1.15, 0.8);
  737. // -webkit-transform: scale(1.15, 0.8);
  738. // -moz-transform: scale(1.15, 0.8);
  739. // -o-transform: scale(1.15, 0.8);
  740. // }
  741. // }
  742. // .ms-main {
  743. // width: 400px;
  744. // border: 1px solid rgba(240, 238, 241, 0.2);
  745. // border-radius: 10px;
  746. // opacity: 0.8;
  747. // height: 468px;
  748. // background: linear-gradient(0deg, #101327 0%, #29314c 100%);
  749. // box-shadow: 0px 10px 80px 0px rgba(0, 0, 0, 0.15);
  750. // .login-topImg,
  751. // .login-buttonImg {
  752. // width: 100%;
  753. // text-align: center;
  754. // }
  755. // .login-buttonImg {
  756. // position: absolute;
  757. // bottom: 0;
  758. // }
  759. // .login-body {
  760. // padding: 15px 30px 0 30px;
  761. // .tips {
  762. // color: #f25050;
  763. // font-size: 14px;
  764. // display: inline-block;
  765. // margin-bottom: 10px;
  766. // }
  767. // .btn {
  768. // width: 100%;
  769. // background: linear-gradient(-90deg, #0098ef 0%, #0eaeff 100%);
  770. // border-radius: 6px;
  771. // height: 48px;
  772. // font-size: 20px;
  773. // font-family: Microsoft YaHei;
  774. // font-weight: 400;
  775. // color: #ffffff;
  776. // }
  777. // .remember {
  778. // margin-bottom: 30px;
  779. // }
  780. // }
  781. // .form-item {
  782. // margin: 24px 0;
  783. // height: 48px;
  784. // display: flex;
  785. // align-items: center;
  786. // position: relative;
  787. // .codeImg {
  788. // position: absolute;
  789. // right: 10px;
  790. // }
  791. // .code {
  792. // border-left: 1px solid #2887f2;
  793. // height: 20px;
  794. // line-height: 0px;
  795. // padding-left: 10px;
  796. // }
  797. // .el-select {
  798. // width: 100%;
  799. // }
  800. // .icon {
  801. // position: absolute;
  802. // top: 18px;
  803. // left: 6px;
  804. // }
  805. // }
  806. // }
  807. // }
  808. // .paTop10 {
  809. // padding-top: 10px;
  810. // }
  811. // .mgTop16 {
  812. // margin-top: 16px;
  813. // }
  814. </style>