PingAnYeXianSZCG_Web 前端代码

Workreward.html 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  8. <script src="../css/laydate/laydate.js"></script>
  9. <link href="../css/init.css" rel="stylesheet" />
  10. <title>红包奖励</title>
  11. <style>
  12. .content-box {
  13. padding-top: 20px;
  14. padding: 10px;
  15. text-align: center;
  16. }
  17. .content-box div {
  18. margin-bottom: 10px;
  19. margin-top: 20px;
  20. }
  21. .content-box input {
  22. height: 34px;
  23. width: 170px;
  24. border: 1px solid #ebebeb;
  25. padding: 6px 12px;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <div class="content-box">
  31. <div>
  32. <label for="">奖励时间:</label>
  33. <input type="text" class='phone laydate-icon' id="STime" />
  34. </div>
  35. <div>
  36. <label for="">奖励金额:</label>
  37. <input type="text" id="amount" />
  38. </div>
  39. <div>
  40. <button class="btns">提交</button>
  41. </div>
  42. </div>
  43. <script>
  44. $(document).ready(function() {
  45. laydate.skin('molv');
  46. //留言时间
  47. laydate({
  48. elem: '#STime',
  49. event: 'focus',
  50. festival: true, //显示节日
  51. });
  52. })
  53. //提交
  54. var ID;
  55. if(ID) {
  56. $(".btns").click(function() {
  57. $.ajax({
  58. type: "post",
  59. url: huayi.config.callcenter_url + "/Login/login",
  60. dataType: 'json',
  61. async: true,
  62. data: {
  63. woid: ID, //工单ID
  64. amount: $("#amount").val(), //奖励金额
  65. retime: $('#STime').val() //奖励时间
  66. },
  67. success: function(data) {
  68. /*验证请求*/
  69. if(data.state == "success") {
  70. }
  71. }
  72. });
  73. })
  74. }
  75. </script>
  76. </body>
  77. </html>