find-password.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {template 'common/header-base'}
  2. <div class="user-login system-forget">
  3. <div class="login-logo">
  4. <div class="container">
  5. <a href="{$_W['siteroot']}">
  6. <img src="{if !empty($_W['setting']['copyright']['blogo'])}{php echo tomedia($_W['setting']['copyright']['blogo'])}{else}./resource/images/logo/logo.png{/if}" class="logo">
  7. </a>
  8. </div>
  9. </div>
  10. <div class="login-header">
  11. <div class="container">
  12. <h3>找回密码</h3>
  13. </div>
  14. </div>
  15. <div class="login-content">
  16. <div class="we7-form" id="js-users-find-password" ng-controller="UsersFindMobilePwd" ng-cloak>
  17. <div class="steps">
  18. <div class="steps-item steps-status-finish">
  19. <div class="steps-line"><span>1.验证手机号</span></div>
  20. </div>
  21. <div class="steps-item steps-status-wait step-set-pwd">
  22. <div class="steps-line"><span>2.设置新密码</span></div>
  23. </div>
  24. <div class="steps-item steps-status-wait step-pwd-success">
  25. <div class="steps-line"><span>3.完成</span></div>
  26. </div>
  27. </div>
  28. <!--step: 1-->
  29. <form action="javascript:;" class="form login-form step-1">
  30. <div class="form-group" >
  31. <label class="control-label col-sm-1">手机号:</label>
  32. <div class="col-sm-11">
  33. <input type="text" class="form-control" placeholder="请输入手机号 " ng-model="mobile">
  34. </div>
  35. </div>
  36. <div class="form-group ">
  37. <label class="control-label col-sm-1">短信验证码:</label>
  38. <div class="col-sm-11">
  39. <div class="input-group">
  40. <input type="text" class="form-control" placeholder="请输入短信验证码" ng-model="code">
  41. <a href="javascript:;" class="input-group-btn">
  42. <!--<button class="btn btn-primary">发送验证码</button>-->
  43. <input type="button" class="btn btn-primary send-code" ng-disabled="isDisable" ng-click="sendMessage()" value="{{text}}">
  44. <span class="js-timer"></span>
  45. </a>
  46. </div>
  47. </div>
  48. </div>
  49. <!-- <div>请输入您绑定的密保手机号</div>
  50. <div class="form-inline">
  51. <input type="text" class="form-control" ng-model="mobile">
  52. <input type="button" class="btn btn-primary send-code" ng-disabled="isDisable" ng-click="sendMessage()" value="{{text}}">
  53. <span class="js-timer"></span>
  54. </div>
  55. <div>输入手机短信验证码</div>
  56. <div class="form-inline"><input type="text" ng-model="code" class="form-control"></div> -->
  57. <div>
  58. <span class="btn btn-primary" ng-disabled="!isDisable" ng-click="nextStep()">下一步</span>
  59. </div>
  60. </form>
  61. <!--step: 2-->
  62. <form action="javascript:;" class="form login-form step-2 hide">
  63. <div class="form-group ">
  64. <label class="control-label col-sm-1">请设置密码:</label>
  65. <div class="col-sm-11">
  66. <div class="form-controls">
  67. <input type="password" class="form-control" ng-model="password">
  68. <span class="text-error password"></span>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="form-group ">
  73. <label class="control-label col-sm-1">再次输入密码:</label>
  74. <div class="col-sm-11">
  75. <div class="form-controls">
  76. <input type="password" class="form-control" ng-model="repassword">
  77. <span class="text-error repassword"></span>
  78. </div>
  79. </div>
  80. </div>
  81. <!-- <div>请设置新密码</div>
  82. <div class="form-inline">
  83. <input type="password" class="form-control" ng-model = "password">
  84. <span class="text-error password"></span>
  85. </div>
  86. <div>再次输入新密码</div>
  87. <div class="form-inline">
  88. <input type="password" class="form-control" ng-model = "repassword">
  89. <span class="text-error repassword"></span>
  90. </div> -->
  91. <div>
  92. <span class="btn btn-primary" ng-click="prevStep()">上一步</span>
  93. <input type="submit" value="确定" ng-click="changePassword()" class="btn btn-primary">
  94. </div>
  95. </form>
  96. <!--step: 3-->
  97. <div class="step-3 text-center hide">
  98. <div><span class="wi wi-right-sign"></span></div>
  99. <div class="status">密码修改成功</div>
  100. <div>
  101. <a class="btn btn-primary" href="{url 'user/login'}">去登录</a>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <script type="text/javascript">
  108. angular.module('userManageApp').value('config', {
  109. 'find_password_sign' : "{php echo !empty($find_password_sign) ? $find_password_sign : 'null'}",
  110. 'links' : {
  111. 'valid_mobile_link': "{php echo url('user/find-password/valid_mobile')}",
  112. 'set_password_link': "{php echo url('user/find-password/set_password')}",
  113. 'send_code_link': "{php echo url('utility/verifycode/send_code')}",
  114. },
  115. });
  116. angular.bootstrap($('#js-users-find-password'), ['userManageApp']);
  117. </script>
  118. {template 'common/footer-base'}