Login.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <template>
  2. <div>
  3. <!--头部-->
  4. <nav class="x-navbar">
  5. <div class="container">
  6. <div class="navbar-header">
  7. <input type="hidden" name="iconUrl" value="">
  8. <a class="navbar-brand" :href="JSON.parse(loginStyle.returnHomeUrl).url || ''">
  9. <img :src="loginStyle.logoUrl" alt="">
  10. <span>{{loginStyle.title || ''}}</span>
  11. </a>
  12. </div>
  13. <div class="collapse navbar-collapse navbar-right">
  14. <a :href="JSON.parse(loginStyle.returnHomeUrl).url || ''">{{JSON.parse(loginStyle.returnHomeUrl).name || ''}}</a>
  15. <a href="http://uas.ubtob.com/serve#/" v-if="JSON.parse(loginStyle.returnHomeUrl).needHelp">帮助</a>
  16. </div>
  17. </div>
  18. </nav>
  19. <div class="x-container">
  20. <!-- background slider -->
  21. <div class="x-banner-wrap">
  22. <div class="x-banner">
  23. <ul class="list-unstyled">
  24. <li id="bgStyle" v-bind:style="{ background: `url(${loginStyle.bgUrl}) center center/auto 100% no-repeat ${loginStyle.bgColor}` }">
  25. <a :href="loginStyle.bgLink" v-if="loginStyle.bgLink">
  26. <div class="inner">
  27. <div class="x-title x-text-0"></div>
  28. <div class="x-subtitle x-text-0"></div>
  29. <div class="x-btn-group">
  30. </div>
  31. </div>
  32. </a>
  33. <a v-else style="cursor: default">
  34. <div class="inner">
  35. <div class="x-title x-text-0"></div>
  36. <div class="x-subtitle x-text-0"></div>
  37. <div class="x-btn-group">
  38. </div>
  39. </div>
  40. </a>
  41. </li>
  42. </ul>
  43. </div>
  44. </div>
  45. <div class="x-login-wrap">
  46. <div class="x-login">
  47. <!-- user & pwd login wrap -->
  48. <div id="form-wrap" class="x-login-form">
  49. <div>
  50. <el-form :model="login" :rules="rules2" ref="login" class="demo-ruleForm login-form">
  51. <el-form-item prop="username">
  52. <el-input type="text" v-model="login.username" auto-complete="new-password" placeholder="手机号/邮箱/账号ID"></el-input>
  53. <i class="fa fa-user"></i>
  54. </el-form-item>
  55. <el-form-item prop="password">
  56. <input autocomplete="new-password"
  57. type="password" style="display: none;width:0;height:0;">
  58. <el-input type="password"
  59. v-model="login.password"
  60. auto-complete="new-password"
  61. placeholder="密码"
  62. @keyup.enter.native="isLogin(true)"></el-input>
  63. <i class="fa fa-lock"></i>
  64. </el-form-item>
  65. <el-form-item prop="captcha" class="captcha" v-show="showCheckCode">
  66. <el-input type="text"
  67. v-model="login.captcha"
  68. auto-complete="off"
  69. class="code-input"
  70. @keyup.enter.native="isLogin(true)"></el-input>
  71. <img id="captchaImage" class="code-img" src="/sso/login/checkCode"/>
  72. <a class="code-click" @click="getCode">看不清换一张</a>
  73. </el-form-item>
  74. <el-form-item class="text-position">
  75. <div class="page-part" v-if="checkedRemember">
  76. <el-checkbox v-model="checked">记住密码</el-checkbox>
  77. </div>
  78. <a class="forget" id='forget' @click="goForgetPassword">忘记密码?</a>
  79. </el-form-item>
  80. <el-form-item>
  81. <a class="btn login"
  82. @click="isLogin(true)"
  83. :disabled="isLoginDisabled">登录</a>
  84. </el-form-item>
  85. </el-form>
  86. </div>
  87. <div class="warn-text-area">
  88. 为确保您账户的安全及正常使用,依《网络安全法》相关要求,6月1日起会员账户需绑定手机、设置密码保护。感谢您的理解和支持!
  89. </div>
  90. <div class="link-go">
  91. <a @click="changeManage" class="first">更换管理员</a>
  92. <a id="register" @click="goRegister" class="second">
  93. <i class="fa fa-arrow-circle-o-right"></i>免费注册</a>
  94. </div>
  95. </div>
  96. <!-- qrcode login wrap -->
  97. <div id="qrcode-wrap" class="x-login-qrcode">
  98. <div class="x-qrcode-help">
  99. <span>打开手机客户端,扫描下面的二维码</span>
  100. </div>
  101. <div class="x-qrcode-img">
  102. <img src="/images/all/qrcode.jpg">
  103. </div>
  104. <div class="x-qrcode-ex">
  105. <ul class="list-unstyled list-inline">
  106. <li><i class="iconfont icon-left icon-input"></i><span>免输入</span></li>
  107. <li><i class="iconfont icon-left icon-fast"></i><span>更快捷</span></li>
  108. <li><i class="iconfont icon-left icon-safe"></i><span>更安全</span></li>
  109. </ul>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. <!--选择企业弹出框-->
  115. <div>
  116. <el-dialog class="dialog"
  117. :visible.sync="dialogVisible"
  118. size="tiny">
  119. <div class="x-floating x-list" v-show="dialogVisible">
  120. <div class="x-list-header">您要登录的公司是:</div>
  121. <div class="x-list-content">
  122. <ul class="list-unstyled" >
  123. <template v-for="space in this.enterprise">
  124. <li v-text="space.name" @click="chooseOneEnterprise(false, space.id)">华商龙科技有限公司</li>
  125. </template>
  126. </ul>
  127. </div>
  128. </div>
  129. </el-dialog>
  130. </div>
  131. <loading v-show="isShowLoading"/>
  132. </div>
  133. <!--尾部-->
  134. <div v-html="loginStyle.footUrl || ''" class="footer"></div>
  135. </div>
  136. </template>
  137. <script>
  138. import Loading from '~components/common/loading/Loading.vue'
  139. export default {
  140. name: 'login',
  141. components: {
  142. Loading
  143. },
  144. data () {
  145. var validateUsername = (rule, value, callback) => {
  146. if (value === '') {
  147. this.checkUsername = false
  148. this.showCheckCode = false
  149. } else {
  150. if (this.login.username !== '') {
  151. // 获取密码输错次数
  152. this.$http.get(`/sso/login/getPwdErrorCount`, {params: {username: this.login.username}})
  153. .then(response => {
  154. if (response.data.success) {
  155. this.showCheckCode = false
  156. let getPasswordErrorCount = response.data.content || ''
  157. if (getPasswordErrorCount >= 5) {
  158. this.$message.error('密码错误次数已达上限,今日无法登陆')
  159. this.isLoginDisabled = true
  160. this.showCheckCode = false
  161. } else if (getPasswordErrorCount < 3) {
  162. this.isLoginDisabled = false
  163. this.checkUsername = true
  164. this.showCheckCode = false
  165. } else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
  166. if (getPasswordErrorCount === 3) {
  167. this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
  168. }
  169. if (getPasswordErrorCount === 4) {
  170. this.$message.error('当前已输错密码4次,若达到5次今日将无法登陆')
  171. }
  172. this.isLoginDisabled = false
  173. this.checkUsername = true
  174. this.showCheckCode = true
  175. } else {
  176. this.checkUsername = false
  177. this.showCheckCode = false
  178. }
  179. } else {
  180. return Promise.reject(response.data)
  181. }
  182. }).catch(err => {
  183. this.isShowLoading = false
  184. console.log(err)
  185. // this.$message.error(err.errMsg)
  186. })
  187. }
  188. callback()
  189. }
  190. }
  191. var validatePassword = (rule, value, callback) => {
  192. if (value === '') {
  193. this.checkPassword = false
  194. } else {
  195. if (this.login.password !== '') {
  196. this.checkPassword = true
  197. }
  198. callback()
  199. }
  200. }
  201. return {
  202. login: {
  203. username: '',
  204. password: '',
  205. captcha: '',
  206. spaceUU: ''
  207. },
  208. checked: false,
  209. checkedRemember: false,
  210. isShowLoading: false,
  211. checkUsername: false,
  212. checkPassword: false,
  213. showCheckCode: false,
  214. isLoginDisabled: false,
  215. dialogVisible: false,
  216. queryLink: '',
  217. rules2: {
  218. username: [
  219. {validator: validateUsername, trigger: 'blur'}
  220. ],
  221. password: [
  222. {validator: validatePassword, trigger: 'blur'}
  223. ]
  224. }
  225. }
  226. },
  227. mounted () {
  228. this.$nextTick(() => {
  229. this.getUrl()
  230. if (this.appId === 'mall' || this.appId === 'home') {
  231. this.getCookie()
  232. }
  233. this.validUserName()
  234. })
  235. },
  236. computed: {
  237. enterprise () {
  238. let chooseEnterprise = this.$store.state.login.chooseRegisterEnterprise.choose.data
  239. return chooseEnterprise
  240. },
  241. loginStyle () {
  242. console.log('22222', this.$store.state.login.loginStyle.data)
  243. return this.$store.state.login.loginStyle.data.content ? this.$store.state.login.loginStyle.data.content : ''
  244. }
  245. },
  246. methods: {
  247. // 获取用户错误次数
  248. validUserName () {
  249. if (this.login.username) {
  250. // 获取密码输错次数
  251. this.$http.get(`/sso/login/getPwdErrorCount`, {params: {username: this.login.username}})
  252. .then(response => {
  253. if (response.data.success) {
  254. let getPasswordErrorCount = response.data.content || ''
  255. if (getPasswordErrorCount >= 5) {
  256. this.$message.error('密码错误次数已达上限,今日无法登陆')
  257. this.isLoginDisabled = true
  258. this.showCheckCode = false
  259. } else if (getPasswordErrorCount < 3) {
  260. this.isLoginDisabled = false
  261. this.checkUsername = true
  262. this.showCheckCode = false
  263. } else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
  264. if (getPasswordErrorCount === 3) {
  265. this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
  266. }
  267. if (getPasswordErrorCount === 4) {
  268. this.$message.error('当前已输错密码4次,若达到5次今日将无法登陆')
  269. }
  270. this.isLoginDisabled = false
  271. this.checkUsername = true
  272. this.showCheckCode = true
  273. } else {
  274. this.checkUsername = false
  275. this.showCheckCode = false
  276. }
  277. } else {
  278. return Promise.reject(response.data)
  279. }
  280. }).catch(err => {
  281. this.$message.error(err.errMsg)
  282. })
  283. }
  284. },
  285. // 更换管理员
  286. changeManage () {
  287. window.location.href = `appeals/changeManagerAppeal${this.$store.state.option.fullPath}`
  288. },
  289. // 获取url参数
  290. getUrl () {
  291. var url = window.location.search
  292. var request = {}
  293. if (url.indexOf('?' !== -1)) {
  294. var str = url.substr(1)
  295. var strs = str.split('&')
  296. this.queryLink = str
  297. for (var i = 0; i < strs.length; i++) {
  298. request[strs[i].split('=')[0]] = decodeURI(strs[i].split('=')[1])
  299. }
  300. }
  301. this.appId = request['appId'] || ''
  302. this.returnUrl = request['returnURL'] || ''
  303. this.baseUrl = request['baseUrl'] || ''
  304. if (this.appId === 'home' || this.appId === 'mall') {
  305. this.checkedRemember = true
  306. }
  307. },
  308. goForgetPassword () {
  309. let url = `/reset/forgetPasswordValidationAccount?${this.queryLink}`
  310. document.getElementById('forget').href = url
  311. },
  312. // 去注册
  313. goRegister () {
  314. if (this.appId === 'mall') {
  315. var registerurl = `/register/personalRegistration?${this.queryLink}`
  316. } else {
  317. registerurl = `/register/enterpriseRegistration?${this.queryLink}`
  318. }
  319. document.getElementById('register').href = registerurl
  320. },
  321. // 获取验证码
  322. getCode () {
  323. var imgSrc = document.getElementById('captchaImage')
  324. imgSrc.setAttribute('src', '/sso/login/checkCode?timestamp=' + (new Date()).valueOf())
  325. },
  326. // 登录
  327. isLogin (flag) {
  328. this.isShowLoading = true
  329. if (!this.login.username) {
  330. this.isShowLoading = false
  331. this.$message.error('请填写账号')
  332. } else if (!this.login.password) {
  333. this.isShowLoading = false
  334. this.$message.error('请填写密码')
  335. } else {
  336. let param = new FormData()
  337. param.append('username', this.login.username)
  338. param.append('password', this.login.password)
  339. param.append('captcha', this.login.captcha)
  340. param.append('spaceUU', this.login.spaceUU)
  341. param.append('appId', this.appId)
  342. param.append('returnUrl', this.returnUrl)
  343. param.append('baseUrl', this.baseUrl)
  344. let config = {
  345. headers: {'Content-Type': 'multipart/form-data'}
  346. }
  347. this.$http.post('/sso/login', param, config)
  348. .then(response => {
  349. this.isShowLoading = false
  350. if (response.data.success) {
  351. if (response.data.content.spaces) {
  352. // 弹框让用户选择企业
  353. this.$store.commit('login/chooseRegisterEnterprise/GET_ENTERPRISE_SUCCESS', response.data.content.spaces)
  354. this.dialogVisible = flag
  355. } else if (response.data.content.loginUrls) {
  356. // 遍历登录url循环让各应用登录(需要跨域)
  357. let param = response.data.content.data
  358. let a = ''
  359. for (let n in param) {
  360. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  361. }
  362. let params = a.substr(0, a.length - 1)
  363. this.isShowLoading = true
  364. if (response.data.content.currentUrl) {
  365. console.log(params)
  366. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  367. name: 'successCallback',
  368. timeout: 3000
  369. }, (err, data) => {
  370. if (err) {
  371. this.$message.error('登录超时,请重试')
  372. this.isShowLoading = false
  373. throw err
  374. } else {
  375. this.loginOther(response, params)
  376. }
  377. })
  378. } else {
  379. this.loginOther(response, params, 3000)
  380. }
  381. }
  382. } else {
  383. this.$message.error(response.data)
  384. var count = response.data.errorCount
  385. if (count < 3) {
  386. this.showCheckCode = false
  387. this.isLoginDisabled = false
  388. } else if (count >= 5) {
  389. this.$message.error('密码错误次数已达上限,今日无法登陆')
  390. this.isLoginDisabled = true
  391. this.showCheckCode = false
  392. } else if (count >= 3 && count < 5) {
  393. this.getCode()
  394. if (count === 3) {
  395. this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
  396. }
  397. this.showCheckCode = true
  398. this.isLoginDisabled = false
  399. }
  400. return Promise.reject(response.data)
  401. }
  402. }).catch(err => {
  403. this.isShowLoading = false
  404. let _this = this
  405. setTimeout(function () {
  406. _this.getCode()
  407. }, 100)
  408. this.$message.error(err.errMsg)
  409. })
  410. }
  411. },
  412. chooseOneEnterprise (flag, spaceUU) {
  413. this.login.spaceUU = spaceUU
  414. this.dialogVisible = false
  415. this.isLogin(flag)
  416. if (this.appId === 'mall' || this.appId === 'home') {
  417. if (this.checked) {
  418. this.setCookie(this.login.username, this.login.password, 7)
  419. } else {
  420. this.clearCookie()
  421. }
  422. }
  423. },
  424. getJsonp: function (url, timeout = 500) {
  425. return new Promise((resolve, reject) => {
  426. this.$jsonp(url, {
  427. name: 'successCallback',
  428. timeout: timeout
  429. }, function (err, data) {
  430. if (err) {
  431. reject(err)
  432. throw err
  433. } else {
  434. resolve(data)
  435. }
  436. })
  437. })
  438. },
  439. crossAfter (url) {
  440. try {
  441. window.location.href = url
  442. } catch (err) {
  443. console.log(err)
  444. }
  445. },
  446. loginOther (response, a, timeout) {
  447. const crossAfter = this.crossAfter
  448. let promises = []
  449. for (let i in response.data.content.loginUrls) {
  450. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  451. }
  452. Promise.all(promises).then(() => {
  453. crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
  454. }).catch(() => {
  455. crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
  456. })
  457. },
  458. // 设置cookie
  459. setCookie (cName, cPwd, exdays) {
  460. let exdate = new Date()
  461. exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays)
  462. window.document.cookie = 'userName' + '=' + cName + ';path=/;expires=' + exdate.toGMTString()
  463. window.document.cookie = 'userPwd' + '=' + cPwd + ';path=/;expires=' + exdate.toGMTString()
  464. },
  465. // 读取cookies
  466. getCookie () {
  467. if (document.cookie.length > 0) {
  468. let arr = document.cookie.split(';')
  469. for (var i = 0; i < arr.length; i++) {
  470. let arr2 = arr[i].split('=')
  471. if (arr2[0].trim() === 'userName') {
  472. this.login.username = arr2[1]
  473. }
  474. if (arr2[0].trim() === 'userPwd') {
  475. this.login.password = arr2[1]
  476. }
  477. if (this.login.username && this.login.username) {
  478. this.checked = true
  479. }
  480. }
  481. }
  482. },
  483. // 清除cookie
  484. clearCookie () {
  485. this.setCookie('', '', -1)
  486. }
  487. }
  488. }
  489. </script>
  490. <style lang="scss" scoped type="text/scss">
  491. @import '~assets/scss/mixins';
  492. @import '~assets/scss/variables';
  493. .x-navbar{
  494. height: 80px;
  495. line-height: 80px;
  496. margin: 0;
  497. .container{
  498. position: relative;
  499. width: 990px!important;
  500. height: 80px;
  501. .navbar-header{
  502. height: 80px;
  503. line-height: 80px;
  504. }
  505. a.navbar-brand{
  506. overflow: hidden;
  507. padding: 0px;
  508. height: inherit;
  509. line-height: inherit;
  510. font-family: "\5FAE\8F6F\96C5\9ED1";
  511. font-size: 24px;
  512. font-weight: 400;
  513. color: #888;
  514. img{
  515. margin: 28px 8px 0 0;
  516. max-width: 80px;
  517. max-height: 27px;
  518. vertical-align: middle;
  519. float: left;
  520. }
  521. span{
  522. float: left;
  523. }
  524. }
  525. .collapse{
  526. a{
  527. padding-left: 12px;
  528. margin-right: 10px;
  529. color: #666;
  530. outline: 0;
  531. border-left: 1px solid #ddd;
  532. &:first-child{
  533. border-width: 0;
  534. }
  535. }
  536. }
  537. }
  538. }
  539. .x-container{
  540. position: relative;
  541. height: 475px;
  542. div.link-go {
  543. text-align: right;
  544. margin-top: 7px;
  545. a{
  546. color: #2d8cf0;
  547. background: 0 0;
  548. text-decoration: none;
  549. outline: 0;
  550. cursor: pointer;
  551. transition: color .2s ease;
  552. }
  553. a.first{
  554. float: left;
  555. margin-top: 3px;
  556. font-size: 12px;
  557. }
  558. }
  559. /*登录弹出框*/
  560. .x-floating {
  561. position: fixed;
  562. top: 80px;
  563. left: 50%;
  564. z-index: 100000;
  565. opacity: 1;
  566. -webkit-transition: all .5s;
  567. -moz-transition: all .5s;
  568. transition: all .5s;
  569. }
  570. .x-list {
  571. width: 60%;
  572. height:420px;
  573. margin-left: -30%;
  574. background: #fff;
  575. border-top: 1px solid #e7e7e7;
  576. cursor: pointer;
  577. .x-list-header {
  578. padding: 10px 20px;
  579. background: #e0e0e0;
  580. height: 42px;
  581. line-height: 21px;
  582. font-size: 14px;
  583. font-weight: 700;
  584. color: #505050;
  585. }
  586. .x-list-content{
  587. overflow-y: auto;
  588. height:375px;
  589. ul{
  590. margin-bottom: 0;
  591. li{
  592. display:inline-block;
  593. padding: 10px 20px;
  594. width: 33%;
  595. overflow: hidden;
  596. white-space: nowrap;
  597. text-overflow: ellipsis;
  598. height: 42px;
  599. line-height: 21px;
  600. font-size: 12px;
  601. color: #505050;
  602. border-bottom: 1px solid #e7e7e7;
  603. &:hover{
  604. background: #e7e7e7;
  605. }
  606. }
  607. }
  608. }
  609. .x-list .x-list-header, .x-list li {
  610. padding: 10px 20px;
  611. border-bottom: 1px solid #e7e7e7;
  612. }
  613. }
  614. .x-floating.in {
  615. top: 80px;
  616. opacity: 1;
  617. }
  618. .x-banner-wrap {
  619. position: absolute;
  620. left: 0;
  621. top: 0;
  622. width: 100%;
  623. height: 475px;
  624. .x-banner {
  625. position: relative;
  626. overflow: auto;
  627. height: 475px;
  628. text-align: center;
  629. li{
  630. width: 100%;
  631. height: 475px;
  632. .inner{
  633. height: 100%;
  634. }
  635. }
  636. }
  637. }
  638. .x-login-wrap{
  639. position: absolute;
  640. top: 10px;
  641. right: 50%;
  642. margin-right: -495px;
  643. height: 475px;
  644. z-index: 5;
  645. .x-login {
  646. position: relative;
  647. top: 40px;
  648. width: 346px;
  649. background: #fff;
  650. overflow: visible;
  651. z-index: 4;
  652. .x-login-form, .x-login-qrcode {
  653. padding: 20px;
  654. .btn{
  655. background: #5078cb;
  656. color: #fff;
  657. font-weight: 700;
  658. letter-spacing: 4px;
  659. border-radius: 0;
  660. }
  661. .x-has-feedback-right {
  662. float: right;
  663. display: inline-block;
  664. a{
  665. color: #5078cb;
  666. }
  667. }
  668. .x-has-feedback-left {
  669. position: relative;
  670. .x-input {
  671. padding-left: 30px;
  672. line-height: 18px;
  673. color: #555;
  674. border-color: #ccc;
  675. border-radius: 0;
  676. box-shadow: none;
  677. }
  678. i.fa{
  679. position: absolute;
  680. top: 2px;
  681. left: 0;
  682. z-index: 2;
  683. display: block;
  684. width: 30px;
  685. height: 34px;
  686. line-height: 34px;
  687. text-align: center;
  688. pointer-events: none;
  689. color: #999;
  690. font-size: 18px;
  691. }
  692. }
  693. i.fa-keyboard-o{
  694. position: absolute;
  695. right: 10px;
  696. top: 10px;
  697. }
  698. i.fa-arrow-circle-o-right{
  699. margin-right: 5px;
  700. font-size: 14px;
  701. color: #5078cb;
  702. }
  703. .warn-text-area{
  704. margin-top: 5px;
  705. font-size: 13px;
  706. color: #000;
  707. }
  708. .text-position {
  709. overflow: hidden;
  710. .page-part {
  711. float: left;
  712. margin-bottom: 0;
  713. .el-checkbox {
  714. margin: 0;
  715. span.el-checkbox__inner{
  716. width: 14px;
  717. height: 14px;
  718. }
  719. }
  720. }
  721. .forget {
  722. float: right;
  723. color: #2d8cf0;
  724. }
  725. }
  726. }
  727. .x-login-qrcode{
  728. display: none;
  729. }
  730. }
  731. }
  732. }
  733. .footer{
  734. padding: 50px 0;
  735. }
  736. </style>