EmailValidation.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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. <!--未验证手机弹出框-->
  125. <div>
  126. <el-dialog class="valid-phone"
  127. :visible.sync="goValidPhone"
  128. @close="goVaildPhoneStep"
  129. size="tiny">
  130. <div class="set-tip" v-show="goValidPhone">
  131. <p>您的账号的未验证手机,请先验证手机号</p>
  132. <a href="/validation/phoneValidation">确定</a>
  133. </div>
  134. </el-dialog>
  135. </div>
  136. <loading v-show="isShowLoading"/>
  137. </div>
  138. </div>
  139. </template>
  140. <script>
  141. import Loading from '~components/common/loading/Loading.vue'
  142. export default {
  143. name: 'validation',
  144. components: {
  145. Loading
  146. },
  147. data () {
  148. // 第一步校验验证码
  149. var validateFirstCode = (rule, value, callback) => {
  150. if (value === '') {
  151. callback(new Error('请填写正确的验证码'))
  152. this.codeErrorChecked = false
  153. this.codeChecked = false
  154. } else {
  155. if (this.valid.code !== '') {
  156. if (this.token !== '') {
  157. if (this.valid.code !== '' && this.getMobile !== '') {
  158. let param = new FormData()
  159. param.append('mobile', this.getMobile)
  160. param.append('code', this.valid.code)
  161. param.append('token', this.token)
  162. let config = {
  163. headers: {'Content-Type': 'multipart/form-data'}
  164. }
  165. this.$http.post(`/update/user/checkCode/mobile`, param, config)
  166. .then(response => {
  167. if (response.data.success) {
  168. this.codeChecked = true
  169. this.codeErrorChecked = false
  170. } else {
  171. this.codeErrorChecked = true
  172. this.codeChecked = false
  173. return Promise.reject(response.data)
  174. }
  175. }).catch(err => {
  176. this.codeErrorMsg = err.errMsg
  177. })
  178. }
  179. } else {}
  180. }
  181. callback()
  182. }
  183. }
  184. // 第一步验证密保
  185. var validateSecondAnswer1 = (rule, value, callback) => {
  186. if (value === '') {
  187. callback(new Error('请填写正确的答案'))
  188. this.answer1SecondChecked = false
  189. } else {
  190. if (this.validQuestion.answer1 !== '') {
  191. this.answer1SecondChecked = true
  192. }
  193. callback()
  194. }
  195. }
  196. var validateSecondAnswer2 = (rule, value, callback) => {
  197. if (value === '') {
  198. callback(new Error('请填写正确的答案'))
  199. this.answer2SecondChecked = false
  200. } else {
  201. if (this.validQuestion.answer2 !== '') {
  202. this.answer2SecondChecked = true
  203. }
  204. callback()
  205. }
  206. }
  207. return {
  208. isShowLoading: false,
  209. goFirstStep: true,
  210. hasValidPhoneWay: false,
  211. hasValidQuestionsWay: false,
  212. hasValidEmailWay: false,
  213. showManualAppeal: false,
  214. showPhoneValid: false,
  215. showEmailValid: false,
  216. showQuestionsValid: false,
  217. sendAccountCode: true,
  218. account_time: 0,
  219. codeErrorChecked: false,
  220. codeChecked: false,
  221. secretMobile: '',
  222. secretEmail: '',
  223. getMobile: '',
  224. getEmail: '',
  225. getQuestions: '',
  226. question1: '',
  227. question2: '',
  228. sort1: '',
  229. sort2: '',
  230. codeErrorMsg: '',
  231. firstStepToken: '',
  232. answer1SecondChecked: false,
  233. answer2SecondChecked: false,
  234. emailSendSuccess: false,
  235. goValidPhone: false,
  236. valid: {
  237. code: ''
  238. },
  239. validQuestion: {
  240. answer1: '',
  241. answer2: ''
  242. },
  243. rules: {
  244. code: [
  245. {validator: validateFirstCode, trigger: 'blur'}
  246. ]
  247. },
  248. rulesQuestion: {
  249. answer1: [
  250. {validator: validateSecondAnswer1, trigger: 'blur'}
  251. ],
  252. answer2: [
  253. {validator: validateSecondAnswer2, trigger: 'blur'}
  254. ]
  255. }
  256. }
  257. },
  258. computed: {
  259. logged () {
  260. // console.log(this.$store.state.option.isLogin.data.content)
  261. return this.$store.state.option.isLogin.data.content
  262. }
  263. },
  264. mounted () {
  265. // 验证是否登录
  266. this.$nextTick(() => {
  267. this.isLogin()
  268. // 刷新统计信息
  269. setInterval(() => {
  270. this.isLogin()
  271. }, 10000)
  272. })
  273. // 获取验证方式
  274. this.$nextTick(() => {
  275. this.getVerifyWay()
  276. })
  277. },
  278. methods: {
  279. // 判断用户是否登录
  280. isLogin () {
  281. if (!this.logged.isLogin) {
  282. // console.log(this.logged.isLogin)
  283. // 未登录跳到登录页面
  284. window.location.href = '/'
  285. }
  286. },
  287. // 获取验证方式
  288. getVerifyWay () {
  289. this.$http.get('/update/user/checkType').then(response => {
  290. if (response.data.success) {
  291. if (!response.data.content.mobile) {
  292. this.goValidPhone = true
  293. } else {
  294. if (response.data.content.mobile) {
  295. this.hasValidPhoneWay = true
  296. this.showManualAppeal = true
  297. this.getMobile = response.data.content.mobile
  298. var reg = /^(\d{3})\d{6}(\d{2})$/
  299. this.secretMobile = this.getMobile.replace(reg, '$1******$2')
  300. }
  301. if (response.data.content.questions) {
  302. this.hasValidQuestionsWay = true
  303. this.showManualAppeal = true
  304. this.getQuestions = response.data.content.questions
  305. this.question1 = this.getQuestions[0].question || ''
  306. this.question2 = this.getQuestions[1].question || ''
  307. this.sort1 = this.getQuestions[0].sort || ''
  308. this.sort2 = this.getQuestions[1].sort || ''
  309. }
  310. if (response.data.content.email) {
  311. this.hasValidEmailWay = true
  312. this.showManualAppeal = true
  313. this.getEmail = response.data.content.email
  314. let getEmailIndex = this.getEmail.indexOf('@')
  315. if (getEmailIndex > 3) {
  316. let len = this.getEmail.substring(3, getEmailIndex)
  317. this.secretEmail = this.getEmail.replace(len, '*')
  318. } else {
  319. this.getEmailArr = this.getEmail.split('')
  320. this.getEmailSplit = this.getEmailArr.splice(getEmailIndex, 0, '*')
  321. this.secretEmail = this.getEmailArr.join('')
  322. }
  323. }
  324. this.goValidPhone = false
  325. this.goFirstStep = true
  326. }
  327. }
  328. })
  329. },
  330. // 没验证手机将跳转到手机验证页面
  331. goVaildPhoneStep () {
  332. this.$router.push({ path: '/validation/phoneValidation' })
  333. },
  334. // 选择方式
  335. chooseWay (flag) {
  336. if (flag === 1) {
  337. this.showPhoneValid = true
  338. } else if (flag === 2) {
  339. this.showEmailValid = true
  340. } else if (flag === 3) {
  341. this.showQuestionsValid = true
  342. }
  343. this.goFirstStep = false
  344. },
  345. // 跳转到人工申诉页面
  346. goAccountAppeal () {
  347. window.location.href = '/appeals/accountAppeal'
  348. },
  349. // 返回上一步
  350. goPreviousStep () {
  351. this.goFirstStep = true
  352. this.showPhoneValid = false
  353. this.showEmailValid = false
  354. this.showQuestionsValid = false
  355. },
  356. // 获取第一步手机验证码
  357. getCheckCode () {
  358. this.isShowLoading = true
  359. this.$http.get(`/update/user/check/mobile`, {params: {mobile: this.getMobile}})
  360. .then(response => {
  361. this.isShowLoading = false
  362. this.token = response.data.content.token
  363. if (this.token !== '') {
  364. this.$message({
  365. message: '验证码已经发送到您的手机,请注意查收',
  366. type: 'success'
  367. })
  368. this.sendAccountCode = false
  369. this.account_time = 60
  370. var accountTime = setInterval(() => {
  371. this.account_time--
  372. if (this.account_time <= 0) {
  373. this.sendAccountCode = true
  374. clearInterval(accountTime)
  375. }
  376. }, 1000)
  377. }
  378. }).catch(err => {
  379. this.$message.error(err.errMsg)
  380. })
  381. },
  382. // 手机号验证下一步
  383. goNextStep () {
  384. this.isShowLoading = true
  385. if (this.codeChecked) {
  386. let param = new FormData()
  387. param.append('mobile', this.getMobile)
  388. param.append('code', this.valid.code)
  389. param.append('token', this.token)
  390. let config = {
  391. headers: {'Content-Type': 'multipart/form-data'}
  392. }
  393. this.$http.post(`/update/user/check/mobile`, param, config)
  394. .then(response => {
  395. if (response.data.success) {
  396. this.isShowLoading = false
  397. this.$store.commit('login/GET_TOKEN', response.data.content)
  398. this.showPhoneValid = false
  399. this.$router.push({ path: '/validation/emailValidationSecondStep' })
  400. } else {
  401. this.showPhoneValid = true
  402. return Promise.reject(response.data)
  403. }
  404. }).catch(err => {
  405. this.$message.error(err.errMsg)
  406. })
  407. }
  408. },
  409. // 第一步验证邮箱
  410. firstStepValidEmail () {
  411. this.isShowLoading = true
  412. this.$http.get(`/update/user/check/email`, {params: {email: this.getEmail, operate: 'email'}})
  413. .then(response => {
  414. if (response.data.success) {
  415. this.isShowLoading = false
  416. this.emailSendSuccess = true
  417. } else {
  418. this.emailSendSuccess = false
  419. return Promise.reject(response.data)
  420. }
  421. }).catch(err => {
  422. console.log(err)
  423. // this.$message.error(err.errMsg)
  424. })
  425. },
  426. // 第一步验证密保提交
  427. validQuestionSubmit () {
  428. this.isShowLoading = true
  429. if (this.answer1SecondChecked && this.answer2SecondChecked) {
  430. let param = new FormData()
  431. let answer = []
  432. answer.push({'answer': this.validQuestion.answer1, 'sort': this.sort1}, {'answer': this.validQuestion.answer2, 'sort': this.sort2})
  433. let answers = JSON.stringify(answer)
  434. param.append('answers', answers)
  435. let config = {
  436. headers: {'Content-Type': 'multipart/form-data'}
  437. }
  438. this.$http.post(`/update/user/check/question`, param, config)
  439. .then(response => {
  440. if (response.data.success) {
  441. this.isShowLoading = false
  442. this.$store.commit('login/GET_TOKEN', response.data.content.token)
  443. this.showQuestionsValid = false
  444. this.$router.push({ path: '/validation/emailValidationSecondStep' })
  445. } else {
  446. this.showQuestionsValid = true
  447. return Promise.reject(response.data)
  448. }
  449. }).catch(err => {
  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>