Login.vue 25 KB

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