PasswordRestAppeal.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. <template>
  2. <div class="certification">
  3. <div class="container">
  4. <div class="content" v-show="goNextStep">
  5. <div class="content-top">
  6. <h3>密码重置</h3>
  7. </div>
  8. <div>
  9. <el-form :model="passwordRest" :rules="rules" ref="passwordRest" label-width="100px" class="demo-ruleForm">
  10. <el-form-item prop="mobile">
  11. <el-input v-model="passwordRest.mobile"
  12. v-bind:class="{active: mobileIsExit}"
  13. placeholder="新手机号码"></el-input>
  14. <span class="tip tip-mobile" v-show="mobileIsExit">该手机号未注册</span>
  15. </el-form-item>
  16. <el-form-item prop="code">
  17. <el-input type="text" v-model="passwordRest.code"
  18. v-bind:class="{ active: codeErrorChecked }"
  19. auto-complete="off" class="msg"
  20. placeholder="短信验证码"></el-input>
  21. <el-button type="primary" class="code"
  22. v-show="sendAccountCode"
  23. @click="getCheckCode"
  24. :disabled="getCodeBtnIsDisabled">获取验证码</el-button>
  25. <el-button type="primary" v-show="!sendAccountCode" class="code code-send">已发送({{account_time}}s)</el-button>
  26. <span v-show="codeErrorChecked" class="tip codeError-tip" >{{codeErrorMsg}}</span>
  27. </el-form-item>
  28. <el-form-item prop="password">
  29. <el-input type="password" v-model="passwordRest.password" auto-complete="new-password" placeholder="新密码"></el-input>
  30. <div class="pwd sm" v-show="showMsgTip1">密码强度 <em></em><em></em><em></em><span>弱</span></div>
  31. <div class="pwd md" v-show="showMsgTip2">密码强度 <em></em><em></em><em></em><span>中</span></div>
  32. <div class="pwd lar" v-show="showMsgTip3">密码强度 <em></em><em></em><em></em><span>强</span></div>
  33. <div class="pwd low" v-show="showMsgTip4">密码强度 <em></em><em></em><em></em></div>
  34. </el-form-item>
  35. <el-form-item prop="confirm">
  36. <el-input type="password"
  37. v-model="passwordRest.confirm"
  38. v-bind:class="{active: showPasswordError}"
  39. auto-complete="new-password"
  40. placeholder="密码确认"></el-input>
  41. <span class="tip passwordError" v-show="showPasswordError">两次输入密码不一致</span>
  42. </el-form-item>
  43. <el-form-item prop="description">
  44. <el-input type="textarea" v-model="passwordRest.description" placeholder="申诉说明"></el-input>
  45. <span class="tip description" v-show="descriptionTip">请描述您申诉的原因,并尽可能多地列举出证明此账号为您所有的证据</span>
  46. </el-form-item>
  47. <el-form-item prop="contactName">
  48. <el-input type="text" v-model="passwordRest.contactName" auto-complete="off" placeholder="姓名"></el-input>
  49. </el-form-item>
  50. <el-form-item prop="contactTel">
  51. <el-input type="text" v-model="passwordRest.contactTel" auto-complete="off" placeholder="联系电话"></el-input>
  52. </el-form-item>
  53. <el-form-item prop="contactEmail">
  54. <el-input type="text" v-model="passwordRest.contactEmail" auto-complete="off" placeholder="电子邮箱"></el-input>
  55. </el-form-item>
  56. <el-form-item>
  57. <a class="btn finish"
  58. @click="submit"
  59. :disabled="!checked || !mobileChecked || !codeChecked || !passwordChecked || !confirmChecked || !descriptionChecked || !contactNameChecked || !contactTelChecked || !contactEmailChecked">提交</a>
  60. </el-form-item>
  61. <el-form-item>
  62. <el-checkbox name="type" v-model="checked" @click="checkboxChecked"></el-checkbox>
  63. <span class="agree">我已阅读并同意 <a href="/common/agreement">《优软云服务条款》</a></span>
  64. </el-form-item>
  65. </el-form>
  66. </div>
  67. </div>
  68. <div class="content" v-show="!goNextStep">
  69. <div class="content-top">
  70. <h3>密码重置</h3>
  71. </div>
  72. <div class="content-bottom">
  73. <p class="passed"><img src="/images/all/pass.png" alt=""/>申诉已提交</p>
  74. <span>申诉内容已提交,请耐心等待审核</span>
  75. <div class="close-btn" @click="goCloudCenter">关闭</div>
  76. </div>
  77. </div>
  78. <loading v-show="isShowLoading"/>
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import Loading from '~components/common/loading/Loading.vue'
  84. export default {
  85. name: 'AccountAppeal',
  86. components: {
  87. Loading
  88. },
  89. data () {
  90. var validateMobile = (rule, value, callback) => {
  91. if (value === '') {
  92. callback(new Error('请填写正确的手机号'))
  93. this.getCodeBtnIsDisabled = true
  94. this.mobileChecked = false
  95. this.mobileIsExit = false
  96. } else {
  97. if (this.passwordRest.mobile !== '') {
  98. var reg = /^1[0-9]{10}$/
  99. if (!reg.test(value)) {
  100. callback(new Error('请填写正确的手机号'))
  101. this.getCodeBtnIsDisabled = true
  102. this.mobileChecked = false
  103. this.mobileIsExit = false
  104. } else {
  105. this.$http.get(`/api/user/checkMobile`, {params: {mobile: this.passwordRest.mobile}})
  106. .then(response => {
  107. if (response.data.hasRegister) {
  108. this.getCodeBtnIsDisabled = false
  109. this.mobileChecked = true
  110. this.mobileIsExit = false
  111. } else {
  112. this.getCodeBtnIsDisabled = true
  113. this.mobileChecked = false
  114. this.mobileIsExit = true
  115. }
  116. })
  117. }
  118. }
  119. callback()
  120. }
  121. }
  122. var validateCode = (rule, value, callback) => {
  123. if (value === '') {
  124. callback(new Error('请填写正确的验证码'))
  125. this.codeErrorChecked = false
  126. this.codeChecked = false
  127. } else {
  128. if (this.passwordRest.code !== '') {
  129. if (this.passwordRest.mobile === '') {
  130. callback(new Error('请先填写正确的验证码'))
  131. } else {
  132. if (this.token) {
  133. let param = new FormData()
  134. param.append('mobile', this.passwordRest.mobile)
  135. param.append('code', this.passwordRest.code)
  136. param.append('token', this.token)
  137. let config = {
  138. headers: {'Content-Type': 'multipart/form-data'}
  139. }
  140. this.$http.post(`/appeal/check/mobile`, param, config)
  141. .then(response => {
  142. if (response.data.success) {
  143. this.codeChecked = true
  144. this.codeErrorChecked = false
  145. } else {
  146. this.codeErrorChecked = true
  147. this.codeChecked = false
  148. return Promise.reject(response.data)
  149. }
  150. }).catch(err => {
  151. this.codeErrorMsg = err.errMsg
  152. // this.$message.error(err.errMsg)
  153. })
  154. } else {
  155. this.codeChecked = false
  156. this.codeErrorChecked = false
  157. callback(new Error('请先获取验证码'))
  158. }
  159. }
  160. }
  161. callback()
  162. }
  163. }
  164. var validatePassword = (rule, value, callback) => {
  165. if (this.passwordRest.password !== '') {
  166. if (value.length <= 20 && value.length >= 8) {
  167. var reg1 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])((?=.*[a-zA-Z]))(?=.*[^a-zA-Z0-9]))).*$/
  168. var reg2 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z]))|((?=.*[0-9])(?=.*[A-Z]))).*$/
  169. if (reg1.test(value)) {
  170. // callback(new Error('密码强度强'))
  171. this.showMsgTip3 = true
  172. this.showMsgTip2 = false
  173. this.showMsgTip1 = false
  174. this.showMsgTip4 = false
  175. this.passwordChecked = true
  176. } else if (reg2.test(value)) {
  177. // callback(new Error('密码强度中'))
  178. this.showMsgTip2 = true
  179. this.showMsgTip3 = false
  180. this.showMsgTip1 = false
  181. this.showMsgTip4 = false
  182. this.passwordChecked = true
  183. } else {
  184. this.showMsgTip1 = true
  185. this.showMsgTip3 = false
  186. this.showMsgTip2 = false
  187. this.showMsgTip4 = false
  188. this.passwordChecked = false
  189. }
  190. } else {
  191. this.showMsgTip3 = false
  192. this.showMsgTip2 = false
  193. this.showMsgTip1 = false
  194. this.showMsgTip4 = true
  195. this.passwordChecked = false
  196. }
  197. }
  198. callback()
  199. }
  200. var validatePasswordTip = (rule, value, callback) => {
  201. if (value === '') {
  202. callback(new Error('请输入密码'))
  203. this.passwordChecked = false
  204. console.log(this.passwordChecked)
  205. } else {
  206. if (this.passwordRest.password !== '') {
  207. if (value.length <= 20 && value.length >= 8) {
  208. var reg1 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])((?=.*[a-zA-Z]))(?=.*[^a-zA-Z0-9]))).*$/
  209. var reg2 = /^(?=.{8,20})(((?=.*[0-9])(?=.*[a-z]))|((?=.*[0-9])(?=.*[A-Z]))).*$/
  210. if (reg1.test(value)) {
  211. this.passwordChecked = true
  212. } else if (reg2.test(value)) {
  213. this.passwordChecked = true
  214. } else {
  215. callback(new Error('密码须为8-20字符的英文、数字混合'))
  216. this.passwordChecked = false
  217. }
  218. } else {
  219. callback(new Error('密码须为8-20字符的英文、数字混合'))
  220. this.passwordChecked = false
  221. }
  222. if (this.passwordRest.confirm) {
  223. console.log(this.passwordRest.confirm)
  224. if (value !== this.passwordRest.confirm) {
  225. this.showPasswordError = true
  226. // callback(new Error('两次输入密码不一致!'))
  227. this.confirmChecked = false
  228. } else {
  229. this.confirmChecked = true
  230. this.showPasswordError = false
  231. callback()
  232. }
  233. }
  234. }
  235. callback()
  236. }
  237. }
  238. var validateConfirm = (rule, value, callback) => {
  239. if (value === '') {
  240. callback(new Error('请再次输入密码'))
  241. this.showPasswordError = false
  242. this.confirmChecked = false
  243. } else if (value !== this.passwordRest.password) {
  244. // callback(new Error('两次输入密码不一致!'))
  245. this.showPasswordError = true
  246. this.confirmChecked = false
  247. } else {
  248. this.confirmChecked = true
  249. this.showPasswordError = false
  250. callback()
  251. }
  252. }
  253. var validateDescription = (rule, value, callback) => {
  254. if (value === '') {
  255. callback(new Error('请填写申诉说明'))
  256. this.descriptionChecked = false
  257. this.descriptionTip = false
  258. } else {
  259. if (this.passwordRest.description !== '') {
  260. if (value.length >= 100) {
  261. callback(new Error('输入长度过长,100个字符以内'))
  262. this.descriptionChecked = false
  263. this.descriptionTip = false
  264. } else {
  265. this.descriptionChecked = true
  266. this.descriptionTip = false
  267. }
  268. }
  269. callback()
  270. }
  271. }
  272. var validateContactName = (rule, value, callback) => {
  273. if (value === '') {
  274. callback(new Error('请填写您的姓名'))
  275. this.contactNameChecked = false
  276. } else {
  277. if (this.passwordRest.contactName !== '') {
  278. if (value.length >= 20) {
  279. callback(new Error('输入长度过长,20个字符以内'))
  280. this.contactNameChecked = false
  281. } else {
  282. this.contactNameChecked = true
  283. }
  284. }
  285. callback()
  286. }
  287. }
  288. var validateContactTel = (rule, value, callback) => {
  289. if (value === '') {
  290. callback(new Error('请填写正确的联系电话'))
  291. this.contactTelChecked = false
  292. } else {
  293. if (this.passwordRest.contactTel !== '') {
  294. var reg = /^1[0-9]{10}$/
  295. if (!reg.test(value)) {
  296. callback(new Error('请填写正确的联系电话'))
  297. this.contactTelChecked = false
  298. } else {
  299. this.contactTelChecked = true
  300. }
  301. }
  302. callback()
  303. }
  304. }
  305. var validateContactEmail = (rule, value, callback) => {
  306. if (value === '') {
  307. callback(new Error('请填写正确的电子邮箱'))
  308. this.contactEmailChecked = false
  309. } else {
  310. if (this.passwordRest.contactEmail !== '') {
  311. var reg = /^([\w-])+(\.\w+)*@([\w-])+((\.\w{2,3}){1,3})$/
  312. if (!reg.test(value)) {
  313. callback(new Error('请输入正确的邮箱地址格式'))
  314. this.contactEmailChecked = false
  315. } else {
  316. this.contactEmailChecked = true
  317. }
  318. }
  319. callback()
  320. }
  321. }
  322. return {
  323. isShowLoading: false,
  324. showPasswordError: false,
  325. codeErrorMsg: '',
  326. goNextStep: true,
  327. passwordRest: {
  328. mobile: '',
  329. code: '',
  330. password: '',
  331. conform: '',
  332. description: '',
  333. contactName: '',
  334. contactTel: '',
  335. contactEmail: ''
  336. },
  337. checked: true,
  338. sendAccountCode: true,
  339. account_time: 0,
  340. getCodeBtnIsDisabled: true,
  341. codeErrorChecked: false,
  342. descriptionTip: true,
  343. showMsgTip1: false,
  344. showMsgTip2: false,
  345. showMsgTip3: false,
  346. showMsgTip4: false,
  347. mobileChecked: false,
  348. codeChecked: false,
  349. passwordChecked: false,
  350. confirmChecked: false,
  351. descriptionChecked: false,
  352. contactNameChecked: false,
  353. contactTelChecked: false,
  354. contactEmailChecked: false,
  355. mobileIsExit: false,
  356. rules: {
  357. mobile: [
  358. {validator: validateMobile, trigger: 'blur'}
  359. ],
  360. code: [
  361. {validator: validateCode, trigger: 'blur'}
  362. ],
  363. password: [
  364. {validator: validatePassword, trigger: 'change'},
  365. {validator: validatePasswordTip, trigger: 'blur'}
  366. ],
  367. confirm: [
  368. {validator: validateConfirm, trigger: 'blur'}
  369. ],
  370. description: [
  371. {validator: validateDescription, trigger: 'blur'}
  372. ],
  373. contactName: [
  374. {validator: validateContactName, trigger: 'blur'}
  375. ],
  376. contactTel: [
  377. {validator: validateContactTel, trigger: 'blur'}
  378. ],
  379. contactEmail: [
  380. {validator: validateContactEmail, trigger: 'blur'}
  381. ]
  382. }
  383. }
  384. },
  385. methods: {
  386. // 判断我同意是否被选中
  387. checkboxChecked () {
  388. this.checked = !this.checked
  389. },
  390. // 获取校验码
  391. getCheckCode () {
  392. this.isShowLoading = true
  393. this.$http.get(`/appeal/check/mobile`, {params: {mobile: this.passwordRest.mobile}})
  394. .then(response => {
  395. this.isShowLoading = false
  396. if (response.data.success) {
  397. this.token = response.data.content.token
  398. if (this.token !== '') {
  399. this.$message({
  400. message: '验证码已经发送到您的手机,请注意查收',
  401. type: 'success'
  402. })
  403. this.sendAccountCode = false
  404. this.account_time = 60
  405. var accountTime = setInterval(() => {
  406. this.account_time--
  407. if (this.account_time <= 0) {
  408. this.sendAccountCode = true
  409. clearInterval(accountTime)
  410. }
  411. }, 1000)
  412. }
  413. } else {
  414. return Promise.reject(response.data)
  415. }
  416. }).catch(err => {
  417. this.isShowLoading = false
  418. this.$message.error(err.errMsg)
  419. })
  420. },
  421. // 提交表单
  422. submit () {
  423. if (this.mobileChecked && this.codeChecked && this.passwordChecked && this.confirmChecked && this.descriptionChecked && this.contactNameChecked && this.contactTelChecked && this.contactEmailChecked && this.checked) {
  424. this.isShowLoading = true
  425. let param = new FormData()
  426. param.append('mobile', this.passwordRest.mobile)
  427. param.append('code', this.passwordRest.code)
  428. param.append('password', this.passwordRest.password)
  429. param.append('description', this.passwordRest.description)
  430. param.append('contactName', this.passwordRest.contactName)
  431. param.append('contactTel', this.passwordRest.contactTel)
  432. param.append('contactEmail', this.passwordRest.contactEmail)
  433. param.append('token', this.token)
  434. param.append('appId', this.$store.state.option.appId)
  435. let config = {
  436. headers: {'Content-Type': 'multipart/form-data'}
  437. }
  438. this.$http.post('/appeal/resetPwd', param, config)
  439. .then(response => {
  440. this.isShowLoading = false
  441. if (response.data.success) {
  442. this.goNextStep = false
  443. // 待跳转到设置页面
  444. // window.loaction.href = ''
  445. } else {
  446. this.goNextStep = true
  447. return Promise.reject(response.data)
  448. }
  449. }).catch(err => {
  450. this.$message.error(err.errMsg)
  451. this.isShowLoading = false
  452. // this.codeErrorChecked = true
  453. // this.codeChecked = false
  454. this.account_time = 0
  455. })
  456. }
  457. },
  458. // 跳转至个人中心页面
  459. goCloudCenter () {
  460. window.location.href = '/cloudcenter'
  461. }
  462. }
  463. }
  464. </script>
  465. <style lang="scss" scoped>
  466. .certification {
  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. text-align: center;
  480. background: #fff;
  481. .content-top{
  482. height: 80px;
  483. line-height: 80px;
  484. h3{
  485. margin-bottom: 0;
  486. font-size: 24px;
  487. color: #000;
  488. border-bottom: 1px solid #dcdcdc;
  489. }
  490. .step{
  491. position: relative;
  492. margin-top: 10px;
  493. img{
  494. width: 315px;
  495. height: 46px;
  496. }
  497. .step-item{
  498. position: absolute;
  499. top: 45px;
  500. left: 265px;
  501. span{
  502. margin-right: 85px;
  503. font-size: 14px;
  504. color: #b4b4b4;
  505. }
  506. span.active {
  507. color: #0076ad;
  508. }
  509. }
  510. }
  511. }
  512. form {
  513. padding-bottom: 44px;
  514. margin-top: 36px;
  515. input{
  516. padding: 0 0 0 18px;
  517. width: 360px;
  518. height: 44px;
  519. line-height: 44px;
  520. font-size: 14px;
  521. color: #000;
  522. border-radius: 0;
  523. }
  524. .pwd {
  525. margin: 6px 0 -15px 0;
  526. text-align: left;
  527. font-size: 13px;
  528. em{
  529. display: inline-block;
  530. margin: 0 8px 2px 0;
  531. width: 24px;
  532. height: 6px;
  533. &:first-child{
  534. margin-left: 10px;
  535. }
  536. }
  537. span{
  538. margin-left: 10px;
  539. font-size: 13px;
  540. }
  541. }
  542. .pwd.sm{
  543. color: #8c8c8c;
  544. em {
  545. background: #bfbfbf;
  546. &:first-child{
  547. background: #ff4e00;
  548. }
  549. }
  550. span{
  551. color: #ff4e00;
  552. }
  553. }
  554. .pwd.md{
  555. color: #8c8c8c;
  556. em {
  557. background: #22ac38;
  558. &:nth-child(3){
  559. background: #bfbfbf;
  560. }
  561. }
  562. span{
  563. color: #22ac38;
  564. }
  565. }
  566. .pwd.lar{
  567. color: #8c8c8c;
  568. em {
  569. background: #00a0e9;
  570. }
  571. span{
  572. color: #00a0e9;
  573. }
  574. }
  575. .pwd.low{
  576. color: #8c8c8c;
  577. em{
  578. background: #bfbfbf;
  579. }
  580. }
  581. span.tip{
  582. position: absolute;
  583. top: 0;
  584. right: -238px;
  585. font-size: 13px;
  586. color: #8c8c8c;
  587. a{
  588. font-size: 13px;
  589. color: #0076ad;
  590. }
  591. }
  592. span.tip.tip-mobile{
  593. top: 3px;
  594. right: -105px;
  595. color: #ff4949;
  596. font-size: 12px;
  597. }
  598. span.tip.description {
  599. top: 10px;
  600. right: -266px;
  601. width: 245px;
  602. line-height: 18px;
  603. text-align: left;
  604. }
  605. span.tip.codeError-tip {
  606. position: absolute;
  607. top: 3px;
  608. left: 378px;
  609. width: 200px;
  610. text-align: left;
  611. color: #ff4949;
  612. font-size: 12px;
  613. }
  614. span.tip.passwordError{
  615. position: absolute;
  616. top: 3px;
  617. left: 380px;
  618. width: 200px;
  619. text-align: left;
  620. color: #ff4949;
  621. font-size: 12px;
  622. }
  623. i{
  624. position: absolute;
  625. top: 13px;
  626. left: 20px;
  627. font-size: 20px;
  628. color: #a0a0a0;
  629. }
  630. input[type='checkbox']{
  631. margin: 0 14px 0 55px;
  632. float: left;
  633. width: 16px;
  634. height: 16px;
  635. }
  636. span.agree{
  637. float: left;
  638. margin: 1px 0 0 10px;
  639. font-size: 14px;
  640. color: #8b8b8b;
  641. a{
  642. color: #0076ad;
  643. }
  644. }
  645. .form-group.agree{
  646. margin: 20px auto 0 !important;
  647. }
  648. .btn {
  649. margin: 34px 0 16px 0;
  650. width: 360px;
  651. height: 44px;
  652. line-height: 44px;
  653. font-size: 16px;
  654. color: #fff;
  655. background: #0076AD;
  656. border-radius: 3px;
  657. }
  658. }
  659. .content-bottom{
  660. margin-top: 35px;
  661. padding-bottom: 50px;
  662. p{
  663. font-size: 24px;
  664. color: #323232;
  665. img{
  666. margin-right: 20px;
  667. width: 30px;
  668. height: 28px;
  669. }
  670. }
  671. p.pass{
  672. font-size: 24px;
  673. color: #e77405;
  674. img{
  675. height: 30px;
  676. }
  677. }
  678. p.passed {
  679. color: #2ab300;
  680. img{
  681. height: 30px;
  682. }
  683. }
  684. span{
  685. display: inline-block;
  686. margin: 15px 0 140px 0;
  687. font-size: 14px;
  688. color: #8b8b8b;
  689. }
  690. .close-btn{
  691. margin: 0 auto;
  692. width: 200px;
  693. height: 36px;
  694. line-height: 36px;
  695. font-size: 14px;
  696. text-align: center;
  697. color: #323232;
  698. border: 1px solid #d2d2d2;
  699. border-radius: 3px;
  700. cursor: pointer ;
  701. }
  702. }
  703. }
  704. }
  705. }
  706. </style>