Integrallogs.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  6. <!DOCTYPE HTML>
  7. <html>
  8. <head>
  9. <meta charset="utf-8">
  10. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,member-scalable=no" />
  13. <meta http-equiv="Cache-Control" content="no-siteapp" />
  14. <!--[if lt IE 9]>
  15. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/html5.js"></script>
  16. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/respond.min.js"></script>
  17. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/PIE_IE678.js"></script>
  18. <![endif]-->
  19. <link href="${pageContext.request.contextPath }/common/admin/css/H-ui.min.css" rel="stylesheet" type="text/css" />
  20. <link href="${pageContext.request.contextPath }/common/admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
  21. <link href="${pageContext.request.contextPath }/common/admin/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
  22. <!--[if IE 6]>
  23. <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
  24. <script>DD_belatedPNG.fix('*');</script>
  25. <![endif]-->
  26. <title>用户管理</title>
  27. </head>
  28. <body>
  29. <div class="pd-10">
  30. <div>
  31. <table class="table table-border table-bordered table-bg ">
  32. <thead>
  33. <tr class="text-c">
  34. <th width="100">消费类型</th>
  35. <th width="100">积分数量</th>
  36. <th width="100">消费简介</th>
  37. <th width="100">时间</th>
  38. <th width="40">记录类型</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <c:if test="${!empty integrals }">
  43. <c:forEach items="${integrals }" var="integral">
  44. <tr class="text-c">
  45. <td>
  46. <c:if test="${integral.integralLogsType == 1}">收入</c:if>
  47. <c:if test="${integral.integralLogsType == 2}">支出</c:if>
  48. </td>
  49. <td>${integral.integralLogsNum }</td>
  50. <td>${integral.integralLogsIntroduction }</td>
  51. <td><fmt:formatDate value="${integral.integralLogsCreateDate }" pattern="YYYY-MM-dd HH:MM:ss"/></td>
  52. <td>
  53. <c:choose>
  54. <c:when test="${integral.integralLogsResType == 1}">关注奖励</c:when>
  55. <c:when test="${integral.integralLogsResType == 2}">分享奖励</c:when>
  56. <c:when test="${integral.integralLogsResType == 3}">订单奖励</c:when>
  57. <c:when test="${integral.integralLogsResType == 4}">推荐贡献</c:when>
  58. <c:when test="${integral.integralLogsResType == 5}">退订返还</c:when>
  59. <c:when test="${integral.integralLogsResType == 6}">订单支出</c:when>
  60. <c:otherwise>其他</c:otherwise>
  61. </c:choose>
  62. </td>
  63. </tr>
  64. </c:forEach>
  65. </c:if>
  66. <c:if test="${empty integrals }">
  67. <tr class="text-c"><td colspan="5">该用户暂没有任何积分记录!</td></tr>
  68. </c:if>
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/jquery/1.9.1/jquery.min.js"></script>
  74. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/layer/1.9.3/layer.js"></script>
  75. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/laypage/1.2/laypage.js"></script>
  76. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
  77. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/js/H-ui.js"></script>
  78. <script type="text/javascript" src="${pageContext.request.contextPath }/common/admin/js/H-ui.admin.js"></script>
  79. <script type="text/javascript">
  80. $(function(){
  81. $('.table-sort').dataTable({
  82. "aaSorting": [[ 1, "desc" ]],//默认第几个排序
  83. "bStateSave": true,//状态保存
  84. "aoColumnDefs": [
  85. //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
  86. {"orderable":false,"aTargets":[0,8,9]}// 制定列不参与排序
  87. ]
  88. });
  89. $('.table-sort tbody').on( 'click', 'tr', function () {
  90. if ( $(this).hasClass('selected') ) {
  91. $(this).removeClass('selected');
  92. }
  93. else {
  94. table.$('tr.selected').removeClass('selected');
  95. $(this).addClass('selected');
  96. }
  97. });
  98. });
  99. /*用户-添加*/
  100. function member_add(title,url,w,h){
  101. layer_show(title,url,w,h);
  102. }
  103. /*用户-查看*/
  104. function member_show(title,url,id,w,h){
  105. layer_show(title,url,w,h);
  106. }
  107. /*用户-停用*/
  108. function member_stop(obj,id){
  109. layer.confirm('确认要停用吗?',function(index){
  110. $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>');
  111. $(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
  112. $(obj).remove();
  113. layer.msg('已停用!',{icon: 5,time:1000});
  114. });
  115. }
  116. /*用户-启用*/
  117. function member_start(obj,id){
  118. layer.confirm('确认要启用吗?',function(index){
  119. $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont">&#xe631;</i></a>');
  120. $(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
  121. $(obj).remove();
  122. layer.msg('已启用!',{icon: 6,time:1000});
  123. });
  124. }
  125. /*用户-编辑*/
  126. function member_edit(title,url,id,w,h){
  127. layer_show(title,url,w,h);
  128. }
  129. /*密码-修改*/
  130. function change_password(title,url,id,w,h){
  131. layer_show(title,url,w,h);
  132. }
  133. /*用户-删除*/
  134. function member_del(obj,id){
  135. layer.confirm('确认要删除吗?',function(index){
  136. $(obj).parents("tr").remove();
  137. layer.msg('已删除!',{icon:1,time:1000});
  138. });
  139. }
  140. </script>
  141. </body>
  142. </html>