PhoneValidation.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. <template>
  2. <div class="validation">
  3. <div class="container">
  4. <div class="content" v-show="goFirstStep">
  5. <div class="content-top">
  6. <h3 @click="getVerifyWay">验证手机</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">
  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>183****08@qq.com</em>进行验证,有效期7天</span>
  79. <div class="warp"><button class="btn">发送验证请求</button></div>
  80. </div>
  81. </div>
  82. <div class="content" v-show="showQuestionsValid">
  83. <div class="content-top">
  84. <h3>验证手机</h3>
  85. <div class="step">
  86. <img src="/images/all/step01.png" alt=""/>
  87. <div class="step-item"><span class="active">账号验证</span><span>新手机号码</span><span>设置完成</span></div>
  88. <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
  89. </div>
  90. </div>
  91. <form action="">
  92. <div class="form-group">
  93. <input type="text" value="问题一" class="answer form-control"/>
  94. <ul>
  95. <li>您的母亲的生日是几月几日?</li>
  96. <li>您最喜欢的宠物叫什么名字?</li>
  97. <li>您最喜欢的电影片名是什么?</li>
  98. <li>您的学号是?</li>
  99. </ul>
  100. </div>
  101. <div class="form-group">
  102. <input type="text" class="form-control" placeholder="答案一"/>
  103. </div>
  104. <div class="form-group">
  105. <input type="text" value="问题一" class="answer form-control"/>
  106. <ul>
  107. <li>您的爷爷叫什么名字?</li>
  108. <li>您的配偶的生日是几月几日?</li>
  109. <li>您最喜欢的歌手是谁?</li>
  110. <li>您就读的小学学校全称是?</li>
  111. </ul>
  112. </div>
  113. <div class="form-group">
  114. <input type="text" class="form-control" placeholder="答案二"/>
  115. </div>
  116. <button class="btn">提交</button>
  117. </form>
  118. </div>
  119. <div class="content" v-show="goSecondStep">
  120. <div class="content-top">
  121. <h3>验证手机</h3>
  122. <div class="step">
  123. <img src="/images/all/step02.png" alt=""/>
  124. <div class="step-item"><span class="active">账号验证</span><span class="active">新手机号码</span><span>设置完成</span></div>
  125. </div>
  126. </div>
  127. <div class="content-bottom">
  128. <div>
  129. <el-form :model="valid2" :rules="rules2" ref="valid2" label-width="100px" class="demo-ruleForm">
  130. <el-form-item prop="mobile">
  131. <el-input v-model="valid2.mobile" placeholder="新手机号码"></el-input>
  132. </el-form-item>
  133. <el-form-item prop="code">
  134. <el-input type="text" v-model="valid2.code"
  135. v-bind:class="{ active: this.secondStepCodeErrorChecked }"
  136. auto-complete="off"
  137. class="msg"
  138. placeholder="短信验证码"></el-input>
  139. <el-button type="primary" class="code"
  140. v-show="showSecondStepCode"
  141. @click="getSecondCheckCode"
  142. :disabled="getCodeBtnIsDisabled">获取验证码</el-button>
  143. <el-button type="primary" v-show="!showSecondStepCode" class="code code-send">已发送({{second_step_time}}s)</el-button>
  144. <span v-show="secondStepCodeErrorChecked" class="tip codeError-tip">{{secondCodeErrorMsg}}</span>
  145. </el-form-item>
  146. <el-form-item>
  147. <a class="btn finish"
  148. :disabled="!mobileSecondChecked || !secondCodeChecked"
  149. @click="setNewMobile">确认</a>
  150. </el-form-item>
  151. </el-form>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="content" v-show="goLastStep">
  156. <div class="content-top">
  157. <h3>验证手机</h3>
  158. <div class="step">
  159. <img src="/images/all/step03.png" alt=""/>
  160. <div class="step-item"><span class="active">账号验证</span><span class="active">新手机号码</span><span class="active">设置完成</span></div>
  161. </div>
  162. </div>
  163. <div class="content-bottom">
  164. <p class="passed"><img src="/images/all/pass.png" alt=""/>设置成功</p>
  165. <span>及时更换最新的手机号码能极大地提高账号安全性哦!</span>
  166. <div class="close-btn" @click="goCloudCenter">关闭</div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </template>
  172. <script>
  173. export default {
  174. name: 'validation',
  175. data () {
  176. // 第一步校验验证码
  177. var validateFirstCode = (rule, value, callback) => {
  178. if (value === '') {
  179. callback(new Error('请填写正确的验证码'))
  180. this.codeErrorChecked = false
  181. this.codeChecked = false
  182. } else {
  183. if (this.valid.code !== '') {
  184. if (this.token !== '') {
  185. if (this.valid.code !== '' && this.getMobile !== '') {
  186. let param = new FormData()
  187. param.append('mobile', this.getMobile)
  188. param.append('code', this.valid.code)
  189. param.append('token', this.token)
  190. let config = {
  191. headers: {'Content-Type': 'multipart/form-data'}
  192. }
  193. this.$http.post(`/update/user/checkCode/mobile`, param, config)
  194. .then(response => {
  195. if (response.data.success) {
  196. this.codeChecked = true
  197. this.codeErrorChecked = false
  198. } else {
  199. this.codeErrorChecked = true
  200. this.codeChecked = false
  201. return Promise.reject(response.data)
  202. }
  203. }).catch(err => {
  204. this.codeErrorMsg = err.errMsg
  205. })
  206. }
  207. } else {}
  208. }
  209. callback()
  210. }
  211. }
  212. // 第二步
  213. var validateSecondMobile = (rule, value, callback) => {
  214. if (value === '') {
  215. callback(new Error('请填写正确的手机号'))
  216. this.getCodeBtnIsDisabled = true
  217. this.mobileSecondChecked = false
  218. } else {
  219. if (this.valid2.mobile !== '') {
  220. var reg = /^1[0-9]{10}$/
  221. if (!reg.test(value)) {
  222. callback(new Error('请填写正确的手机号'))
  223. this.getCodeBtnIsDisabled = true
  224. this.mobileSecondChecked = false
  225. } else {
  226. this.getCodeBtnIsDisabled = false
  227. this.mobileSecondChecked = true
  228. }
  229. }
  230. callback()
  231. }
  232. }
  233. var validateSecondCode = (rule, value, callback) => {
  234. if (value === '') {
  235. callback(new Error('请填写正确的验证码'))
  236. this.secondStepCodeErrorChecked = false
  237. this.secondCodeChecked = false
  238. } else {
  239. if (this.valid2.code !== '') {
  240. if (this.secondToken !== '') {
  241. if (this.valid2.code !== '' && this.valid2.mobile !== '') {
  242. let param = new FormData()
  243. param.append('mobile', this.valid2.mobile)
  244. param.append('code', this.valid2.code)
  245. param.append('token', this.secondToken)
  246. let config = {
  247. headers: {'Content-Type': 'multipart/form-data'}
  248. }
  249. this.$http.post(`/update/user/checkCode/mobile`, param, config)
  250. .then(response => {
  251. if (response.data.success) {
  252. this.secondCodeChecked = true
  253. this.secondStepCodeErrorChecked = false
  254. } else {
  255. this.secondStepCodeErrorChecked = true
  256. this.secondCodeChecked = false
  257. return Promise.reject(response.data)
  258. }
  259. }).catch(err => {
  260. this.secondCodeErrorMsg = err.errMsg
  261. })
  262. }
  263. } else {}
  264. }
  265. callback()
  266. }
  267. }
  268. return {
  269. activeTab: 0,
  270. goFirstStep: true,
  271. goSecondStep: false,
  272. goLastStep: false,
  273. hasValidPhoneWay: false,
  274. hasValidQuestionsWay: false,
  275. hasValidEmailWay: false,
  276. showManualAppeal: false,
  277. showPhoneValid: false,
  278. showEmailValid: false,
  279. showQuestionsValid: false,
  280. sendAccountCode: true,
  281. account_time: 0,
  282. second_step_time: 0,
  283. codeErrorChecked: false,
  284. secondStepCodeErrorChecked: false,
  285. codeChecked: false,
  286. secondCodeChecked: false,
  287. secretMobile: '',
  288. getMobile: '',
  289. codeErrorMsg: '',
  290. secondCodeErrorMsg: '',
  291. firstStepToken: '',
  292. mobileSecondChecked: false,
  293. getCodeBtnIsDisabled: true,
  294. showSecondStepCode: true,
  295. valid: {
  296. code: ''
  297. },
  298. valid2: {
  299. mobile: '',
  300. code: ''
  301. },
  302. rules: {
  303. code: [
  304. {validator: validateFirstCode, trigger: 'blur'}
  305. ]
  306. },
  307. rules2: {
  308. mobile: [
  309. {validator: validateSecondMobile, trigger: 'blur'}
  310. ],
  311. code: [
  312. {validator: validateSecondCode, trigger: 'blur'}
  313. ]
  314. }
  315. }
  316. },
  317. computed: {
  318. logged () {
  319. // console.log(this.$store.state.option.isLogin.data.content)
  320. return this.$store.state.option.isLogin.data.content
  321. }
  322. },
  323. mounted () {
  324. // 验证是否登录
  325. this.$nextTick(() => {
  326. this.isLogin()
  327. // 刷新统计信息
  328. setInterval(() => {
  329. this.isLogin()
  330. }, 10000)
  331. })
  332. // 获取验证方式
  333. this.$nextTick(() => {
  334. this.getVerifyWay()
  335. })
  336. },
  337. methods: {
  338. // 判断用户是否登录
  339. isLogin () {
  340. if (!this.logged.isLogin) {
  341. // console.log(this.logged.isLogin)
  342. // 未登录跳到登录页面
  343. window.location.href = '/'
  344. }
  345. },
  346. // 获取验证方式
  347. getVerifyWay () {
  348. this.$http.get('/update/user/checkType').then(response => {
  349. if (response.data.success) {
  350. if (!response.data.content) {
  351. this.goSecondStep = true
  352. this.goFirstStep = false
  353. this.showManualAppeal = false
  354. } else {
  355. if (response.data.content.mobile) {
  356. this.hasValidPhoneWay = true
  357. this.showManualAppeal = true
  358. this.getMobile = response.data.content.mobile
  359. var reg = /^(\d{3})\d{6}(\d{2})$/
  360. this.secretMobile = this.getMobile.replace(reg, '$1******$2')
  361. }
  362. if (response.data.content.questions) {
  363. this.hasValidQuestionsWay = true
  364. this.showManualAppeal = true
  365. }
  366. if (response.data.content.email) {
  367. this.hasValidEmailWay = true
  368. this.showManualAppeal = true
  369. }
  370. this.goSecondStep = false
  371. this.goFirstStep = true
  372. }
  373. }
  374. })
  375. },
  376. // 选择方式
  377. chooseWay (flag) {
  378. if (flag === 1) {
  379. this.showPhoneValid = true
  380. } else if (flag === 2) {
  381. this.showEmailValid = true
  382. } else if (flag === 3) {
  383. this.showQuestionsValid = true
  384. }
  385. this.goFirstStep = false
  386. },
  387. // 跳转到人工申诉页面
  388. goAccountAppeal () {
  389. window.location.href = '/appeals/accountAppeal'
  390. },
  391. // 返回上一步
  392. goPreviousStep () {
  393. this.goFirstStep = true
  394. this.showPhoneValid = false
  395. this.showEmailValid = false
  396. this.showQuestionsValid = false
  397. },
  398. // 获取第一步手机验证码
  399. getCheckCode () {
  400. this.$http.get(`/update/user/check/mobile`, {params: {mobile: this.getMobile}})
  401. .then(response => {
  402. this.token = response.data.content.token
  403. console.log(this.token)
  404. if (this.token !== '') {
  405. this.$message({
  406. message: '验证码已经发送到您的手机,请注意查收',
  407. type: 'success'
  408. })
  409. this.sendAccountCode = false
  410. this.account_time = 60
  411. var accountTime = setInterval(() => {
  412. this.account_time--
  413. if (this.account_time <= 0) {
  414. this.sendAccountCode = true
  415. clearInterval(accountTime)
  416. }
  417. }, 1000)
  418. }
  419. }).catch(err => {
  420. this.$message.error(err.errMsg)
  421. })
  422. },
  423. // 手机号验证下一步
  424. goNextStep () {
  425. if (this.codeChecked) {
  426. console.log(this.token)
  427. let param = new FormData()
  428. param.append('mobile', this.getMobile)
  429. param.append('code', this.valid.code)
  430. param.append('token', this.token)
  431. let config = {
  432. headers: {'Content-Type': 'multipart/form-data'}
  433. }
  434. this.$http.post(`/update/user/check/mobile`, param, config)
  435. .then(response => {
  436. if (response.data.success) {
  437. this.firstStepToken = response.data.content
  438. this.goSecondStep = true
  439. this.showPhoneValid = false
  440. } else {
  441. this.goSecondStep = false
  442. this.showPhoneValid = true
  443. return Promise.reject(response.data)
  444. }
  445. }).catch(err => {
  446. this.$message.error(err.errMsg)
  447. })
  448. }
  449. },
  450. // 获取第二步手机验证码
  451. getSecondCheckCode () {
  452. this.$http.get(`/update/user/setMobile`, {params: {mobile: this.valid2.mobile, token: this.firstStepToken}})
  453. .then(response => {
  454. this.secondToken = response.data.content.token
  455. if (this.secondToken !== '') {
  456. this.$message({
  457. message: '验证码已经发送到您的手机,请注意查收',
  458. type: 'success'
  459. })
  460. this.showSecondStepCode = false
  461. this.second_step_time = 60
  462. var secondStepTime = setInterval(() => {
  463. this.second_step_time--
  464. if (this.second_step_time <= 0) {
  465. this.showSecondStepCode = true
  466. clearInterval(secondStepTime)
  467. }
  468. }, 1000)
  469. }
  470. }).catch(err => {
  471. console.log(err)
  472. })
  473. },
  474. // 设置新手机号
  475. setNewMobile () {
  476. if (this.mobileSecondChecked && this.secondCodeChecked) {
  477. let param = new FormData()
  478. param.append('mobile', this.valid2.mobile)
  479. param.append('code', this.valid2.code)
  480. param.append('token', this.secondToken)
  481. let config = {
  482. headers: {'Content-Type': 'multipart/form-data'}
  483. }
  484. this.$http.post(`/update/user/setMobile`, param, config)
  485. .then(response => {
  486. if (response.data.success) {
  487. console.log(response.data.success)
  488. this.goLastStep = true
  489. this.goSecondStep = false
  490. } else {
  491. this.goLastStep = false
  492. this.goSecondStep = true
  493. return Promise.reject(response.data)
  494. }
  495. }).catch(err => {
  496. console.log(err)
  497. })
  498. }
  499. },
  500. // 跳转至云中心页面
  501. goCloudCenter () {
  502. window.location.href = '/cloudcenter'
  503. }
  504. }
  505. }
  506. </script>
  507. <style lang="scss" scoped>
  508. .validation {
  509. margin: 0 auto;
  510. width: 100%;
  511. background: #eee;
  512. .container{
  513. padding-top: 50px;
  514. margin: 0 auto;
  515. width: 980px;
  516. text-align: center;
  517. .content{
  518. padding: 0 50px;
  519. margin: 50px auto 0;
  520. width: 100%;
  521. /*height: 540px;*/
  522. text-align: center;
  523. background: #fff;
  524. .content-top{
  525. height: 80px;
  526. line-height: 80px;
  527. h3{
  528. margin-bottom: 0;
  529. font-size: 24px;
  530. color: #000;
  531. border-bottom: 1px solid #dcdcdc;
  532. }
  533. .step{
  534. position: relative;
  535. margin-top: 10px;
  536. img{
  537. width: 315px;
  538. height: 46px;
  539. }
  540. .step-item{
  541. position: absolute;
  542. top: 45px;
  543. left: 265px;
  544. span{
  545. margin-right: 78px;
  546. font-size: 14px;
  547. color: #b4b4b4;
  548. }
  549. span.active {
  550. color: #0076ad;
  551. }
  552. }
  553. }
  554. }
  555. form {
  556. padding-bottom: 44px;
  557. input{
  558. padding: 0 0 0 18px;
  559. width: 360px;
  560. height: 44px;
  561. line-height: 44px;
  562. font-size: 14px;
  563. color: #000;
  564. border-radius: 0;
  565. }
  566. input.answer {
  567. background: url("/images/all/more.png") no-repeat 325px center;
  568. cursor: pointer;
  569. }
  570. ul{
  571. display: none;
  572. position: absolute;
  573. top: 44px;
  574. left: 0;
  575. width: 360px;
  576. background: #fff;
  577. box-shadow: 0 0 5px rgba(0,0,0,.5);
  578. -moz-box-shadow: 0 0 5px rgba(0,0,0,.5);
  579. -o-box-shadow: 0 0 5px rgba(0,0,0,.5);
  580. -webkit-box-shadow: 0 0 5px rgba(0,0,0,.5);
  581. z-index: 10;
  582. li{
  583. padding-left: 18px;
  584. width: 100%;
  585. height: 30px;
  586. line-height: 30px;
  587. text-align: left;
  588. font-size: 14px;
  589. color: #000;
  590. cursor: pointer;
  591. &:hover{
  592. background: #0076ad;
  593. color: #fff;
  594. }
  595. }
  596. }
  597. span.tip{
  598. position: absolute;
  599. top: 0;
  600. right: -238px;
  601. font-size: 13px;
  602. color: #8c8c8c;
  603. a{
  604. font-size: 13px;
  605. color: #0076ad;
  606. }
  607. }
  608. span.tip.codeError-tip{
  609. position: absolute;
  610. top: 3px;
  611. left: 378px;
  612. width: 200px;
  613. text-align: left;
  614. color: #ff4949;
  615. font-size: 12px;
  616. }
  617. i{
  618. position: absolute;
  619. top: 13px;
  620. left: 20px;
  621. font-size: 20px;
  622. color: #a0a0a0;
  623. }
  624. .btn {
  625. margin: 34px 0 16px 0;
  626. width: 360px;
  627. height: 44px;
  628. line-height: 44px;
  629. font-size: 16px;
  630. color: #fff;
  631. background: #0076AD;
  632. border-radius: 3px;
  633. }
  634. }
  635. .content-bottom{
  636. margin: 155px auto 0;
  637. padding-bottom: 50px;
  638. width: 360px;
  639. div.warp{
  640. padding-bottom: 65px;
  641. }
  642. p{
  643. font-size: 24px;
  644. color: #323232;
  645. img{
  646. margin-right: 20px;
  647. width: 30px;
  648. height: 28px;
  649. }
  650. }
  651. p.pass{
  652. font-size: 24px;
  653. color: #e77405;
  654. img{
  655. height: 30px;
  656. }
  657. }
  658. p.passed {
  659. color: #2ab300;
  660. img{
  661. height: 30px;
  662. }
  663. }
  664. span{
  665. display: inline-block;
  666. margin: 15px 0 140px 0;
  667. font-size: 14px;
  668. color: #8b8b8b;
  669. }
  670. .close-btn{
  671. margin: 0 auto;
  672. width: 200px;
  673. height: 36px;
  674. line-height: 36px;
  675. font-size: 14px;
  676. text-align: center;
  677. color: #323232;
  678. border: 1px solid #d2d2d2;
  679. border-radius: 3px;
  680. cursor: pointer ;
  681. }
  682. span.use{
  683. display: inline-block;
  684. margin-bottom: 30px;
  685. width: 360px;
  686. font-size: 14px;
  687. color: #000;
  688. text-align: left;
  689. em{
  690. font-size: 14px;
  691. font-style: normal;
  692. color: #000;
  693. }
  694. }
  695. .form-group {
  696. margin: 0 auto 16px;
  697. position: relative;
  698. width: 360px;
  699. height: 44px;
  700. line-height: 44px;
  701. input{
  702. padding: 0 0 0 18px;
  703. width: 360px;
  704. height: 44px;
  705. line-height: 44px;
  706. font-size: 14px;
  707. color: #000;
  708. border-radius: 0;
  709. }
  710. input.msg{
  711. float: left;
  712. width: 210px;
  713. padding: 0 0 0 18px;
  714. height: 44px;
  715. line-height: 44px;
  716. font-size: 14px;
  717. color: #000;
  718. border-radius: 0;
  719. }
  720. span.msg{
  721. float: right;
  722. margin: 0;
  723. width: 130px;
  724. height: 44px;
  725. line-height: 44px;
  726. text-align: center ;
  727. font-size: 14px;
  728. color: #5a5a5a;
  729. background: #f4f4f4;
  730. border: 1px solid #dcdcdc;
  731. cursor: pointer;
  732. }
  733. span.msg.send{
  734. background: #d2d2d2;
  735. color: #fff;
  736. }
  737. }
  738. .btn {
  739. margin: 34px 0 10px 0;
  740. width: 360px;
  741. height: 44px;
  742. line-height: 44px;
  743. font-size: 16px;
  744. color: #fff;
  745. background: #0076AD;
  746. border-radius: 3px;
  747. }
  748. }
  749. .choose{
  750. margin: 155px auto 0;
  751. padding-bottom: 44px;
  752. div{
  753. padding: 0 15px;
  754. margin: 0 auto 16px;
  755. width: 360px;
  756. height: 60px;
  757. line-height: 60px;
  758. text-align: left;
  759. overflow: hidden;
  760. border: 1px solid #d2d2d2;
  761. cursor: pointer;
  762. &:hover,&.active{
  763. border-color: #0076ad;
  764. span{
  765. color: #0076ad;
  766. }
  767. i.second {
  768. color: #0076ad;
  769. }
  770. }
  771. img.first{
  772. float: left;
  773. margin: 24px 20px 0 0;
  774. font-size: 20px;
  775. color: #323232;
  776. }
  777. img.first.mob{
  778. margin: 22px 20px 0 5px;
  779. font-size: 28px;
  780. }
  781. i.second {
  782. float: right;
  783. margin: 20px 0 0 5px;
  784. font-size: 20px;
  785. color: #323232;
  786. }
  787. span{
  788. float: left;
  789. font-size: 14px;
  790. color: #323232;
  791. }
  792. }
  793. }
  794. a.return{
  795. position: absolute;
  796. left: 0;
  797. top: -15px;
  798. img{
  799. width: 34px !important;
  800. height: 34px !important;
  801. }
  802. }
  803. }
  804. }
  805. }
  806. </style>