updateUserQuestion.html 6.0 KB

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