纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

3 years ago
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. $("#F_Account").val($.request('account'));
  9. $("#F_RealName").val($.request('realName'));
  10. });
  11. function submitForm() {
  12. debugger;
  13. if (!$('#form1').formValid()) {
  14. return false;
  15. }
  16. var postData = $("#form1").formSerialize();
  17. postData["userPassword"] = $("#F_UserPassword").val();
  18. postData["keyValue"] = keyValue;
  19. $.submitForm({
  20. url: "/SystemManage/User/SubmitRevisePassword2",
  21. param: postData,
  22. success: function () {
  23. $.loading(false)
  24. }
  25. })
  26. }
  27. </script>
  28. <form id="form1">
  29. <div style="padding-top: 30px; margin-right: 40px;">
  30. <table class="form">
  31. <tr>
  32. <th class="formTitle">账户</th>
  33. <td class="formValue">
  34. <input id="F_Account" name="F_Account" readonly type="text" class="form-control" />
  35. </td>
  36. </tr>
  37. <tr>
  38. <th class="formTitle">姓名</th>
  39. <td class="formValue">
  40. <input id="F_RealName" name="F_RealName" readonly type="text" class="form-control" />
  41. </td>
  42. </tr>
  43. <tr>
  44. <th class="formTitle">密码</th>
  45. <td class="formValue">
  46. <input id="F_UserPassword" name="F_UserPassword" type="password" class="form-control required" placeholder="请输入新密码" />
  47. </td>
  48. </tr>
  49. </table>
  50. </div>
  51. </form>