1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="format-detection" content="telephone=no"> <link rel="icon" href="static/images/titleLogo.png" /> <title>门店管理后台</title> <link rel="stylesheet" href="static/layui/plugins/layui/css/layui.css" media="all" />
<script type="text/javascript" src="static/js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="static/layui/plugins/layui/layui.js"></script> <script type="text/javascript"> $(document).ready(function(){ getShopCustomerManagePageInfo(); $("#selectButton").click(function(){ getShopCustomerManagePageInfo(); currentPageAllAppoint = 1; toPage(); }) toPage(); }); var startAllAppoint = 0; var limitAllAppoint = 10; var currentPageAllAppoint = 1; var totalPageAllAppoint = 0; var dataLength = 0; function getShopCustomerManagePageInfo(){ $.ajax({ type:"post", async:false, url:"list_shop_customers_info", data:{start:startAllAppoint, limit:limitAllAppoint,selectValue:$("#selectValue").val()}, success:function(data,status){ data=eval("("+data+")"); getShopCustomesInfo(data.root); startAllAppoint = data.currentResult; totalPageAllAppoint = data.totalPage; } }); } function getShopCustomesInfo(data){ var s = "<tr><th>姓名</th><th>性别</th><th>电话</th><th>备案楼盘</th><th>已成交</th><th>归属经纪人</th><th>添加时间</th></tr>"; $.each(data,function(v,o){ s+='<tr><td>'+o.cusName+'</td>'; s+='<td>'+o.cusSex+'</td>'; s+='<td>'+o.phone+'</td>'; s+='<td>'+o.records+'</td>'; s+='<td>'+o.alreadyDeal+'</td>'; s+='<td>'+o.theMedi+'</td>'; s+='<td>'+o.addTime+'</td></tr>'; });
if(data.length>0){ $("#t_customerInfo").html(s); }else{ $("#page1").hide(); $("#t_customerInfo").html("<br/><span style='width:10%;height:30px;display:block;margin:0 auto;'>暂无数据</span>"); } } function toPage(){ layui.use(['form', 'laypage', 'layedit','layer', 'laydate'], function() { var form = layui.form(), layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate, laypage = layui.laypage; var nums = 10; laypage({ cont: 'paged' ,pages: totalPageAllAppoint ,curr: currentPageAllAppoint ,skip: true ,jump: function(obj, first){ currentPageAllAppoint = obj.curr; startAllAppoint = (obj.curr-1)*limitAllAppoint; if(!first){ getShopCustomerManagePageInfo(); } } }); }); }; </script> </head> <body> <div class="admin-main"> <blockquote class="layui-elem-quote"> <form class="layui-form" action="" > <div class="layui-form-item"> <div class="layui-input-inline"> <input type="text" id="selectValue" lay-verify="required" placeholder="客户姓名,电话" autocomplete="off" class="layui-input"> </div> <button class="layui-btn" type="button" id="selectButton">搜索</button> </div> </form> <span><a href="shop_customer_manager_page_info">显示所有客户</a></span> </blockquote> <fieldset class="layui-elem-field"> <legend>客户列表</legend> <div class="layui-field-box layui-form"> <table class="layui-table admin-table" id="t_customerInfo"> </table> </div> </fieldset> <div class="admin-table-page"> <div id="paged" class="page"> </div> </div> </div> </body> </html>
|