index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <div class="login-container">
  3. <div class="flexBox">
  4. <div>
  5. <el-form
  6. ref="loginForm"
  7. :model="loginForm"
  8. :rules="loginRules"
  9. class="login-form"
  10. auto-complete="on"
  11. label-position="left"
  12. @submit.native.prevent="handleLogin"
  13. >
  14. <div class="flex">
  15. <div class="image-container">
  16. <div class="empty-height">
  17. <img class="logo" src="@/assets/login/logo.png" alt="">
  18. </div>
  19. <el-carousel :interval="5000" arrow="always" height="440px" class="carousel">
  20. <el-carousel-item v-for="item in banner" :key="item.id">
  21. <el-image :z-index="1" :src="imageURL + item.imgCarouselUrl" />
  22. </el-carousel-item>
  23. </el-carousel>
  24. </div>
  25. <div class="right-container">
  26. <div class="empty-height" />
  27. <div class="form-container">
  28. <div class="flex title">
  29. <div class="title-item" :class="acitve == 'pas' ? 'acitve' : ''" @click="hanleTabs('pas', 'account')">
  30. 密码登录
  31. </div>
  32. <div class="title-item" :class="acitve == 'wei' ? 'acitve' : ''" @click="hanleTabs('wei', 'mobile')">
  33. 手机号登录
  34. </div>
  35. </div>
  36. <transition name="slide">
  37. <!-- 密码登录 -->
  38. <div v-if="acitve == 'pas'">
  39. <el-form-item prop="username" class="input-box">
  40. <span class="svg-container">
  41. <el-image
  42. style="width: 20px; height: 20px"
  43. :src="require('@/assets/login/icon_001.png')"
  44. fit="contain "
  45. />
  46. </span>
  47. <el-input
  48. ref="username"
  49. v-model="loginForm.username"
  50. placeholder="请输入用户名"
  51. name="username"
  52. type="text"
  53. tabindex="1"
  54. auto-complete="on"
  55. />
  56. </el-form-item>
  57. <el-form-item prop="password" class="input-box">
  58. <span class="svg-container">
  59. <el-image
  60. style="width: 20px; height: 20px"
  61. :src="require('@/assets/login/icon_002.png')"
  62. fit="contain "
  63. />
  64. </span>
  65. <el-input
  66. :key="passwordType"
  67. ref="password"
  68. v-model="loginForm.password"
  69. :type="passwordType"
  70. placeholder="请输入密码"
  71. name="password"
  72. tabindex="2"
  73. auto-complete="off"
  74. @keyup.enter.native="handleLogin"
  75. />
  76. <span class="show-pwd" @click="showPwd">
  77. <svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
  78. </span>
  79. </el-form-item>
  80. <div class="input-box">
  81. <el-form-item prop="codeValue">
  82. <span class="svg-container">
  83. <el-image
  84. style="width: 20px; height: 20px"
  85. :src="require('@/assets/login/icon_003.png')"
  86. fit="contain "
  87. />
  88. </span>
  89. <el-input
  90. ref="codeValue"
  91. v-model="loginForm.codeValue"
  92. placeholder="请输入验证码"
  93. name="codeValue"
  94. type="text"
  95. tabindex="3"
  96. auto-complete="off"
  97. @keyup.enter.native="handleLogin"
  98. />
  99. </el-form-item>
  100. <div class="code" @click.stop="getCode">
  101. <img :src="'data:image/jpeg;base64,' + codeImage" alt="">
  102. </div>
  103. </div>
  104. <div class="checkbox">
  105. <div class="check-yes" @click="isRemenberPw = !isRemenberPw">
  106. <el-image
  107. style="width: 16px; height: 16px"
  108. :src="require('@/assets/login/icon_004.png')"
  109. fit="contain "
  110. />
  111. <el-image
  112. v-if="isRemenberPw"
  113. class="yes"
  114. style="width: 11px; height: 11px"
  115. :src="require('@/assets/login/icon_005.png')"
  116. fit="contain "
  117. />
  118. </div>
  119. <el-checkbox v-model="isRemenberPw">记住账号密码</el-checkbox>
  120. </div>
  121. <div class="button-container">
  122. <el-button :loading="loading" type="primary" @click.native.prevent="handleLogin">登录</el-button>
  123. </div>
  124. </div>
  125. <!-- 手机号登录 -->
  126. <div v-else class="pas">
  127. <el-form-item prop="username" class="input-box">
  128. <span class="svg-container">
  129. <el-image
  130. style="width: 20px; height: 20px"
  131. :src="require('@/assets/login/icon_001.png')"
  132. fit="contain "
  133. />
  134. </span>
  135. <el-input
  136. ref="username"
  137. v-model="loginForm.username"
  138. placeholder="请输入手机号"
  139. name="username"
  140. type="text"
  141. tabindex="1"
  142. auto-complete="on"
  143. />
  144. </el-form-item>
  145. <div class="input-box">
  146. <el-form-item prop="codeValue">
  147. <span class="svg-container">
  148. <el-image
  149. style="width: 20px; height: 20px"
  150. :src="require('@/assets/login/icon_003.png')"
  151. fit="contain "
  152. />
  153. </span>
  154. <el-input
  155. ref="codeValue"
  156. v-model="loginForm.codeValue"
  157. placeholder="请输入验证码"
  158. name="codeValue"
  159. type="text"
  160. tabindex="3"
  161. auto-complete="off"
  162. @keyup.enter.native="handleLogin"
  163. />
  164. </el-form-item>
  165. <div class="code" @click.stop="getCode">
  166. <img :src="'data:image/jpeg;base64,' + codeImage" alt="">
  167. </div>
  168. </div>
  169. <div class="input-box">
  170. <el-form-item prop="smsCode">
  171. <span class="svg-container">
  172. <el-image
  173. style="width: 20px; height: 20px"
  174. :src="require('@/assets/login/icon_003.png')"
  175. fit="contain "
  176. />
  177. </span>
  178. <el-input
  179. ref="smsCode"
  180. v-model="loginForm.smsCode"
  181. placeholder="请输入短信验证码"
  182. name="smsCode"
  183. type="text"
  184. tabindex="3"
  185. auto-complete="off"
  186. />
  187. </el-form-item>
  188. <div class="code2" @click.stop="getSmsCode">
  189. <el-button :disabled="countDown != 60">{{
  190. countDown == 60 ? getCodeText : '重新获取(' + countDown + 's)'
  191. }}</el-button>
  192. </div>
  193. </div>
  194. <div class="button-container">
  195. <el-button :loading="loading" type="primary" @click.native.prevent="handleLogin">登录</el-button>
  196. </div>
  197. </div>
  198. </transition>
  199. </div>
  200. </div>
  201. </div>
  202. </el-form>
  203. </div>
  204. <div class="info">
  205. <div class="info-item">
  206. <el-link :href="companyList[0].icpRecordLink" :underline="false" target="_blank">{{
  207. companyList[0].icpRecord
  208. }}</el-link>
  209. <div v-if="companyList[0].companyName && companyList[0].icpRecordLink" style="margin: 0 20px">|</div>
  210. <el-link :href="companyList[0].pubSecurityRecordLink" :underline="false" target="_blank">
  211. <el-image style="width: 14px; height: 16px" :src="require('@/assets/login/icon_0001.png')" />
  212. {{ companyList[0].pubSecurityRecord }}
  213. </el-link>
  214. </div>
  215. <div>{{ companyList[0].companyName }}</div>
  216. </div>
  217. </div>
  218. </div>
  219. </template>
  220. <script>
  221. import { getAdminUserSmsCode, getCode, getCompanyList, getList } from '@/api/user'
  222. export default {
  223. name: 'Login',
  224. data() {
  225. const validateUsername = (rule, value, callback) => {
  226. const accountRules = /[\u4e00-\u9fa5|\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/
  227. if (value.length <= 0 && this.loginForm.loginType == 'account') {
  228. callback(new Error('请输入用户名'))
  229. } else if (accountRules.test(value) && this.loginForm.loginType == 'account') {
  230. callback(new Error('请输入正确用户名'))
  231. } else if (value.length <= 0 && this.loginForm.loginType == 'mobile') {
  232. callback(new Error('请输入手机号'))
  233. } else {
  234. callback()
  235. }
  236. }
  237. const validatePassword = (rule, value, callback) => {
  238. if (value.length <= 0) {
  239. callback(new Error('请输入密码'))
  240. } else {
  241. callback()
  242. }
  243. }
  244. const validateCode = (rule, value, callback) => {
  245. if (value.length <= 0) {
  246. callback(new Error('请输入验证码'))
  247. } else {
  248. callback()
  249. }
  250. }
  251. const validatesmsCode = (rule, value, callback) => {
  252. if (value.length <= 0) {
  253. callback(new Error('请输入短信验证码'))
  254. } else {
  255. callback()
  256. }
  257. }
  258. return {
  259. getCodeText: '获取验证码',
  260. countDown: 60,
  261. timer: null,
  262. imageURL: this.$imageUrl,
  263. loginForm: {
  264. username: '',
  265. password: '',
  266. code: '',
  267. codeValue: '',
  268. smsCode: '',
  269. loginType: 'account'
  270. },
  271. loginRules: {
  272. username: [{ required: true, trigger: 'change', validator: validateUsername }],
  273. password: [{ required: true, trigger: 'change', validator: validatePassword }],
  274. codeValue: [{ required: true, trigger: 'change', validator: validateCode }],
  275. smsCode: [{ required: true, trigger: 'change', validator: validatesmsCode }]
  276. },
  277. loading: false,
  278. passwordType: 'password',
  279. redirect: undefined,
  280. isRemenberPw: false,
  281. codeImage: '',
  282. acitve: 'pas',
  283. banner: [],
  284. companyList: []
  285. }
  286. },
  287. watch: {
  288. $route: {
  289. handler: function(route) {
  290. this.redirect = route.query && route.query.redirect
  291. },
  292. immediate: true
  293. }
  294. },
  295. created() {
  296. // 获取缓存信息
  297. if (localStorage.getItem('supply_login')) {
  298. const storageData = JSON.parse(localStorage.getItem('supply_login'))
  299. this.loginForm.username = storageData.username
  300. this.isRemenberPw = storageData.isRemenberPw
  301. }
  302. if (this.isRemenberPw) {
  303. this.getCookie()
  304. }
  305. this.getCode()
  306. this.getList()
  307. this.getCompanyList()
  308. },
  309. methods: {
  310. // 获取短信验证码
  311. async getSmsCode() {
  312. await getAdminUserSmsCode({
  313. mobile: this.loginForm.username,
  314. codeValue: this.loginForm.codeValue,
  315. code: this.loginForm.code
  316. })
  317. this.$successMsg('短信已发送')
  318. this.isDisabled = true
  319. this.countDown--
  320. this.timer = setInterval(() => {
  321. this.countDown--
  322. if (this.countDown == 0) {
  323. this.countDown = 60
  324. this.getCodeText = '重新获取'
  325. clearInterval(this.timer)
  326. }
  327. }, 1000)
  328. },
  329. // 获取验证码
  330. getCode() {
  331. getCode().then(res => {
  332. console.log(res)
  333. this.loginForm.code = res.data.code
  334. this.codeImage = res.data.pic
  335. })
  336. },
  337. getCompanyList() {
  338. getCompanyList().then(res => {
  339. this.companyList = res.data
  340. })
  341. },
  342. getList() {
  343. getList().then(res => {
  344. this.banner = res.data
  345. })
  346. },
  347. async hanleTabs(val, type) {
  348. this.acitve = val
  349. this.loginForm.loginType = type
  350. this.$refs.loginForm.resetFields()
  351. this.loginForm.password = ''
  352. this.loginForm.username = ''
  353. },
  354. // 显示隐藏密码
  355. showPwd() {
  356. if (this.passwordType === 'password') {
  357. this.passwordType = ''
  358. } else {
  359. this.passwordType = 'password'
  360. }
  361. this.$nextTick(() => {
  362. this.$refs.password.focus()
  363. })
  364. },
  365. // 登录
  366. handleLogin() {
  367. // console.log(this.loginForm, "lll");
  368. this.$refs.loginForm.validate(valid => {
  369. if (valid) {
  370. this.loading = true
  371. this.$store
  372. .dispatch('user/login', this.loginForm)
  373. .then(() => {
  374. // console.log(this.redirect);
  375. this.$router.push({ path: this.redirect || '/' })
  376. console.log(444)
  377. this.saveUnAndPw()
  378. this.$store.commit('user/showMessage', 'yes')
  379. // this.$message.success("登录成功");
  380. this.loading = false
  381. })
  382. .catch(() => {
  383. console.log(555)
  384. this.getCode()
  385. this.loginForm.codeValue = ''
  386. this.loading = false
  387. })
  388. } else {
  389. console.log('error submit!!')
  390. return false
  391. }
  392. })
  393. },
  394. // 处理账号密码的储存
  395. saveUnAndPw() {
  396. const storageData = {
  397. username: this.loginForm.username,
  398. isRemenberPw: this.isRemenberPw
  399. }
  400. localStorage.setItem('supply_login', JSON.stringify(storageData))
  401. if (this.isRemenberPw) {
  402. this.setCookie(this.loginForm.username, this.loginForm.password, 7)
  403. }
  404. },
  405. // 设置cookie
  406. setCookie(c_name, c_pwd, exdays) {
  407. var exdate = new Date() // 获取时间
  408. exdate.setTime(exdate.getTime() + 24 * 60 * 60 * 1000 * exdays) // 保存的天数
  409. // 字符串拼接cookie
  410. window.document.cookie = 'supply_username' + '=' + c_name + ';path=/;expires=' + exdate.toGMTString()
  411. window.document.cookie = 'supply_password' + '=' + c_pwd + ';path=/;expires=' + exdate.toGMTString()
  412. },
  413. // 读取cookie
  414. getCookie: function() {
  415. if (document.cookie.length > 0) {
  416. var arr = document.cookie.split('; ') // 这里显示的格式需要切割一下自己可输出看下
  417. for (var i = 0; i < arr.length; i++) {
  418. var arr2 = arr[i].split('=') // 再次切割
  419. // 判断查找相对应的值
  420. if (arr2[0] == 'supply_username') {
  421. this.loginForm.username = arr2[1] // 保存到保存数据的地方
  422. } else if (arr2[0] == 'supply_password') {
  423. this.loginForm.password = arr2[1]
  424. }
  425. }
  426. }
  427. },
  428. // 清除cookie
  429. clearCookie: function() {
  430. this.setCookie('', '', -1) // 修改2值都为空,天数为负1天就好了
  431. }
  432. }
  433. }
  434. </script>
  435. <style lang="scss">
  436. /* 修复input 背景不协调 和光标变色 */
  437. /* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
  438. $bg: #283443;
  439. $light_gray: #fff;
  440. $cursor: #fff;
  441. $back: #333;
  442. @supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
  443. .login-container .el-input input {
  444. color: $cursor;
  445. }
  446. }
  447. .info-item .el-link--inner {
  448. color: #ffffff;
  449. }
  450. /* reset element-ui css */
  451. .login-container {
  452. background: url('~@/assets/login/background.png') center center;
  453. background-size: cover;
  454. height: 100vh;
  455. .el-input {
  456. display: inline-block;
  457. height: 47px;
  458. width: 85%;
  459. input {
  460. background: transparent;
  461. border: 0px;
  462. -webkit-appearance: none;
  463. border-radius: 0px;
  464. padding: 12px 5px 12px 15px;
  465. color: $back;
  466. height: 47px;
  467. caret-color: $back;
  468. border-bottom: none !important;
  469. &:-webkit-autofill {
  470. box-shadow: 0 0 0px 1000px $cursor inset !important;
  471. -webkit-text-fill-color: $back !important;
  472. }
  473. }
  474. }
  475. .el-carousel__arrow--left,
  476. .el-carousel__arrow--right {
  477. display: none;
  478. }
  479. .carousel {
  480. border-top-left-radius: 15px;
  481. border-bottom-left-radius: 15px;
  482. overflow: hidden;
  483. }
  484. .el-form-item {
  485. border: 1px solid rgba(255, 255, 255, 0.1);
  486. border-radius: 5px;
  487. color: #454545;
  488. margin-bottom: 25px !important;
  489. }
  490. .el-checkbox__input {
  491. display: none;
  492. }
  493. .el-form-item__error {
  494. left: 30px;
  495. }
  496. .el-form-item__content {
  497. display: flex;
  498. align-items: center;
  499. line-height: 0;
  500. }
  501. .show-pwd {
  502. line-height: 40px;
  503. }
  504. .el-checkbox__input.is-checked + .el-checkbox__label {
  505. color: #4684f4db;
  506. }
  507. .checkbox {
  508. display: flex;
  509. align-items: center;
  510. margin-left: 1px;
  511. .check-yes {
  512. position: relative;
  513. line-height: 0;
  514. }
  515. .yes {
  516. position: absolute;
  517. left: 50%;
  518. top: 50%;
  519. transform: translate(-50%, -50%);
  520. }
  521. .el-checkbox {
  522. margin: 0 !important;
  523. }
  524. }
  525. /* 可以设置不同的进入和离开动画 */
  526. /* 设置持续时间和动画函数 */
  527. .slide-fade-enter-active {
  528. transition: all 0.3s ease;
  529. }
  530. .slide-fade-leave-active {
  531. transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
  532. }
  533. .slide-fade-leave-active {
  534. transform: translateX(10px);
  535. opacity: 0;
  536. }
  537. .wei {
  538. display: flex;
  539. flex-direction: column;
  540. justify-content: center;
  541. align-items: center;
  542. margin-top: 30px;
  543. text-align: center;
  544. text-align-last: center;
  545. &-item-tip {
  546. height: 19px;
  547. font-size: 20px;
  548. margin-top: 17px;
  549. }
  550. &-item-text {
  551. height: 12px;
  552. font-size: 14px;
  553. margin-top: 17px;
  554. color: #999;
  555. }
  556. }
  557. }
  558. </style>
  559. <style lang="scss" scoped>
  560. $bg: #2d3a4b;
  561. $dark_gray: #889aa4;
  562. $light_gray: #eee;
  563. .info {
  564. display: flex;
  565. align-items: center;
  566. flex-direction: column;
  567. justify-content: center;
  568. width: 1080px;
  569. margin-top: 50px;
  570. line-height: 30px;
  571. text-align: center;
  572. text-align-last: center;
  573. color: #fff;
  574. }
  575. .info-item {
  576. display: flex;
  577. align-items: center;
  578. justify-content: center;
  579. }
  580. .title-item {
  581. display: flex;
  582. flex-direction: column;
  583. justify-content: center;
  584. align-items: center;
  585. margin: 0 30px;
  586. cursor: pointer;
  587. font-size: 22px;
  588. color: #666666;
  589. line-height: 40px;
  590. border-bottom: 3px solid #ffffff;
  591. }
  592. .acitve {
  593. font-weight: bold;
  594. color: #4684f4;
  595. border-bottom: 3px solid #4684f4;
  596. }
  597. .flexBox {
  598. display: flex;
  599. padding-top: calc(50vh - 230px);
  600. justify-content: space-between;
  601. flex-direction: column;
  602. align-items: center;
  603. }
  604. .input-box {
  605. position: relative;
  606. width: 360px;
  607. height: 50px;
  608. margin-bottom: 25px;
  609. background: #ffffff;
  610. border: 1px solid #e6e6e6 !important;
  611. border-radius: 4px;
  612. }
  613. .input-box:last-child {
  614. margin-bottom: 10px;
  615. }
  616. .flex {
  617. display: flex;
  618. flex-direction: row;
  619. }
  620. .empty-height {
  621. height: 46px;
  622. margin: 15px 0;
  623. }
  624. .logo {
  625. height: 46px;
  626. width: 460px;
  627. }
  628. .el-carousel__item:nth-child(2n) {
  629. background-color: #99a9bf;
  630. }
  631. .el-carousel__item:nth-child(2n + 1) {
  632. background-color: #d3dce6;
  633. }
  634. .login-container {
  635. min-height: 100%;
  636. width: 100%;
  637. height: 100vh;
  638. background-color: $bg;
  639. overflow: hidden;
  640. .login-form {
  641. position: relative;
  642. width: 1920px;
  643. max-width: 100%;
  644. height: 100%;
  645. display: flex;
  646. flex-direction: column;
  647. align-items: center;
  648. }
  649. .image-container {
  650. width: 700px;
  651. height: 516px;
  652. // overflow: hidden;
  653. }
  654. .right-container {
  655. width: 440px;
  656. height: 516px;
  657. .form-container {
  658. height: 440px;
  659. padding: 20px 30px 27px 40px;
  660. background: #fff;
  661. border-radius: 0 15px 15px 0;
  662. .title {
  663. justify-content: center;
  664. letter-spacing: 4px;
  665. text-align: center;
  666. margin-bottom: 35px;
  667. }
  668. }
  669. }
  670. .tips {
  671. font-size: 14px;
  672. color: #fff;
  673. margin-bottom: 10px;
  674. span {
  675. &:first-of-type {
  676. margin-right: 16px;
  677. }
  678. }
  679. }
  680. .svg-container {
  681. margin: 0 0 0 14px;
  682. // padding: 6px 5px 6px 5px;
  683. color: #33aef7;
  684. vertical-align: middle;
  685. width: 30px;
  686. display: inline-block;
  687. }
  688. .title-container {
  689. border-radius: 15px 15px 0 0;
  690. overflow: hidden;
  691. img {
  692. width: 100%;
  693. display: block;
  694. }
  695. }
  696. .show-pwd {
  697. position: absolute;
  698. right: 30px;
  699. top: 7px;
  700. font-size: 16px;
  701. color: $dark_gray;
  702. cursor: pointer;
  703. user-select: none;
  704. }
  705. .code {
  706. position: absolute;
  707. right: 30px;
  708. top: 7px;
  709. z-index: 99;
  710. cursor: pointer;
  711. img {
  712. height: 30px;
  713. }
  714. }
  715. .code2 {
  716. position: absolute;
  717. right: 0;
  718. top: -1px;
  719. .el-button {
  720. height: 50px;
  721. }
  722. }
  723. .button-container {
  724. text-align: center;
  725. margin-top: 20px;
  726. button {
  727. font-size: 16px;
  728. width: 100%;
  729. height: 45px;
  730. border-radius: 4px;
  731. background: #4684f4;
  732. box-shadow: 2px 3px 8px 0px #4684f46b;
  733. }
  734. }
  735. }
  736. ::v-deep .el-form-item__error {
  737. color: #f56c6c;
  738. font-size: 12px;
  739. line-height: 1;
  740. padding-top: 6px;
  741. position: absolute;
  742. top: 100%;
  743. left: 0;
  744. }
  745. @media only screen and (max-width: 600px) {
  746. .image-container {
  747. display: none;
  748. }
  749. .form-container {
  750. border-radius: 15px !important;
  751. }
  752. }
  753. </style>