EmailValidation.vue 23 KB

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