updateUserTel.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <style>
  2. .userTel .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. .userTel .modal-body .row >label {
  26. padding: 0;
  27. }
  28. .userTel .modal-body .row .col-md-8 {
  29. padding-left: 0;
  30. }
  31. .userTel .modal-body .row .col-md-8 input {
  32. border-radius: 0;
  33. }
  34. .userTel .modal-body .row.validate-code .col-md-8 .input-sm {
  35. width: 162px;
  36. display: inline-block;
  37. }
  38. .userTel .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. float: right;
  54. margin-top: 3px;
  55. }
  56. .userTel .modal-body .row.validate-code .col-md-8 .code-btn[disabled] {
  57. cursor: not-allowed;
  58. background: rgb( 227, 227, 227 );
  59. color: #666;
  60. }
  61. .modal-footer >button {
  62. width: 90px;
  63. height: 28px;
  64. border: 1px solid #5078cb;
  65. line-height: 28px;
  66. text-align: center;
  67. }
  68. .modal-footer >button[disabled] {
  69. cursor: not-allowed;
  70. }
  71. .modal-footer >button:first-child {
  72. background: #fff;
  73. color: #5078cb;
  74. margin-right: 10px;
  75. }
  76. .modal-footer {
  77. text-align: center;
  78. border: none;
  79. padding: 0 0 25px 0;
  80. }
  81. .modal-footer >button:last-child {
  82. background: #5078cb;
  83. color: #fff;
  84. }
  85. .userTel .warn-style {
  86. color: #cc0000;
  87. font-size: 14px;
  88. margin-left: 85px;
  89. margin-bottom: 10px;
  90. }
  91. </style>
  92. <div class="modal-header">
  93. <img src="static/img/user/images/phonecheck.png" alt="">
  94. <p>手机验证</p>
  95. <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
  96. </div>
  97. <form class="userTel" name="sampleSendForm" ng-submit="ok()">
  98. <input type="hidden" ng-model="pageToken"/>
  99. <div class="modal-body">
  100. <div class="row line" ng-class="{'has-success': checkSuccess, 'has-error': checkFailed}">
  101. <label class="col-md-3 col-sm-3 col text-right">原手机号:</label>
  102. <div class="col-md-8 col-sm-8 col"><input ng-model="user.userTel" class="form-control input-sm"
  103. type="userTel" ng-blur="checkUserTel(user.userTel)"
  104. ></div>
  105. <div class="col">
  106. <img ng-show="checkSuccess" src="static/img/user/images/input-check-yes.png" alt="">
  107. <!--<i ng-show="checkSuccess" class="fa fa-check" style="color:#339933"></i>-->
  108. <i ng-show="checkFailed" class="fa fa-close" style="color:#CC3333;"></i>
  109. </div>
  110. </div>
  111. <div class="row" ng-class="{'has-success': checkSuccess1, 'has-error': checkFailed1}">
  112. <label class="col-md-3 col-sm-3 col text-right">新手机号:</label>
  113. <div class="col-md-8 col-sm-8 col">
  114. <input ng-model="user.newUserTel"
  115. class="form-control input-sm" type="newUserTel" ng-blur="telEnable(user.newUserTel)">
  116. <!-- <div>密码复杂度</div> -->
  117. </div>
  118. <div class="col">
  119. <img ng-show="checkSuccess1" src="static/img/user/images/input-check-yes.png" alt="">
  120. <!--<i ng-show="checkSuccess1" class="fa fa-check" style="color:#339933"></i>-->
  121. <!--<i ng-show="checkFailed1" class="fa fa-close" style="color:#CC3333;"></i>-->
  122. </div>
  123. </div>
  124. <div class="warn-style" ng-show="checkFailed1">请输入正确的手机号</div>
  125. <div class="warn-style" ng-show="checkFailed1_1">该手机号已存在</div>
  126. <div class="row validate-code">
  127. <label class="col-md-3 col-sm-3 col text-right">验证码:</label>
  128. <span class="col-md-8 col-sm-8 col">
  129. <input ng-model="telCheckCode"
  130. class="form-control input-sm" placeholder="请输入验证码" type="telCheckCode" ng-blur="validTelCheckCode(telCheckCode)">
  131. <input class="code-btn" ng-click="sendTelCheckCode(user.newUserTel)" ng-init="paracont='获取验证码'" ng-disabled="!sendSuccess" ng-model="paracont" />
  132. </span>
  133. <div class="col">
  134. <img ng-show="checkSuccess2" src="static/img/user/images/input-check-yes.png" alt="">
  135. <!--<i ng-show="checkSuccess1" class="fa fa-check" style="color:#339933"></i>-->
  136. <!--<i ng-show="checkFailed1" class="fa fa-close" style="color:#CC3333;"></i>-->
  137. </div>
  138. </div>
  139. <div class="warn-style" ng-show="checkFailed2">验证码错误</div>
  140. </div>
  141. <div class="modal-footer">
  142. <button ng-click="cancel()" type="button">取消</button>
  143. <button type="submit">确定</button>
  144. </div>
  145. </form>