EmailValidation.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  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.isShowLoading = false
  380. this.$message.error(err.errMsg)
  381. })
  382. },
  383. // 手机号验证下一步
  384. goNextStep () {
  385. if (this.codeChecked) {
  386. this.isShowLoading = true
  387. let param = new FormData()
  388. param.append('mobile', this.getMobile)
  389. param.append('code', this.valid.code)
  390. param.append('token', this.token)
  391. let config = {
  392. headers: {'Content-Type': 'multipart/form-data'}
  393. }
  394. this.$http.post(`/update/user/check/mobile`, param, config)
  395. .then(response => {
  396. if (response.data.success) {
  397. this.isShowLoading = false
  398. this.$store.commit('login/GET_TOKEN', response.data.content)
  399. this.showPhoneValid = false
  400. this.$router.push({ path: '/validation/emailValidationSecondStep' })
  401. } else {
  402. this.showPhoneValid = true
  403. return Promise.reject(response.data)
  404. }
  405. }).catch(err => {
  406. this.isShowLoading = false
  407. this.$message.error(err.errMsg)
  408. })
  409. }
  410. },
  411. // 第一步验证邮箱
  412. firstStepValidEmail () {
  413. this.isShowLoading = true
  414. this.$http.get(`/update/user/check/email`, {params: {email: this.getEmail, operate: 'email'}})
  415. .then(response => {
  416. if (response.data.success) {
  417. this.isShowLoading = false
  418. this.emailSendSuccess = true
  419. } else {
  420. this.emailSendSuccess = false
  421. return Promise.reject(response.data)
  422. }
  423. }).catch(err => {
  424. this.isShowLoading = false
  425. console.log(err)
  426. // this.$message.error(err.errMsg)
  427. })
  428. },
  429. // 第一步验证密保提交
  430. validQuestionSubmit () {
  431. if (this.answer1SecondChecked && this.answer2SecondChecked) {
  432. this.isShowLoading = true
  433. let param = new FormData()
  434. let answer = []
  435. answer.push({'answer': this.validQuestion.answer1, 'sort': this.sort1}, {'answer': this.validQuestion.answer2, 'sort': this.sort2})
  436. let answers = JSON.stringify(answer)
  437. param.append('answers', answers)
  438. let config = {
  439. headers: {'Content-Type': 'multipart/form-data'}
  440. }
  441. this.$http.post(`/update/user/check/question`, param, config)
  442. .then(response => {
  443. if (response.data.success) {
  444. this.isShowLoading = false
  445. this.$store.commit('login/GET_TOKEN', response.data.content.token)
  446. this.showQuestionsValid = false
  447. this.$router.push({ path: '/validation/emailValidationSecondStep' })
  448. } else {
  449. this.showQuestionsValid = true
  450. return Promise.reject(response.data)
  451. }
  452. }).catch(err => {
  453. this.isShowLoading = false
  454. this.$message.error(err.errMsg)
  455. })
  456. }
  457. }
  458. }
  459. }
  460. </script>
  461. <style lang="scss" scoped>
  462. .validation {
  463. margin: 0 auto;
  464. width: 100%;
  465. background: #eee;
  466. .container{
  467. padding-top: 50px;
  468. margin: 0 auto;
  469. width: 980px;
  470. text-align: center;
  471. .content{
  472. padding: 0 50px;
  473. margin: 50px auto 0;
  474. width: 100%;
  475. /*height: 540px;*/
  476. text-align: center;
  477. background: #fff;
  478. .content-top{
  479. height: 80px;
  480. line-height: 80px;
  481. h3{
  482. margin-bottom: 0;
  483. font-size: 24px;
  484. color: #000;
  485. border-bottom: 1px solid #dcdcdc;
  486. }
  487. .step{
  488. position: relative;
  489. margin-top: 10px;
  490. img{
  491. width: 315px;
  492. height: 46px;
  493. }
  494. .step-item{
  495. position: absolute;
  496. top: 45px;
  497. left: 265px;
  498. span{
  499. margin-right: 78px;
  500. font-size: 14px;
  501. color: #b4b4b4;
  502. }
  503. span.active {
  504. color: #0076ad;
  505. }
  506. }
  507. }
  508. }
  509. form {
  510. margin-top: 150px;
  511. padding-bottom: 44px;
  512. input{
  513. padding: 0 0 0 18px;
  514. width: 360px;
  515. height: 44px;
  516. line-height: 44px;
  517. font-size: 14px;
  518. color: #000;
  519. border-radius: 0;
  520. }
  521. input.answer {
  522. background: url("/images/all/more.png") no-repeat 325px center;
  523. cursor: pointer;
  524. }
  525. ul{
  526. display: none;
  527. position: absolute;
  528. top: 44px;
  529. left: 0;
  530. width: 360px;
  531. background: #fff;
  532. box-shadow: 0 0 5px rgba(0,0,0,.5);
  533. -moz-box-shadow: 0 0 5px rgba(0,0,0,.5);
  534. -o-box-shadow: 0 0 5px rgba(0,0,0,.5);
  535. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.5);
  536. z-index: 10;
  537. li{
  538. padding-left: 18px;
  539. width: 100%;
  540. height: 30px;
  541. line-height: 30px;
  542. text-align: left;
  543. font-size: 14px;
  544. color: #000;
  545. cursor: pointer;
  546. &:hover{
  547. background: #0076ad;
  548. color: #fff;
  549. }
  550. }
  551. }
  552. span.tip{
  553. position: absolute;
  554. top: 0;
  555. right: -238px;
  556. font-size: 13px;
  557. color: #8c8c8c;
  558. a{
  559. font-size: 13px;
  560. color: #0076ad;
  561. }
  562. }
  563. span.tip.codeError-tip{
  564. position: absolute;
  565. top: 3px;
  566. left: 378px;
  567. width: 200px;
  568. text-align: left;
  569. color: #ff4949;
  570. font-size: 12px;
  571. }
  572. i{
  573. position: absolute;
  574. top: 13px;
  575. left: 20px;
  576. font-size: 20px;
  577. color: #a0a0a0;
  578. }
  579. .btn {
  580. margin: 34px 0 16px 0;
  581. width: 360px;
  582. height: 44px;
  583. line-height: 44px;
  584. font-size: 16px;
  585. color: #fff;
  586. background: #0076AD;
  587. border-radius: 3px;
  588. }
  589. }
  590. .content-bottom{
  591. margin: 155px auto 0;
  592. padding-bottom: 50px;
  593. width: 360px;
  594. div.warp{
  595. padding-bottom: 65px;
  596. }
  597. p{
  598. font-size: 24px;
  599. color: #323232;
  600. img{
  601. margin-right: 20px;
  602. width: 30px;
  603. height: 28px;
  604. }
  605. }
  606. p.pass{
  607. font-size: 24px;
  608. color: #e77405;
  609. img{
  610. height: 30px;
  611. }
  612. }
  613. p.passed {
  614. color: #2ab300;
  615. img{
  616. height: 30px;
  617. }
  618. }
  619. span{
  620. display: inline-block;
  621. font-size: 14px;
  622. color: #8b8b8b;
  623. }
  624. span.close-tip{
  625. margin: 15px 0 140px 0;
  626. }
  627. .close-btn{
  628. margin: 0 auto;
  629. width: 200px;
  630. height: 36px;
  631. line-height: 36px;
  632. font-size: 14px;
  633. text-align: center;
  634. color: #323232;
  635. border: 1px solid #d2d2d2;
  636. border-radius: 3px;
  637. cursor: pointer ;
  638. }
  639. span.use{
  640. display: inline-block;
  641. margin-bottom: 30px;
  642. width: 360px;
  643. font-size: 14px;
  644. color: #000;
  645. text-align: left;
  646. em{
  647. font-size: 14px;
  648. font-style: normal;
  649. color: #000;
  650. }
  651. }
  652. .form-group {
  653. margin: 0 auto 16px;
  654. position: relative;
  655. width: 360px;
  656. height: 44px;
  657. line-height: 44px;
  658. input{
  659. padding: 0 0 0 18px;
  660. width: 360px;
  661. height: 44px;
  662. line-height: 44px;
  663. font-size: 14px;
  664. color: #000;
  665. border-radius: 0;
  666. }
  667. input.msg{
  668. float: left;
  669. width: 210px;
  670. padding: 0 0 0 18px;
  671. height: 44px;
  672. line-height: 44px;
  673. font-size: 14px;
  674. color: #000;
  675. border-radius: 0;
  676. }
  677. span.msg{
  678. float: right;
  679. margin: 0;
  680. width: 130px;
  681. height: 44px;
  682. line-height: 44px;
  683. text-align: center ;
  684. font-size: 14px;
  685. color: #5a5a5a;
  686. background: #f4f4f4;
  687. border: 1px solid #dcdcdc;
  688. cursor: pointer;
  689. }
  690. span.msg.send{
  691. background: #d2d2d2;
  692. color: #fff;
  693. }
  694. }
  695. .btn {
  696. margin: 34px 0 10px 0;
  697. width: 360px;
  698. height: 44px;
  699. line-height: 44px;
  700. font-size: 16px;
  701. color: #fff;
  702. background: #0076AD;
  703. border-radius: 3px;
  704. }
  705. }
  706. .choose{
  707. margin: 155px auto 0;
  708. padding-bottom: 44px;
  709. div{
  710. padding: 0 15px;
  711. margin: 0 auto 16px;
  712. width: 360px;
  713. height: 60px;
  714. line-height: 60px;
  715. text-align: left;
  716. overflow: hidden;
  717. border: 1px solid #d2d2d2;
  718. cursor: pointer;
  719. &:hover,&.active{
  720. border-color: #0076ad;
  721. span{
  722. color: #0076ad;
  723. }
  724. i.second {
  725. color: #0076ad;
  726. }
  727. }
  728. img.first{
  729. float: left;
  730. margin: 24px 20px 0 0;
  731. font-size: 20px;
  732. color: #323232;
  733. }
  734. img.first.mob{
  735. margin: 22px 20px 0 5px;
  736. font-size: 28px;
  737. }
  738. i.second {
  739. float: right;
  740. margin: 20px 0 0 5px;
  741. font-size: 20px;
  742. color: #323232;
  743. }
  744. span{
  745. float: left;
  746. font-size: 14px;
  747. color: #323232;
  748. }
  749. }
  750. }
  751. a.return{
  752. position: absolute;
  753. left: 0;
  754. top: -15px;
  755. img{
  756. width: 34px !important;
  757. height: 34px !important;
  758. }
  759. }
  760. }
  761. }
  762. }
  763. </style>