Login.vue 25 KB

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