terminated.jsp 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + path+"/";
  8. request.setAttribute("contextPath", basePath);
  9. %>
  10. <!DOCTYPE html>
  11. <html lang="en">
  12. <head>
  13. <meta charset="UTF-8">
  14. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  15. <meta name="apple-mobile-web-app-capable" content="yes">
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  17. <meta name="format-detection" content="telephone=no">
  18. <title>进度管理</title>
  19. <base href="${contextPath}">
  20. <script src="app/lib/flexible.js"></script>
  21. <script type="text/javascript" src="res/js/jquery.min.js"></script>
  22. <script type="text/javascript" src="res/js/layer/layer.min.js"></script>
  23. <script type="text/javascript" src="app/js/public.js"></script>
  24. <script type="text/javascript" src="res/js/layer/layer.min.js"></script>
  25. <link rel="stylesheet" href="app/lib/flexible.css">
  26. <link rel="stylesheet" href="app/css/basem.css">
  27. <link rel="stylesheet" href="app/css/logome.css">
  28. <link rel="stylesheet" href="app/css/public.css">
  29. <link rel="stylesheet" href="app/css/index.css">
  30. </head>
  31. <body>
  32. <form action="" id="orderinfo">
  33. <input type="hidden" name="orderId" value="${orderId}">
  34. <div class="titbox blubg">
  35. <a class="titreturn left" href="javascript:void(0)" onclick="javascript:history.go(-1)"><img src="app/img/fanhui16@2x.png" alt=""></a>
  36. <h1>申请终止</h1>
  37. </div>
  38. <div class="top50 terminnate">
  39. <textarea name="apply_reason" id="apply_reason" cols="30" rows="10" class="contents" placeholder="请填写订单终止原因"></textarea>
  40. <a href="javascript:void(0)" onclick="submit_form();" class="redbtn">提交</a>
  41. </div>
  42. </form>
  43. <script type="text/javascript">
  44. function submit_form(code){
  45. if($("#apply_reason").val()==''){
  46. layer.msg("请填写订单终止原因");
  47. return false;
  48. }
  49. $.ajax({
  50. url:"${contextPath}/web/mgmOrder/orderTermination.cs",
  51. type:"post",
  52. data: $('#orderinfo').serialize(),
  53. success:function(data){
  54. var datas=eval(data.data);
  55. console.log(data);
  56. if (data.ret == 1) {
  57. layer.msg(data.msg);
  58. setTimeout(function(){
  59. history.go(-1);
  60. }
  61. ,2000);
  62. }else{
  63. layer.msg(data.msg);
  64. }
  65. },
  66. error:function(e){
  67. alert("错误!!");
  68. }
  69. });
  70. }
  71. </script>
  72. </body>
  73. </html>