Authored by 郭成尧

back-email-success-hbs

@@ -20,6 +20,17 @@ class BackNew { @@ -20,6 +20,17 @@ class BackNew {
20 page: 'back-email-new' 20 page: 'back-email-new'
21 }); 21 });
22 } 22 }
  23 +
  24 + /**
  25 + * 通过邮箱找回密码成功页
  26 + */
  27 + backByEmailSuccess(req, res) {
  28 + res.render('back/email-success-new', {
  29 + width750: true,
  30 + module: 'passport',
  31 + page: 'back-email-success-new'
  32 + });
  33 + }
23 } 34 }
24 35
25 module.exports = BackNew; 36 module.exports = BackNew;
@@ -184,5 +184,6 @@ router.get('/passport/reg-new', regNew.regPage); @@ -184,5 +184,6 @@ router.get('/passport/reg-new', regNew.regPage);
184 router.get('/passport/sms-login-new', smsNew.smsLoginPage); 184 router.get('/passport/sms-login-new', smsNew.smsLoginPage);
185 router.get('/passport/back/mobile-new', backNew.backByMobile); 185 router.get('/passport/back/mobile-new', backNew.backByMobile);
186 router.get('/passport/back/email-new', backNew.backByEmail); 186 router.get('/passport/back/email-new', backNew.backByEmail);
  187 +router.get('/passport/back/email-success-new', backNew.backByEmailSuccess);
187 188
188 module.exports = router; 189 module.exports = router;
  1 +<div class="back-email-success-new-page">
  2 + <div class="top-operation-bar">
  3 + <button class="back iconfont">&#xe72e;</button>
  4 + <span class="page-title">邮箱找回密码</span>
  5 + <button class="close iconfont">&#xe72d;</button>
  6 + </div>
  7 + <div class="success-info">
  8 + <div class="iconfont">&#xe72b;</div>
  9 + <p class="info">验证邮件已发送至您的邮箱</p>
  10 + <p class="info">请在24小时内通过邮件内的链接设置新密码</p>
  11 + </div>
  12 + <div class="form-group back-email-success-btn">
  13 + <button id="backEmailSuccessBtn">完 成</button>
  14 + </div>
  15 + <div class="form-group resend-email-btn">
  16 + <button id="resendEmailBtn">重新发送邮件</button>
  17 + </div>
  18 +</div>
  1 +require('passport/back-email-success-new.page.css');
  1 +@define-extend padding-75 {
  2 + padding-left: 75px;
  3 + padding-right: 75px;
  4 +}
  5 +
  6 +$top-bar-font-color: #444;
  7 +
  8 +.back-email-success-new-page {
  9 + @extend padding-75;
  10 +
  11 + .top-operation-bar {
  12 + width: 600px;
  13 + height: 50px;
  14 + margin-top: 50px;
  15 + color: $top-bar-font-color;
  16 +
  17 + > button {
  18 + height: 50px;
  19 + width: 50px;
  20 + background-color: transparent;
  21 + font-size: 45px;
  22 + overflow: hidden;
  23 + padding: 0;
  24 + text-align: center;
  25 +
  26 + &.back {
  27 + float: left;
  28 + }
  29 +
  30 + &.close {
  31 + float: right;
  32 + }
  33 + }
  34 +
  35 + > .page-title {
  36 + width: 500px;
  37 + font-size: 34px;
  38 + text-align: center;
  39 + display: inline-block;
  40 + margin-top: 7px;
  41 + }
  42 + }
  43 +
  44 + .success-info {
  45 + text-align: center;
  46 + margin-top: 105px;
  47 + margin-bottom: 70px;
  48 +
  49 + .iconfont {
  50 + font-size: 160px;
  51 + margin-bottom: 68px;
  52 + color: #aeaeae;
  53 + }
  54 +
  55 + .info {
  56 + text-align: center;
  57 + margin-bottom: 30px;
  58 + color: #444;
  59 + }
  60 + }
  61 +
  62 + .form-group {
  63 + width: 100%;
  64 + }
  65 +
  66 + .back-email-success-btn {
  67 + margin-top: 100px;
  68 +
  69 + button {
  70 + width: 600px;
  71 + height: 70px;
  72 + border-radius: 4px;
  73 + background-color: #444;
  74 + font-size: 32px;
  75 + color: #fff;
  76 + }
  77 + }
  78 +
  79 + .resend-email-btn {
  80 + margin-top: 60px;
  81 + text-align: center;
  82 +
  83 + button {
  84 + background-color: #fff;
  85 + color: #444;
  86 + border-radius: 30px;
  87 + padding: 10px 30px;
  88 + border: 1px solid #444;
  89 + }
  90 + }
  91 +}