recommendlist.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. <link rel="stylesheet" href="app/lib/flexible.css">
  25. <link rel="stylesheet" href="app/css/basem.css">
  26. <link rel="stylesheet" href="app/css/logome.css">
  27. <link rel="stylesheet" href="app/css/public.css">
  28. </head>
  29. <body>
  30. <div class="titbox blubg">
  31. <a class="titreturn left" href="javascript:void(0)" onclick="back('${ty}')"><img src="app/img/fanhui16@2x.png" alt=""></a>
  32. <h1>推介记录</h1>
  33. </div>
  34. <script type="text/javascript">
  35. function back(ty){
  36. if(ty == '1'){
  37. window.location.href='<%=basePath %>web/mgmUserCtl/index.cs';
  38. }else{
  39. window.history.go(-1);
  40. }
  41. }
  42. </script>
  43. <div class="whbg top50">
  44. <div class="safe" style="padding-bottom:1.6rem;">
  45. <ul id="orderlist" >
  46. <c:forEach var="list" items="${list}" varStatus="status">
  47. <li>
  48. <a class="jinduli" href="web/mgmOrder/getOrderProgressDeteails.cs?type=recommend&orderId=${list.ID}">
  49. <div class="left jindule">
  50. <h3>客户:${list.CUSTOMER_NAME}</h3>
  51. <p>跟单:${list.SALER_NAME}</p>
  52. </div>
  53. <div class="left jinduri">
  54. <h3><span class="left">联系电话:</span><span class="blutxt right">${list.CUSTOMER_PHONE}</span></h3>
  55. <div class="clear">
  56. <p class="redtxt left">
  57. <c:if test="${list.ORDER_TYPE=='1' }">
  58. <c:choose>
  59. <c:when test="${list.ORDER_STATE=='0'}">备案成功</c:when>
  60. <c:when test="${list.ORDER_STATE=='1'}">受理成功</c:when>
  61. <c:when test="${list.ORDER_STATE=='2'}">邀约成功</c:when>
  62. <c:when test="${list.ORDER_STATE=='3'}">到访成功</c:when>
  63. <c:when test="${list.ORDER_STATE=='4'}">认购成功</c:when>
  64. <c:when test="${list.ORDER_STATE=='5'}">签约成功</c:when>
  65. <c:when test="${list.ORDER_STATE=='6'}">确认签约</c:when>
  66. <c:otherwise>
  67. 交房
  68. </c:otherwise>
  69. </c:choose>
  70. </c:if>
  71. <c:if test="${list.ORDER_TYPE=='2' }">
  72. <c:choose>
  73. <c:when test="${list.ORDER_STATE=='0'}">备案成功</c:when>
  74. <c:when test="${list.ORDER_STATE=='1'}">订单推进中</c:when>
  75. <c:when test="${list.ORDER_STATE=='2'}">签约成功</c:when>
  76. <c:when test="${list.ORDER_STATE=='3'}">确认签约</c:when>
  77. </c:choose>
  78. </c:if>
  79. </p>
  80. <p class="graytxt right"><fmt:formatDate value="${list.CREATE_DATE}" pattern="yyyy-MM-dd" /></p>
  81. </div>
  82. </div>
  83. <img class="jinduimg right" src="app/img/fanh3@2x.png" alt="">
  84. </a>
  85. </li>
  86. </c:forEach>
  87. <c:if test="${list== null || fn:length(list) == 0}">
  88. <li>
  89. <h3 style="text-align:center;padding-top:0.1rem;">暂无数据</h3>
  90. </li>
  91. </c:if>
  92. </ul>
  93. </div>
  94. </div>
  95. <script type="text/javascript">
  96. var page=1;
  97. var totalpage="${pageTotal}";
  98. var totalheight=0 ;
  99. var totalheight2=0 ;
  100. $(window).scroll(function(){
  101. totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop());
  102. if($(document).height() == totalheight){
  103. page++;
  104. if(page<=totalpage){
  105. $.ajax({
  106. type: 'POST',
  107. url: 'web/mgmOrder/getRecommendlistMore.cs?page='+page,
  108. dataType:"html",
  109. data:"",
  110. success: function(html){
  111. $('#orderlist').append(html);
  112. }
  113. });
  114. }else{
  115. page = totalpage ;
  116. }
  117. }
  118. });
  119. </script>
  120. </body>
  121. </html>