ChangeManager.vue 22 KB

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