updateUserQuestion.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <style>
  2. .userQuestion .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. .userQuestion .modal-body .row >label {
  26. padding: 0;
  27. }
  28. .userQuestion .modal-body .row .col-md-8 {
  29. padding-left: 0;
  30. }
  31. .userQuestion .modal-body .row .col-md-8 input, .userQuestion .modal-body .row .col-md-8 select {
  32. border-radius: 0;
  33. }
  34. .userQuestion .modal-body .row .col-md-8 select {
  35. background: url(static/img/user/images/select-arrow.png) no-repeat;
  36. background-position: 97% 50%;
  37. }
  38. .modal-footer >button {
  39. width: 90px;
  40. height: 28px;
  41. border: 1px solid #5078cb;
  42. line-height: 28px;
  43. text-align: center;
  44. }
  45. .modal-footer >button[disabled] {
  46. cursor: not-allowed;
  47. }
  48. .modal-footer >button:first-child {
  49. background: #fff;
  50. color: #5078cb;
  51. margin-right: 10px;
  52. }
  53. .modal-footer {
  54. text-align: center;
  55. border: none;
  56. padding-top: 0;
  57. padding-bottom: 25px;
  58. }
  59. .modal-footer >button:last-child {
  60. background: #5078cb;
  61. color: #fff;
  62. }
  63. .userQuestion .warn-style {
  64. color: #cc0000;
  65. font-size: 14px;
  66. margin-left: 85px;
  67. margin-bottom: 10px;
  68. }
  69. </style>
  70. <div class="modal-header">
  71. <img src="static/img/user/images/pass-question.png" alt="">
  72. <p>密保问题</p>
  73. <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
  74. </div>
  75. <form class="userQuestion" name="sampleSendForm" ng-submit="ok()">
  76. <div class="modal-body">
  77. <div class="row line">
  78. <input type="hidden" name="sort" ng-model="uq[0].sort" ng-init="uq[0].sort=1"/>
  79. <label class="col-md-3 col-sm-3 col text-right">问题1:</label>
  80. <div class="col-md-8 col-sm-8 col">
  81. <input ng-model="uq[0].id" type="hidden"/>
  82. <!--
  83. <input ng-model="uq[0].question" class="form-control input-sm" name="uq[0].question" required>
  84. -->
  85. <select class="form-control" ng-blur="choose()" style="opacity: unset;" ng-model="uq[0].question">
  86. <option value="">请选择一个问题</option>
  87. <option value="{{info.question}}" ng-repeat="info in secQuestions" ng-if="info.type==1">{{info.question}}</option>
  88. </select>
  89. </div>
  90. <div class="col">
  91. <img ng-show="checkSuccess" src="static/img/user/images/input-check-yes.png" alt="">
  92. <!--<i ng-show="checkSuccess" class="fa fa-check" style="color:#339933"></i>-->
  93. <!--<i ng-show="checkFailed" class="fa fa-close" style="color:#CC3333;"></i>-->
  94. </div>
  95. </div>
  96. <div class="row">
  97. <label class="col-md-3 col-sm-3 col text-right">答案:</label>
  98. <div class="col-md-8 col-sm-8 col">
  99. <input ng-model="uq[0].answer" ng-blur="inputAnswer()" class="form-control input-sm" name="uq[0].answer" required>
  100. <!-- <div>密码复杂度</div> -->
  101. </div>
  102. <div class="col">
  103. <img ng-show="checkSuccess1" src="static/img/user/images/input-check-yes.png" alt="">
  104. <!--<i ng-show="checkSuccess1" class="fa fa-check" style="color:#339933"></i>-->
  105. <!--<i ng-show="checkFailed1" class="fa fa-close" style="color:#CC3333;"></i>-->
  106. </div>
  107. </div>
  108. <div class="warn-style" ng-show="checkFailed1">请输入您想要设置的答案</div>
  109. <div class="warn-style" ng-show="checkFailed1_1">请勿超过30个字符</div>
  110. <div class="row">
  111. <input type="hidden" name="sort" ng-model="uq[1].sort" ng-init="uq[1].sort=2"/>
  112. <label class="col-md-3 col-sm-3 col text-right">问题2:</label>
  113. <div class="col-md-8 col-sm-8 col">
  114. <input ng-model="uq[1].id" type="hidden"/>
  115. <!--
  116. <input ng-model="uq[1].question" class="form-control input-sm" name="uq[1].question" required>
  117. -->
  118. <select class="form-control" ng-blur="choose1()" style="opacity: unset;" ng-model="uq[1].question">
  119. <option value="">请选择一个问题</option>
  120. <option value="{{info.question}}" ng-repeat="info in secQuestions" ng-if="info.type==2">{{info.question}}</option>
  121. </select>
  122. </div>
  123. <div class="col">
  124. <img ng-show="checkSuccess2" src="static/img/user/images/input-check-yes.png" alt="">
  125. <!--<i ng-show="checkSuccess2" class="fa fa-check" style="color:#339933"></i>-->
  126. <!--<i ng-show="checkFailed2" class="fa fa-close" style="color:#CC3333;"></i>-->
  127. </div>
  128. </div>
  129. <div class="row">
  130. <label class="col-md-3 col-sm-3 col text-right">答案:</label>
  131. <div class="col-md-8 col-sm-8 col">
  132. <input ng-model="uq[1].answer" ng-blur="inputAnswer1()" class="form-control input-sm" name="uq[1].answer" required>
  133. <!-- <div>密码复杂度</div> -->
  134. </div>
  135. <div class="col">
  136. <img ng-show="checkSuccess3" src="static/img/user/images/input-check-yes.png" alt="">
  137. <!--<i ng-show="checkSuccess3" class="fa fa-check" style="color:#339933"></i>-->
  138. <!--<i ng-show="checkFailed3" class="fa fa-close" style="color:#CC3333;"></i>-->
  139. </div>
  140. </div>
  141. <div class="warn-style" ng-show="checkFailed3">请输入您想要设置的答案</div>
  142. <div class="warn-style" ng-show="checkFailed3_1">请勿超过30个字符</div>
  143. </div>
  144. <div class="modal-footer">
  145. <button ng-click="cancel()" type="button">取消</button>
  146. <button ng-disabled="!checkSuccess || !checkSuccess1 || !checkSuccess2 || !checkSuccess3" type="submit">确定</button>
  147. </div>
  148. </form>