Authored by 郭成尧

email-hbs-ok

1 class BackNew { 1 class BackNew {
  2 + /**
  3 + * 通过手机找回密码
  4 + */
2 backByMobile(req, res) { 5 backByMobile(req, res) {
3 res.render('back/mobile-new', { 6 res.render('back/mobile-new', {
4 width750: true, 7 width750: true,
@@ -6,6 +9,17 @@ class BackNew { @@ -6,6 +9,17 @@ class BackNew {
6 page: 'back-mobile-new' 9 page: 'back-mobile-new'
7 }); 10 });
8 } 11 }
  12 +
  13 + /**
  14 + * 通过邮箱找回密码
  15 + */
  16 + backByEmail(req, res) {
  17 + res.render('back/email-new', {
  18 + width750: true,
  19 + module: 'passport',
  20 + page: 'back-email-new'
  21 + });
  22 + }
9 } 23 }
10 24
11 module.exports = BackNew; 25 module.exports = BackNew;
@@ -183,5 +183,6 @@ router.get('/passport/international-new', loginNew.international); @@ -183,5 +183,6 @@ router.get('/passport/international-new', loginNew.international);
183 router.get('/passport/reg-new', regNew.regPage); 183 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 187
187 module.exports = router; 188 module.exports = router;
  1 +<div class="back-email-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="back-email-form">
  8 + <div class="form-group email">
  9 + <label for="email" class="iconfont">&#xe724;</label><input type="text" name="email" placeholder="请输入邮箱"><i class="iconfont clear">&#xe72a;</i>
  10 + </div>
  11 + <button id="backEmailResetBtn" class="back-email-reset-btn">确 认</button>
  12 + </div>
  13 +</div>
  1 +require('passport/back-email-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-new-page {
  9 + @extend padding-75;
  10 +
  11 + .iconfont {
  12 + color: #444;
  13 + }
  14 +
  15 + .top-operation-bar {
  16 + width: 600px;
  17 + height: 50px;
  18 + margin-top: 50px;
  19 + color: $top-bar-font-color;
  20 +
  21 + > button {
  22 + height: 50px;
  23 + width: 50px;
  24 + background-color: transparent;
  25 + font-size: 45px;
  26 + overflow: hidden;
  27 + padding: 0;
  28 + text-align: center;
  29 +
  30 + &.back {
  31 + float: left;
  32 + }
  33 +
  34 + &.close {
  35 + float: right;
  36 + }
  37 + }
  38 +
  39 + > .page-title {
  40 + width: 500px;
  41 + font-size: 34px;
  42 + text-align: center;
  43 + display: inline-block;
  44 + margin-top: 7px;
  45 + }
  46 + }
  47 +
  48 + .back-email-form {
  49 + margin-top: 100px;
  50 +
  51 + > .form-group {
  52 + border-bottom: 1px solid #e0e0e0;
  53 + height: 50px;
  54 + margin-bottom: 56px;
  55 +
  56 + > label {
  57 + font-size: 26px;
  58 + margin-right: 45px;
  59 + }
  60 +
  61 + > input {
  62 + width: 400px;
  63 + border: none;
  64 + box-shadow: none;
  65 + background-color: transparent;
  66 + }
  67 +
  68 + > i {
  69 + float: right;
  70 + }
  71 +
  72 + &.email > .clear {
  73 + color: #e0e0e0;
  74 + margin-right: 8px;
  75 + }
  76 + }
  77 +
  78 + .back-email-reset-btn {
  79 + width: 600px;
  80 + height: 70px;
  81 + border-radius: 4px;
  82 + background-color: #444;
  83 + margin-top: 100px;
  84 + font-size: 32px;
  85 + color: #fff;
  86 + }
  87 + }
  88 +}