EmailValidation.vue 22 KB

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