PhoneValidation.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  1. <template>
  2. <div class="validation">
  3. <div class="container">
  4. <div class="content" v-show="goFirstStep">
  5. <div class="content-top">
  6. <h3>验证手机</h3>
  7. <div class="step">
  8. <img src="/images/all/step01.png" alt=""/>
  9. <div class="step-item"><span class="active">账号验证</span><span>新手机号码</span><span>设置完成</span></div>
  10. </div>
  11. </div>
  12. <div class="choose">
  13. <div v-show="hasValidPhoneWay"
  14. @click="chooseWay(1)">
  15. <img src="/images/all/icon01.png" alt="" class="first mob"/>
  16. <span>通过验证手机</span><i class="fa fa-angle-right second"></i>
  17. </div>
  18. <div v-show="hasValidEmailWay"
  19. @click="chooseWay(2)">
  20. <img src="/images/all/icon02.png" alt="" class="first"/>
  21. <span>通过验证邮箱</span><i class="fa fa-angle-right second"></i>
  22. </div>
  23. <div v-show="hasValidQuestionsWay"
  24. @click="chooseWay(3)">
  25. <img src="/images/all/icon03.png" alt="" class="first"/>
  26. <span>通过验证密保</span><i class="fa fa-angle-right second"></i>
  27. </div>
  28. <div v-show="showManualAppeal"
  29. @click="goAccountAppeal()">
  30. <img src="/images/all/icon04.png" alt="" class="first"/>
  31. <span>通过人工申诉</span><i class="fa fa-angle-right second"></i>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="content" v-show="showPhoneValid">
  36. <div class="content-top">
  37. <h3>验证手机</h3>
  38. <div class="step">
  39. <img src="/images/all/step01.png" alt=""/>
  40. <div class="step-item"><span class="active">账号验证</span><span>新手机号码</span><span>设置完成</span></div>
  41. <a @click="goPreviousStep" class="return"><img src="/images/all/return.png" alt=""/></a>
  42. </div>
  43. </div>
  44. <div class="content-bottom">
  45. <span class="use">使用手机号<em>{{secretMobile}}</em>接收验证码</span>
  46. <div>
  47. <el-form :model="valid" :rules="rules" ref="valid" label-width="100px" class="demo-ruleForm" style="margin-top: 0;">
  48. <el-form-item prop="code">
  49. <el-input type="text" v-model="valid.code"
  50. v-bind:class="{ active: codeErrorChecked }"
  51. auto-complete="off" class="msg"
  52. placeholder="短信验证码"></el-input>
  53. <el-button type="primary" class="code"
  54. v-show="sendAccountCode"
  55. @click="getCheckCode">获取验证码</el-button>
  56. <el-button type="primary" v-show="!sendAccountCode" class="code code-send">已发送({{account_time}}s)</el-button>
  57. <span v-show="codeErrorChecked" class="tip codeError-tip" >{{codeErrorMsg}}</span>
  58. </el-form-item>
  59. <el-form-item>
  60. <a class="btn finish"
  61. :disabled="!codeChecked"
  62. @click="goNextStep">下一步</a>
  63. </el-form-item>
  64. </el-form>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="content" v-show="showEmailValid">
  69. <div class="content-top">
  70. <h3>验证手机</h3>
  71. <div class="step">
  72. <img src="/images/all/step01.png" alt=""/>
  73. <div class="step-item"><span class="active">账号验证</span><span>新手机号码</span><span>设置完成</span></div>
  74. <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
  75. </div>
  76. </div>
  77. <div class="content-bottom">
  78. <span class="use">使用电子邮箱<em>{{secretEmail}}</em>进行验证,有效期7天</span>
  79. <div class="warp"
  80. @click="firstStepValidEmail"
  81. v-show="!emailSendSuccess">
  82. <button class="btn">发送验证请求</button>
  83. </div>
  84. <div class="warp" v-show="emailSendSuccess">
  85. <button class="btn" :disabled="emailSendSuccess">已发送验证邮件,请查收</button>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="content" v-show="showQuestionsValid">
  90. <div class="content-top">
  91. <h3>验证手机</h3>
  92. <div class="step">
  93. <img src="/images/all/step01.png" alt=""/>
  94. <div class="step-item"><span class="active">账号验证</span><span>新手机号码</span><span>设置完成</span></div>
  95. <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
  96. </div>
  97. </div>
  98. <div>
  99. <el-form :model="validQuestion" :rules="rulesQuestion" ref="valid" label-width="100px" class="demo-ruleForm">
  100. <el-form-item class="questions">
  101. <span class="question">问题:{{question1}}</span>
  102. </el-form-item>
  103. <el-form-item prop="answer1">
  104. <el-input type="text" v-model="validQuestion.answer1"
  105. auto-complete="off"
  106. placeholder="答案一"></el-input>
  107. </el-form-item>
  108. <el-form-item class="questions">
  109. <span class="question">问题:{{question2}}</span>
  110. </el-form-item>
  111. <el-form-item prop="answer2">
  112. <el-input type="text" v-model="validQuestion.answer2"
  113. auto-complete="off"
  114. placeholder="答案二"></el-input>
  115. </el-form-item>
  116. <el-form-item>
  117. <a class="btn finish"
  118. :disabled="!answer1SecondChecked || !answer2SecondChecked"
  119. @click="validQuestionSubmit">提交</a>
  120. </el-form-item>
  121. </el-form>
  122. </div>
  123. </div>
  124. <loading v-show="isShowLoading"/>
  125. </div>
  126. </div>
  127. </template>
  128. <script>
  129. import Loading from '~components/common/loading/Loading.vue'
  130. export default {
  131. name: 'validation',
  132. components: {
  133. Loading
  134. },
  135. data () {
  136. // 第一步校验验证码
  137. var validateFirstCode = (rule, value, callback) => {
  138. if (value === '') {
  139. callback(new Error('请填写正确的验证码'))
  140. this.codeErrorChecked = false
  141. this.codeChecked = false
  142. console.log(this.codeChecked)
  143. } else {
  144. if (this.valid.code !== '') {
  145. if (this.token) {
  146. if (this.valid.code !== '' && this.getMobile !== '') {
  147. let param = new FormData()
  148. param.append('mobile', this.getMobile)
  149. param.append('code', this.valid.code)
  150. param.append('token', this.token)
  151. let config = {
  152. headers: {'Content-Type': 'multipart/form-data'}
  153. }
  154. this.$http.post(`/update/user/checkCode/mobile`, param, config)
  155. .then(response => {
  156. if (response.data.success) {
  157. this.codeChecked = true
  158. this.codeErrorChecked = false
  159. } else {
  160. this.codeErrorChecked = true
  161. this.codeChecked = false
  162. return Promise.reject(response.data)
  163. }
  164. }).catch(err => {
  165. this.codeErrorMsg = err.errMsg
  166. })
  167. }
  168. } else {
  169. callback(new Error('请先获取验证码'))
  170. this.codeChecked = false
  171. this.codeErrorChecked = false
  172. }
  173. }
  174. callback()
  175. }
  176. }
  177. // 第二步验证密保
  178. var validateSecondAnswer1 = (rule, value, callback) => {
  179. if (value === '') {
  180. callback(new Error('请填写正确的答案'))
  181. this.answer1SecondChecked = false
  182. } else {
  183. if (this.validQuestion.answer1 !== '') {
  184. this.answer1SecondChecked = true
  185. }
  186. callback()
  187. }
  188. }
  189. var validateSecondAnswer2 = (rule, value, callback) => {
  190. if (value === '') {
  191. callback(new Error('请填写正确的答案'))
  192. this.answer2SecondChecked = false
  193. } else {
  194. if (this.validQuestion.answer2 !== '') {
  195. this.answer2SecondChecked = true
  196. }
  197. callback()
  198. }
  199. }
  200. return {
  201. isShowLoading: false,
  202. goFirstStep: true,
  203. hasValidPhoneWay: false,
  204. hasValidQuestionsWay: false,
  205. hasValidEmailWay: false,
  206. showManualAppeal: false,
  207. showQuestionsValid: false,
  208. showEmailValid: false,
  209. showPhoneValid: false,
  210. sendAccountCode: true,
  211. account_time: 0,
  212. codeErrorChecked: false,
  213. codeChecked: false,
  214. secretMobile: '',
  215. secretEmail: '',
  216. getMobile: '',
  217. getEmail: '',
  218. getQuestions: '',
  219. question1: '',
  220. question2: '',
  221. sort1: '',
  222. sort2: '',
  223. codeErrorMsg: '',
  224. firstStepToken: '',
  225. answer1SecondChecked: false,
  226. answer2SecondChecked: false,
  227. emailSendSuccess: false,
  228. valid: {
  229. code: ''
  230. },
  231. validQuestion: {
  232. answer1: '',
  233. answer2: ''
  234. },
  235. rules: {
  236. code: [
  237. {validator: validateFirstCode, trigger: 'blur'}
  238. ]
  239. },
  240. rulesQuestion: {
  241. answer1: [
  242. {validator: validateSecondAnswer1, trigger: 'blur'}
  243. ],
  244. answer2: [
  245. {validator: validateSecondAnswer2, trigger: 'blur'}
  246. ]
  247. }
  248. }
  249. },
  250. computed: {
  251. logged () {
  252. // console.log(this.$store.state.option.isLogin.data.content)
  253. return this.$store.state.option.isLogin.data.content
  254. }
  255. },
  256. mounted () {
  257. // 验证是否登录
  258. this.$nextTick(() => {
  259. this.isLogin()
  260. // 刷新统计信息
  261. setInterval(() => {
  262. this.isLogin()
  263. }, 10000)
  264. })
  265. // 获取验证方式
  266. this.$nextTick(() => {
  267. this.getVerifyWay()
  268. })
  269. },
  270. methods: {
  271. // 判断用户是否登录
  272. isLogin () {
  273. if (!this.logged.isLogin) {
  274. // console.log(this.logged.isLogin)
  275. // 未登录跳到登录页面
  276. window.location.href = '/'
  277. }
  278. },
  279. // 获取验证方式
  280. getVerifyWay () {
  281. this.$http.get('/update/user/checkType')
  282. .then(response => {
  283. if (response.data.success) {
  284. if (!response.data.content) {
  285. this.showManualAppeal = true
  286. } else {
  287. if (response.data.content.mobile) {
  288. this.hasValidPhoneWay = true
  289. this.showManualAppeal = true
  290. this.getMobile = response.data.content.mobile
  291. var reg = /^(\d{3})\d{6}(\d{2})$/
  292. this.secretMobile = this.getMobile.replace(reg, '$1******$2')
  293. }
  294. if (response.data.content.questions) {
  295. this.hasValidQuestionsWay = true
  296. this.showManualAppeal = true
  297. this.getQuestions = response.data.content.questions
  298. this.question1 = this.getQuestions[0].question || ''
  299. this.question2 = this.getQuestions[1].question || ''
  300. this.sort1 = this.getQuestions[0].sort || ''
  301. this.sort2 = this.getQuestions[1].sort || ''
  302. }
  303. if (response.data.content.email) {
  304. this.hasValidEmailWay = true
  305. this.showManualAppeal = true
  306. this.getEmail = response.data.content.email
  307. let getEmailIndex = this.getEmail.indexOf('@')
  308. if (getEmailIndex > 3) {
  309. let len = this.getEmail.substring(3, getEmailIndex)
  310. this.secretEmail = this.getEmail.replace(len, '*')
  311. } else {
  312. this.getEmailArr = this.getEmail.split('')
  313. this.getEmailSplit = this.getEmailArr.splice(getEmailIndex, 0, '*')
  314. this.secretEmail = this.getEmailArr.join('')
  315. }
  316. }
  317. this.goFirstStep = true
  318. }
  319. } else {
  320. return Promise.reject(response.data)
  321. }
  322. }).catch(err => {
  323. this.$message.error(err.errMsg)
  324. })
  325. },
  326. // 选择方式
  327. chooseWay (flag) {
  328. if (flag === 1) {
  329. this.showPhoneValid = true
  330. } else if (flag === 2) {
  331. this.showEmailValid = true
  332. } else if (flag === 3) {
  333. this.showQuestionsValid = true
  334. }
  335. this.goFirstStep = false
  336. },
  337. // 跳转到人工申诉页面
  338. goAccountAppeal () {
  339. window.location.href = '/appeals/accountAppeal'
  340. },
  341. // 返回上一步
  342. goPreviousStep () {
  343. this.goFirstStep = true
  344. this.showPhoneValid = false
  345. this.showEmailValid = false
  346. this.showQuestionsValid = false
  347. },
  348. // 获取第一步手机验证码
  349. getCheckCode () {
  350. this.isShowLoading = true
  351. this.$http.get(`/update/user/check/mobile`, {params: {mobile: this.getMobile}})
  352. .then(response => {
  353. this.isShowLoading = false
  354. if (response.data.success) {
  355. this.token = response.data.content.token
  356. if (this.token !== '') {
  357. this.$message({
  358. message: '验证码已经发送到您的手机,请注意查收',
  359. type: 'success'
  360. })
  361. this.sendAccountCode = false
  362. this.account_time = 60
  363. var accountTime = setInterval(() => {
  364. this.account_time--
  365. if (this.account_time <= 0) {
  366. this.sendAccountCode = true
  367. clearInterval(accountTime)
  368. }
  369. }, 1000)
  370. }
  371. } else {
  372. return Promise.reject(response.data)
  373. }
  374. }).catch(err => {
  375. this.isShowLoading = false
  376. this.$message.error(err.errMsg)
  377. })
  378. },
  379. // 手机号验证下一步
  380. goNextStep () {
  381. if (this.codeChecked) {
  382. this.isShowLoading = true
  383. let param = new FormData()
  384. param.append('mobile', this.getMobile)
  385. param.append('code', this.valid.code)
  386. param.append('token', this.token)
  387. let config = {
  388. headers: {'Content-Type': 'multipart/form-data'}
  389. }
  390. this.$http.post(`/update/user/check/mobile`, param, config)
  391. .then(response => {
  392. this.isShowLoading = false
  393. if (response.data.success) {
  394. this.$store.commit('login/GET_TOKEN', response.data.content)
  395. this.showPhoneValid = false
  396. this.$router.push({ path: '/validation/phoneValidationSecondStep' })
  397. } else {
  398. this.showPhoneValid = true
  399. return Promise.reject(response.data)
  400. }
  401. }).catch(err => {
  402. this.isShowLoading = false
  403. this.$message.error(err.errMsg)
  404. })
  405. }
  406. },
  407. // 第一步验证邮箱
  408. firstStepValidEmail () {
  409. this.isShowLoading = true
  410. this.$http.get(`/update/user/check/email`, {params: {email: this.getEmail, operate: 'mobile'}})
  411. .then(response => {
  412. this.isShowLoading = false
  413. if (response.data.success) {
  414. this.emailSendSuccess = true
  415. } else {
  416. this.emailSendSuccess = false
  417. return Promise.reject(response.data)
  418. }
  419. }).catch(err => {
  420. this.isShowLoading = false
  421. // console.log(err)
  422. this.$message.error(err.errMsg)
  423. })
  424. },
  425. // 第一步验证密保提交
  426. validQuestionSubmit () {
  427. if (this.answer1SecondChecked && this.answer2SecondChecked) {
  428. this.isShowLoading = true
  429. let param = new FormData()
  430. let answer = []
  431. answer.push({'answer': this.validQuestion.answer1, 'sort': this.sort1}, {'answer': this.validQuestion.answer2, 'sort': this.sort2})
  432. let answers = JSON.stringify(answer)
  433. param.append('answers', answers)
  434. let config = {
  435. headers: {'Content-Type': 'multipart/form-data'}
  436. }
  437. this.$http.post(`/update/user/check/question`, param, config)
  438. .then(response => {
  439. this.isShowLoading = false
  440. if (response.data.success) {
  441. this.$store.commit('login/GET_TOKEN', response.data.content.token)
  442. this.showQuestionsValid = false
  443. this.$router.push({ path: '/validation/phoneValidationSecondStep' })
  444. } else {
  445. this.showQuestionsValid = true
  446. return Promise.reject(response.data)
  447. }
  448. }).catch(err => {
  449. this.isShowLoading = false
  450. this.$message.error(err.errMsg)
  451. })
  452. }
  453. }
  454. }
  455. }
  456. </script>
  457. <style lang="scss" scoped>
  458. .validation {
  459. margin: 0 auto;
  460. width: 100%;
  461. background: #eee;
  462. .container{
  463. padding-top: 50px;
  464. margin: 0 auto;
  465. width: 980px;
  466. text-align: center;
  467. .content{
  468. padding: 0 50px;
  469. margin: 50px auto 0;
  470. width: 100%;
  471. /*height: 540px;*/
  472. text-align: center;
  473. background: #fff;
  474. .content-top{
  475. height: 80px;
  476. line-height: 80px;
  477. h3{
  478. margin-bottom: 0;
  479. font-size: 24px;
  480. color: #000;
  481. border-bottom: 1px solid #dcdcdc;
  482. }
  483. .step{
  484. position: relative;
  485. margin-top: 10px;
  486. img{
  487. width: 315px;
  488. height: 46px;
  489. }
  490. .step-item{
  491. position: absolute;
  492. top: 45px;
  493. left: 265px;
  494. span{
  495. margin-right: 78px;
  496. font-size: 14px;
  497. color: #b4b4b4;
  498. }
  499. span.active {
  500. color: #0076ad;
  501. }
  502. }
  503. }
  504. }
  505. form {
  506. margin-top: 150px;
  507. padding-bottom: 44px;
  508. input{
  509. padding: 0 0 0 18px;
  510. width: 360px;
  511. height: 44px;
  512. line-height: 44px;
  513. font-size: 14px;
  514. color: #000;
  515. border-radius: 0;
  516. }
  517. input.answer {
  518. background: url("/images/all/more.png") no-repeat 325px center;
  519. cursor: pointer;
  520. }
  521. ul{
  522. display: none;
  523. position: absolute;
  524. top: 44px;
  525. left: 0;
  526. width: 360px;
  527. background: #fff;
  528. box-shadow: 0 0 5px rgba(0,0,0,.5);
  529. -moz-box-shadow: 0 0 5px rgba(0,0,0,.5);
  530. -o-box-shadow: 0 0 5px rgba(0,0,0,.5);
  531. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.5);
  532. z-index: 10;
  533. li{
  534. padding-left: 18px;
  535. width: 100%;
  536. height: 30px;
  537. line-height: 30px;
  538. text-align: left;
  539. font-size: 14px;
  540. color: #000;
  541. cursor: pointer;
  542. &:hover{
  543. background: #0076ad;
  544. color: #fff;
  545. }
  546. }
  547. }
  548. span.tip{
  549. position: absolute;
  550. top: 0;
  551. right: -238px;
  552. font-size: 13px;
  553. color: #8c8c8c;
  554. a{
  555. font-size: 13px;
  556. color: #0076ad;
  557. }
  558. }
  559. span.tip.codeError-tip{
  560. position: absolute;
  561. top: 3px;
  562. left: 378px;
  563. width: 200px;
  564. text-align: left;
  565. color: #ff4949;
  566. font-size: 12px;
  567. }
  568. i{
  569. position: absolute;
  570. top: 13px;
  571. left: 20px;
  572. font-size: 20px;
  573. color: #a0a0a0;
  574. }
  575. .btn {
  576. margin: 34px 0 16px 0;
  577. width: 360px;
  578. height: 44px;
  579. line-height: 44px;
  580. font-size: 16px;
  581. color: #fff;
  582. background: #0076AD;
  583. border-radius: 3px;
  584. }
  585. }
  586. .content-bottom{
  587. margin: 155px auto 0;
  588. padding-bottom: 50px;
  589. width: 360px;
  590. div.warp{
  591. padding-bottom: 65px;
  592. }
  593. p{
  594. font-size: 24px;
  595. color: #323232;
  596. img{
  597. margin-right: 20px;
  598. width: 30px;
  599. height: 28px;
  600. }
  601. }
  602. p.pass{
  603. font-size: 24px;
  604. color: #e77405;
  605. img{
  606. height: 30px;
  607. }
  608. }
  609. p.passed {
  610. color: #2ab300;
  611. img{
  612. height: 30px;
  613. }
  614. }
  615. span{
  616. display: inline-block;
  617. font-size: 14px;
  618. color: #8b8b8b;
  619. }
  620. span.close-tip{
  621. margin: 15px 0 140px 0;
  622. }
  623. .close-btn{
  624. margin: 0 auto;
  625. width: 200px;
  626. height: 36px;
  627. line-height: 36px;
  628. font-size: 14px;
  629. text-align: center;
  630. color: #323232;
  631. border: 1px solid #d2d2d2;
  632. border-radius: 3px;
  633. cursor: pointer ;
  634. }
  635. span.use{
  636. display: inline-block;
  637. margin-bottom: 30px;
  638. width: 360px;
  639. font-size: 14px;
  640. color: #000;
  641. text-align: left;
  642. em{
  643. font-size: 14px;
  644. font-style: normal;
  645. color: #000;
  646. }
  647. }
  648. .form-group {
  649. margin: 0 auto 16px;
  650. position: relative;
  651. width: 360px;
  652. height: 44px;
  653. line-height: 44px;
  654. input{
  655. padding: 0 0 0 18px;
  656. width: 360px;
  657. height: 44px;
  658. line-height: 44px;
  659. font-size: 14px;
  660. color: #000;
  661. border-radius: 0;
  662. }
  663. input.msg{
  664. float: left;
  665. width: 210px;
  666. padding: 0 0 0 18px;
  667. height: 44px;
  668. line-height: 44px;
  669. font-size: 14px;
  670. color: #000;
  671. border-radius: 0;
  672. }
  673. span.msg{
  674. float: right;
  675. margin: 0;
  676. width: 130px;
  677. height: 44px;
  678. line-height: 44px;
  679. text-align: center ;
  680. font-size: 14px;
  681. color: #5a5a5a;
  682. background: #f4f4f4;
  683. border: 1px solid #dcdcdc;
  684. cursor: pointer;
  685. }
  686. span.msg.send{
  687. background: #d2d2d2;
  688. color: #fff;
  689. }
  690. }
  691. .btn {
  692. margin: 34px 0 10px 0;
  693. width: 360px;
  694. height: 44px;
  695. line-height: 44px;
  696. font-size: 16px;
  697. color: #fff;
  698. background: #0076AD;
  699. border-radius: 3px;
  700. }
  701. }
  702. .choose{
  703. margin: 155px auto 0;
  704. padding-bottom: 44px;
  705. div{
  706. padding: 0 15px;
  707. margin: 0 auto 16px;
  708. width: 360px;
  709. height: 60px;
  710. line-height: 60px;
  711. text-align: left;
  712. overflow: hidden;
  713. border: 1px solid #d2d2d2;
  714. cursor: pointer;
  715. &:hover,&.active{
  716. border-color: #0076ad;
  717. span{
  718. color: #0076ad;
  719. }
  720. i.second {
  721. color: #0076ad;
  722. }
  723. }
  724. img.first{
  725. float: left;
  726. margin: 24px 20px 0 0;
  727. font-size: 20px;
  728. color: #323232;
  729. }
  730. img.first.mob{
  731. margin: 22px 20px 0 5px;
  732. font-size: 28px;
  733. }
  734. i.second {
  735. float: right;
  736. margin: 20px 0 0 5px;
  737. font-size: 20px;
  738. color: #323232;
  739. }
  740. span{
  741. float: left;
  742. font-size: 14px;
  743. color: #323232;
  744. }
  745. }
  746. }
  747. a.return{
  748. position: absolute;
  749. left: 0;
  750. top: -15px;
  751. img{
  752. width: 34px !important;
  753. height: 34px !important;
  754. }
  755. }
  756. }
  757. }
  758. }
  759. </style>