|
@@ -0,0 +1,266 @@
|
|
|
+<%--
|
|
|
+ Created by IntelliJ IDEA.
|
|
|
+ User: icega
|
|
|
+ Date: 2019/9/24
|
|
|
+ Time: 19:34
|
|
|
+ To change this template use File | Settings | File Templates.
|
|
|
+--%>
|
|
|
+<%@ page language="java" contentType="text/html; charset=utf-8"
|
|
|
+ pageEncoding="utf-8"%>
|
|
|
+<%@ include file="../../taglibs/taglibs.jsp"%>
|
|
|
+<%pageContext.setAttribute("root", request.getContextPath()); %>
|
|
|
+<!doctype html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>新后台</title>
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp">
|
|
|
+ <meta http-equiv="Cache-Control" content="no-transform">
|
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
+ <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/netstyle/css/main.css"/>
|
|
|
+ <script src="${root}/resources/js/jquery-1.7.js" type="text/javascript"></script>
|
|
|
+ <script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/sessionout.js"></script>
|
|
|
+ <script src="${root}/resources/js/laydate/laydate.js"></script>
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+ var ctx = "${root}";
|
|
|
+ </script>
|
|
|
+ <script
|
|
|
+ src="${root}/resources/js/ajaxfileupload.js"></script>
|
|
|
+ <style type="text/css">
|
|
|
+ .username {
|
|
|
+ text-align: left;
|
|
|
+ margin: 20px 0 20px 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .targetname {
|
|
|
+ height: 23px;
|
|
|
+ line-height: 24px;
|
|
|
+ position: relative;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ text-decoration: none;
|
|
|
+ color: #888;
|
|
|
+ display: inline-block;
|
|
|
+ width: 600px
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div>
|
|
|
+ <p class="main_r_t cc"><span class="span2">当前位置:</span><span>积分管理></span><span>兑换记录</span>
|
|
|
+ </p>
|
|
|
+ <form id="queryOfferList">
|
|
|
+ <div class="act_list">
|
|
|
+
|
|
|
+ <div style="margin-top: 20px;margin-left: 25px">
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div id="appendId" class="overflow_main">
|
|
|
+ <table class="price_table" id="showArea">
|
|
|
+ <tr style="background-color: #0c91d0;height: 50px;">
|
|
|
+ <td id="gId" style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">序号</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px"> 代理商名称</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px"> 礼品名称</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">用户</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">会员等级</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">手机号码</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">收件地址</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">兑换时间</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">消费积分</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">消费金额</td>
|
|
|
+ <td style="background: #688fa2;color: #ffffff;padding: 8px 5px;;font-size: 16px">操作</td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ <div class="list_fy cc"><span>每页显示</span><div class="list_fy_choose down">
|
|
|
+ <span id="pageSize" >10</span>
|
|
|
+
|
|
|
+ <ul id="choseSize">
|
|
|
+ <li onclick="chouseSize(this)">10</li>
|
|
|
+ <li onclick="chouseSize(this)">11</li>
|
|
|
+ <li onclick="chouseSize(this)">12</li>
|
|
|
+ <li onclick="chouseSize(this)">13</li>
|
|
|
+ <li onclick="chouseSize(this)">14</li>
|
|
|
+ <li onclick="chouseSize(this)">15</li>
|
|
|
+ <li onclick="chouseSize(this)">16</li>
|
|
|
+ <li onclick="chouseSize(this)">17</li>
|
|
|
+ <li onclick="chouseSize(this)">18</li>
|
|
|
+ <li onclick="chouseSize(this)">19</li>
|
|
|
+ <li onclick="chouseSize(this)">20</li>
|
|
|
+ </ul></div><span>条,</span>
|
|
|
+ <span id="currentPage" class="ys_num">1</span>
|
|
|
+ <span>/</span><span id="totalPage">22</span>
|
|
|
+ <span class="right" onclick="toNextPage()">GO</span>
|
|
|
+ <input class="right" type="text" id="tooPage" name="toPage"><span class="right" id="lastpage">末页</span>
|
|
|
+ <span class="right" id="nextPage">下一页</span>
|
|
|
+ <span class="right" id="beforePage">上一页</span>
|
|
|
+ <span class="right" id="firstPage">首页</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <c:set var="obj" value="${ppList}"></c:set>
|
|
|
+
|
|
|
+ <div class="tc_newts" id="tishialert">
|
|
|
+ <div class="tcnewts_main">
|
|
|
+ <img class="newts_xxx" onclick="qx_tan($('#tishitc'));" src="${pageContext.request.contextPath}/resources/images/tan_xxx.png">
|
|
|
+ <h3>温馨提示</h3>
|
|
|
+ <p id="tishiwens"></p>
|
|
|
+ <div class="newts_btn" style="text-align:center;" ><a class="btn2" onclick="qx_tan($('#tishialert'));" style="text-align: center;margin-right:0px;">我知道了</a></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="tc_newts" id="tishitc">
|
|
|
+ <div class="tcnewts_main">
|
|
|
+ <img class="newts_xxx" onclick="qx_tan($('#tishitc'));" src="${pageContext.request.contextPath}/resources/images/tan_xxx.png">
|
|
|
+ <h3>温馨提示</h3>
|
|
|
+ <p id="tishiwen"></p>
|
|
|
+ <div class="newts_btn"><a onclick="qx_tan($('#tishitc'));">取消</a><a class="btn2" id="tishiqr">确认</a></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="public_prompt" id="tsalert">您输入的信息有误,请确认后重新输入</div>
|
|
|
+</body>
|
|
|
+<script src="${root}/resources/js/index.js"
|
|
|
+ type="text/javascript"></script>
|
|
|
+<%--<script src="${root}/resources/js/offer/offer.js"--%>
|
|
|
+<%--type="text/javascript"></script>--%>
|
|
|
+<script src="${root}/resources/netstyle/js/page.js" type="text/javascript"></script>
|
|
|
+<%-- <script
|
|
|
+ src="${root}/resources/js/laydate/laydate.js"></script> --%>
|
|
|
+<script type="text/javascript">
|
|
|
+ var allPage=10;
|
|
|
+ $(function(){
|
|
|
+
|
|
|
+ show(1,10);
|
|
|
+ })
|
|
|
+ var pagesize;
|
|
|
+
|
|
|
+ function show(page,pageAcounts) {
|
|
|
+ pagesize=pageAcounts;
|
|
|
+ if(allPage>=page&&page>0){
|
|
|
+ $("#showArea").find("tr").each(function(index){
|
|
|
+ if(index>0){
|
|
|
+ $(this).remove()
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ $.post("${root}/salerecord/showGiftlist.do",{"page":page,"pagesize":pagesize},function(data){
|
|
|
+ allPage=Math.ceil((data.totalNum)/pagesize);
|
|
|
+ var list =data.totalList;
|
|
|
+ for(var i=0;i<list.length;i++){
|
|
|
+ var aa;
|
|
|
+ if(list[i].memberLevel==0){aa="普通会员"}
|
|
|
+ if(list[i].memberLevel==1){aa="贵宾会员"}
|
|
|
+ if(list[i].memberLevel==2){aa="金尊会员"}
|
|
|
+ if(list[i].memberLevel==3){aa="至尊会员"}
|
|
|
+ $("#showArea").append(" <tr style=\"height:40px \" >\n" +
|
|
|
+ " <td>"+(i+1)+"</td>\n" +
|
|
|
+ " <td>"+list[i].agentName+"</td>\n" +
|
|
|
+ " <td>"+list[i].presentName+"</td>\n" +
|
|
|
+ " <td>"+list[i].userName+"</td>\n" +
|
|
|
+ " <td>"+aa+"</td>\n" +
|
|
|
+ " <td>"+list[i].phone+"</td>\n" +
|
|
|
+ " <td>"+list[i].address+"</td>\n" +
|
|
|
+ " <td>"+list[i].exchangeTime+"</td>\n" +
|
|
|
+ " <td>"+list[i].integral+"</td>\n" +
|
|
|
+ " <td>"+list[i].price+"</td>\n" +
|
|
|
+ "<td><span><b class=\"td_b2\" onclick=\"suredeleteShop('"+list[i].id+"')\">删除</b></span></td>"+
|
|
|
+ " </tr>\n")
|
|
|
+ }
|
|
|
+ $("#lastpage").attr("onclick","show("+allPage+","+pagesize+")");
|
|
|
+ $("#nextPage").attr("onclick","show("+(page+1)+","+pagesize+")");
|
|
|
+ $("#beforePage").attr("onclick","show("+(page-1)+","+pagesize+")");
|
|
|
+ $("#firstPage").attr("onclick","show(1,"+pagesize+")");
|
|
|
+ $("#totalPage").text(allPage);
|
|
|
+ $("#currentPage").text(page);
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ function chouseSize(ele){
|
|
|
+ show(1,ele.innerHTML)
|
|
|
+ }
|
|
|
+
|
|
|
+ function toNextPage() {
|
|
|
+ var toPage=$("#tooPage").val();
|
|
|
+ if(toPage.replace(/\s+/g,"")!=""&&toPage.replace(/\s+/g,"")!=null){
|
|
|
+ if(toPage.replace(/\s+/g,"")>allPage){
|
|
|
+ alert("页数过大啊")
|
|
|
+ }else{
|
|
|
+ show(toPage.replace(/\s+/g,""),pagesize);
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ alert("未填写")
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ function deleteRe(id) {
|
|
|
+ $.ajax({
|
|
|
+ type: "POST",
|
|
|
+ url: ctx+'/salerecord/deleteRe.do',
|
|
|
+ data:{id:id},
|
|
|
+ async: false,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(data){
|
|
|
+ tsalert(data.message);
|
|
|
+ show(1,10)
|
|
|
+ qx_tan($('#tishitc'));
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function suredeleteShop(para){
|
|
|
+ var ids=para;
|
|
|
+
|
|
|
+
|
|
|
+ if(!ids){
|
|
|
+ tsalert("请选择要删除的禮品!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ tanKuangMsg($("#tishitc"),"确定删除吗");
|
|
|
+ $("#tishitc").find("#tishiqr").unbind().click(function(){
|
|
|
+ deleteRe(ids);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function tsalert(content){
|
|
|
+ $("#tsalert").html(content);
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#tsalert").fadeIn();
|
|
|
+ },300);
|
|
|
+ setTimeout(function(){
|
|
|
+ $("#tsalert").fadeOut();
|
|
|
+ },2300);
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+<style type="text/css">
|
|
|
+ .list_act_main span b {
|
|
|
+ font-weight: 400;
|
|
|
+ color: #038bcb;
|
|
|
+ cursor: pointer;
|
|
|
+ display: inline-block;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ #copy {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ opacity: 0;
|
|
|
+ z-index: -10;}
|
|
|
+ span input{
|
|
|
+ display:inline-block;
|
|
|
+ *zoom:1;
|
|
|
+ *display:inline;
|
|
|
+ vertical-align:middle;
|
|
|
+ height:24px;
|
|
|
+ line-height:24px;
|
|
|
+ padding:0 10px;
|
|
|
+ width:60%;
|
|
|
+ margin-right:10px;
|
|
|
+ border:1px solid #ccc;}
|
|
|
+</style>
|
|
|
+</html>
|
|
|
+
|