Login.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  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. document.getElementById('register').href = `/register/enterpriseRegistration?${this.queryLink}`
  315. },
  316. // 获取验证码
  317. getCode () {
  318. var imgSrc = document.getElementById('captchaImage')
  319. imgSrc.setAttribute('src', '/sso/login/checkCode?timestamp=' + (new Date()).valueOf())
  320. },
  321. // 登录
  322. isLogin (flag) {
  323. this.isShowLoading = true
  324. if (!this.login.username) {
  325. this.isShowLoading = false
  326. this.$message.error('请填写账号')
  327. } else if (!this.login.password) {
  328. this.isShowLoading = false
  329. this.$message.error('请填写密码')
  330. } else {
  331. let param = new FormData()
  332. param.append('username', this.login.username)
  333. param.append('password', this.login.password)
  334. param.append('captcha', this.login.captcha)
  335. param.append('spaceUU', this.login.spaceUU)
  336. param.append('appId', this.appId)
  337. param.append('returnUrl', this.returnUrl)
  338. param.append('baseUrl', this.baseUrl)
  339. let config = {
  340. headers: {'Content-Type': 'multipart/form-data'}
  341. }
  342. this.$http.post('/sso/login', param, config)
  343. .then(response => {
  344. this.isShowLoading = false
  345. if (response.data.success) {
  346. if (response.data.content.spaces) {
  347. // 弹框让用户选择企业
  348. this.$store.commit('login/chooseRegisterEnterprise/GET_ENTERPRISE_SUCCESS', response.data.content.spaces)
  349. this.dialogVisible = flag
  350. } else if (response.data.content.loginUrls) {
  351. // 遍历登录url循环让各应用登录(需要跨域)
  352. let param = response.data.content.data
  353. let a = ''
  354. for (let n in param) {
  355. a += (n + '=' + encodeURIComponent(param[n]) + '&')
  356. }
  357. let params = a.substr(0, a.length - 1)
  358. this.isShowLoading = true
  359. if (response.data.content.currentUrl) {
  360. console.log(params)
  361. this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
  362. name: 'successCallback',
  363. timeout: 3000
  364. }, (err, data) => {
  365. if (err) {
  366. this.$message.error('登录超时,请重试')
  367. this.isShowLoading = false
  368. throw err
  369. } else {
  370. this.loginOther(response, params)
  371. }
  372. })
  373. } else {
  374. this.loginOther(response, params, 3000)
  375. }
  376. }
  377. } else {
  378. this.$message.error(response.data)
  379. var count = response.data.errorCount
  380. if (count < 3) {
  381. this.showCheckCode = false
  382. this.isLoginDisabled = false
  383. } else if (count >= 5) {
  384. this.$message.error('密码错误次数已达上限,今日无法登陆')
  385. this.isLoginDisabled = true
  386. this.showCheckCode = false
  387. } else if (count >= 3 && count < 5) {
  388. this.getCode()
  389. if (count === 3) {
  390. this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
  391. }
  392. this.showCheckCode = true
  393. this.isLoginDisabled = false
  394. }
  395. return Promise.reject(response.data)
  396. }
  397. }).catch(err => {
  398. this.isShowLoading = false
  399. let _this = this
  400. setTimeout(function () {
  401. _this.getCode()
  402. }, 100)
  403. this.$message.error(err.errMsg)
  404. })
  405. }
  406. },
  407. chooseOneEnterprise (flag, spaceUU) {
  408. this.login.spaceUU = spaceUU
  409. this.dialogVisible = false
  410. this.isLogin(flag)
  411. if (this.appId === 'mall' || this.appId === 'home') {
  412. if (this.checked) {
  413. this.setCookie(this.login.username, this.login.password, 7)
  414. } else {
  415. this.clearCookie()
  416. }
  417. }
  418. },
  419. getJsonp: function (url, timeout = 500) {
  420. return new Promise((resolve, reject) => {
  421. this.$jsonp(url, {
  422. name: 'successCallback',
  423. timeout: timeout
  424. }, function (err, data) {
  425. if (err) {
  426. reject(err)
  427. throw err
  428. } else {
  429. resolve(data)
  430. }
  431. })
  432. })
  433. },
  434. crossAfter (url) {
  435. try {
  436. window.location.href = url
  437. } catch (err) {
  438. console.log(err)
  439. }
  440. },
  441. loginOther (response, a, timeout) {
  442. const crossAfter = this.crossAfter
  443. let promises = []
  444. for (let i in response.data.content.loginUrls) {
  445. promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
  446. }
  447. Promise.all(promises).then(() => {
  448. crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
  449. }).catch(() => {
  450. crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
  451. })
  452. },
  453. // 设置cookie
  454. setCookie (cName, cPwd, exdays) {
  455. let exdate = new Date()
  456. exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays)
  457. window.document.cookie = 'userName' + '=' + cName + ';path=/;expires=' + exdate.toGMTString()
  458. window.document.cookie = 'userPwd' + '=' + cPwd + ';path=/;expires=' + exdate.toGMTString()
  459. },
  460. // 读取cookies
  461. getCookie () {
  462. if (document.cookie.length > 0) {
  463. let arr = document.cookie.split(';')
  464. for (var i = 0; i < arr.length; i++) {
  465. let arr2 = arr[i].split('=')
  466. if (arr2[0].trim() === 'userName') {
  467. this.login.username = arr2[1]
  468. }
  469. if (arr2[0].trim() === 'userPwd') {
  470. this.login.password = arr2[1]
  471. }
  472. if (this.login.username && this.login.username) {
  473. this.checked = true
  474. }
  475. }
  476. }
  477. },
  478. // 清除cookie
  479. clearCookie () {
  480. this.setCookie('', '', -1)
  481. }
  482. }
  483. }
  484. </script>
  485. <style lang="scss" scoped type="text/scss">
  486. @import '~assets/scss/mixins';
  487. @import '~assets/scss/variables';
  488. .x-navbar{
  489. height: 80px;
  490. line-height: 80px;
  491. margin: 0;
  492. .container{
  493. position: relative;
  494. width: 990px!important;
  495. height: 80px;
  496. .navbar-header{
  497. height: 80px;
  498. line-height: 80px;
  499. }
  500. a.navbar-brand{
  501. overflow: hidden;
  502. padding: 0px;
  503. height: inherit;
  504. line-height: inherit;
  505. font-family: "\5FAE\8F6F\96C5\9ED1";
  506. font-size: 24px;
  507. font-weight: 400;
  508. color: #888;
  509. img{
  510. margin: 28px 8px 0 0;
  511. max-width: 80px;
  512. max-height: 27px;
  513. vertical-align: middle;
  514. float: left;
  515. }
  516. span{
  517. float: left;
  518. }
  519. }
  520. .collapse{
  521. a{
  522. padding-left: 12px;
  523. margin-right: 10px;
  524. color: #666;
  525. outline: 0;
  526. border-left: 1px solid #ddd;
  527. &:first-child{
  528. border-width: 0;
  529. }
  530. }
  531. }
  532. }
  533. }
  534. .x-container{
  535. position: relative;
  536. height: 475px;
  537. div.link-go {
  538. text-align: right;
  539. margin-top: 7px;
  540. a{
  541. color: #2d8cf0;
  542. background: 0 0;
  543. text-decoration: none;
  544. outline: 0;
  545. cursor: pointer;
  546. transition: color .2s ease;
  547. }
  548. a.first{
  549. float: left;
  550. margin-top: 3px;
  551. font-size: 12px;
  552. }
  553. }
  554. /*登录弹出框*/
  555. .x-floating {
  556. position: fixed;
  557. top: 80px;
  558. left: 50%;
  559. z-index: 100000;
  560. opacity: 1;
  561. -webkit-transition: all .5s;
  562. -moz-transition: all .5s;
  563. transition: all .5s;
  564. }
  565. .x-list {
  566. width: 60%;
  567. height:420px;
  568. margin-left: -30%;
  569. background: #fff;
  570. border-top: 1px solid #e7e7e7;
  571. cursor: pointer;
  572. .x-list-header {
  573. padding: 10px 20px;
  574. background: #e0e0e0;
  575. height: 42px;
  576. line-height: 21px;
  577. font-size: 14px;
  578. font-weight: 700;
  579. color: #505050;
  580. }
  581. .x-list-content{
  582. overflow-y: auto;
  583. height:375px;
  584. ul{
  585. margin-bottom: 0;
  586. li{
  587. display:inline-block;
  588. padding: 10px 20px;
  589. width: 33%;
  590. overflow: hidden;
  591. white-space: nowrap;
  592. text-overflow: ellipsis;
  593. height: 42px;
  594. line-height: 21px;
  595. font-size: 12px;
  596. color: #505050;
  597. border-bottom: 1px solid #e7e7e7;
  598. &:hover{
  599. background: #e7e7e7;
  600. }
  601. }
  602. }
  603. }
  604. .x-list .x-list-header, .x-list li {
  605. padding: 10px 20px;
  606. border-bottom: 1px solid #e7e7e7;
  607. }
  608. }
  609. .x-floating.in {
  610. top: 80px;
  611. opacity: 1;
  612. }
  613. .x-banner-wrap {
  614. position: absolute;
  615. left: 0;
  616. top: 0;
  617. width: 100%;
  618. height: 475px;
  619. .x-banner {
  620. position: relative;
  621. overflow: auto;
  622. height: 475px;
  623. text-align: center;
  624. li{
  625. width: 100%;
  626. height: 475px;
  627. .inner{
  628. height: 100%;
  629. }
  630. }
  631. }
  632. }
  633. .x-login-wrap{
  634. position: absolute;
  635. top: 10px;
  636. right: 50%;
  637. margin-right: -495px;
  638. height: 475px;
  639. z-index: 5;
  640. .x-login {
  641. position: relative;
  642. top: 40px;
  643. width: 346px;
  644. background: #fff;
  645. overflow: visible;
  646. z-index: 4;
  647. .x-login-form, .x-login-qrcode {
  648. padding: 20px;
  649. .btn{
  650. background: #5078cb;
  651. color: #fff;
  652. font-weight: 700;
  653. letter-spacing: 4px;
  654. border-radius: 0;
  655. }
  656. .x-has-feedback-right {
  657. float: right;
  658. display: inline-block;
  659. a{
  660. color: #5078cb;
  661. }
  662. }
  663. .x-has-feedback-left {
  664. position: relative;
  665. .x-input {
  666. padding-left: 30px;
  667. line-height: 18px;
  668. color: #555;
  669. border-color: #ccc;
  670. border-radius: 0;
  671. box-shadow: none;
  672. }
  673. i.fa{
  674. position: absolute;
  675. top: 2px;
  676. left: 0;
  677. z-index: 2;
  678. display: block;
  679. width: 30px;
  680. height: 34px;
  681. line-height: 34px;
  682. text-align: center;
  683. pointer-events: none;
  684. color: #999;
  685. font-size: 18px;
  686. }
  687. }
  688. i.fa-keyboard-o{
  689. position: absolute;
  690. right: 10px;
  691. top: 10px;
  692. }
  693. i.fa-arrow-circle-o-right{
  694. margin-right: 5px;
  695. font-size: 14px;
  696. color: #5078cb;
  697. }
  698. .warn-text-area{
  699. margin-top: 5px;
  700. font-size: 13px;
  701. color: #000;
  702. }
  703. .text-position {
  704. overflow: hidden;
  705. .page-part {
  706. float: left;
  707. margin-bottom: 0;
  708. .el-checkbox {
  709. margin: 0;
  710. span.el-checkbox__inner{
  711. width: 14px;
  712. height: 14px;
  713. }
  714. }
  715. }
  716. .forget {
  717. float: right;
  718. color: #2d8cf0;
  719. }
  720. }
  721. }
  722. .x-login-qrcode{
  723. display: none;
  724. }
  725. }
  726. }
  727. }
  728. .footer{
  729. padding: 50px 0;
  730. }
  731. </style>