updateUserEmail.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <style>
  2. .userEmail .modal-body .row {
  3. line-height: 34px;
  4. font-size: 14px;
  5. color: #666
  6. }
  7. .modal-content {
  8. width: 409px;
  9. }
  10. .modal-header {
  11. background: #5078cb;
  12. text-align: center;
  13. }
  14. .modal-header p {
  15. color: #fff;
  16. }
  17. .modal-header i {
  18. font-size: 12px;
  19. position: absolute;
  20. right: 7px;
  21. top: 7px;
  22. color: #fff;
  23. cursor: pointer;
  24. }
  25. .userEmail .modal-body .row >label {
  26. padding: 0;
  27. }
  28. .userEmail .modal-body .row .col-md-8 {
  29. padding-left: 0;
  30. }
  31. .userEmail .modal-body .row .col-md-8 input {
  32. border-radius: 0;
  33. }
  34. .userEmail .modal-body .row.validate-code .col-md-8 .input-sm {
  35. width: 162px;
  36. display: inline-block;
  37. }
  38. .userEmail .modal-body .row.validate-code .col-md-8 .code-btn {
  39. width: 94px;
  40. height: 30px;
  41. text-align: center;
  42. line-height: 30px;
  43. vertical-align: middle;
  44. display: inline-block;
  45. margin-left: -4px;
  46. border-left: none;
  47. border-right: 1px solid rgb( 204, 204, 204 );
  48. border-bottom: 1px solid rgb( 204, 204, 204 );
  49. border-top: 1px solid rgb( 204, 204, 204 );
  50. background: #5078cb;
  51. color: #fff;
  52. cursor: pointer;
  53. }
  54. .userEmail .modal-body .row.validate-code .col-md-8 .code-btn[disabled] {
  55. cursor: not-allowed;
  56. background: rgb( 227, 227, 227 );
  57. color: #666;
  58. }
  59. .modal-footer >button {
  60. width: 90px;
  61. height: 28px;
  62. border: 1px solid #5078cb;
  63. line-height: 28px;
  64. text-align: center;
  65. }
  66. .modal-footer >button[disabled] {
  67. cursor: not-allowed;
  68. }
  69. .modal-footer >button:first-child {
  70. background: #fff;
  71. color: #5078cb;
  72. margin-right: 10px;
  73. }
  74. .modal-footer {
  75. text-align: center;
  76. border: none;
  77. padding: 0 0 25px 0;
  78. }
  79. .modal-footer >button:last-child {
  80. background: #5078cb;
  81. color: #fff;
  82. }
  83. .userEmail .warn-style {
  84. color: #cc0000;
  85. font-size: 14px;
  86. margin-left: 85px;
  87. margin-bottom: 10px;
  88. }
  89. </style>
  90. <div class="modal-header">
  91. <img src="static/img/user/images/valid-email.png" alt="">
  92. <p>邮箱验证</p>
  93. <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
  94. </div>
  95. <form class="userEmail" name="sampleSendForm" ng-submit="ok()">
  96. <input type="hidden" ng-model="pageToken"/>
  97. <div class="modal-body">
  98. <div class="row line" ng-hide="userInfo.userEmail==null?true:false" ng-class="{'has-success': checkSuccess, 'has-error': checkFailed}">
  99. <label class="col-md-3 col-sm-3 col text-right">原邮箱地址:</label>
  100. <div class="col-md-8 col-sm-8 col"><input ng-model="user.userEmail" class="form-control input-sm"
  101. type="userEmail" ng-blur="checkUserEmail(user.userEmail)" required
  102. placeholder="当前邮箱地址"></div>
  103. <div class="col">
  104. <img ng-show="checkSuccess" src="static/img/user/images/input-check-yes.png" alt="">
  105. <!--<i ng-show="checkSuccess" class="fa fa-check" style="color:#339933"></i>-->
  106. <i ng-show="checkFailed" class="fa fa-close" style="color:#CC3333;"></i>
  107. </div>
  108. </div>
  109. <div class="row">
  110. <label class="col-md-3 col-sm-3 col text-right" ng-hide="userInfo.userEmail==null?true:false">新邮箱地址:</label>
  111. <label class="col-md-3 col-sm-3 col text-right" ng-show="userInfo.userEmail==null?true:false">邮箱地址:</label>
  112. <div class="col-md-8 col-sm-8 col">
  113. <input ng-model="user.newUserEmail"
  114. class="form-control input-sm" type="newUserEmail" required ng-blur="emailEnable(user.newUserEmail)" placeholder="新邮箱地址">
  115. <!-- <div>密码复杂度</div> -->
  116. </div>
  117. <div class="col">
  118. <img ng-show="checkSuccess1" src="static/img/user/images/input-check-yes.png" alt="">
  119. <!--<i ng-show="checkSuccess1" class="fa fa-check" style="color:#339933"></i>-->
  120. <!--<i ng-show="checkFailed1" class="fa fa-close" style="color:#cc3333;"></i>-->
  121. </div>
  122. </div>
  123. <div class="warn-style" ng-show="checkFailed1">请输入正确的邮箱</div>
  124. <div class="row validate-code">
  125. <label class="col-md-3 col-sm-3 col text-right">验证码:</label>
  126. <div class="col-md-8 col-sm-8 col">
  127. <input ng-model="checkCode"
  128. class="form-control input-sm" ng-disabled="!codeSuccess" type="checkCode" ng-blur="validCheckCode(checkCode)" required>
  129. <input ng-click="sendCheckCode(user.newUserEmail)" ng-disabled="!sendSuccess" ng-init="paracont='获取验证码'" class="code-btn" ng-model="paracont"/>
  130. </div>
  131. </div>
  132. <div class="warn-style" ng-show="codeFailed">验证码错误</div>
  133. </div>
  134. <div class="modal-footer">
  135. <button ng-click="cancel()" type="button">取消</button>
  136. <button ng-disabled="!validSuccess || !checkSuccess || !checkSuccess1" type="submit">确定</button>
  137. </div>
  138. </form>