,laypage= layui.laypage //分页
,layer = layui.layer //弹层
,table = layui.table //表格
,laytpl =layui.laytpl
,element= layui.element; //Tab的切换功能,切换事件监听等,需要依赖element模块
//储值卡列表
table.render({
elem:‘#cardList‘,url:‘zlkj_user_info.php?act=getList‘,where:{uid:document.getElementById(‘uid‘).value}
,page: {
layout: [‘count‘, ‘prev‘, ‘page‘, ‘next‘, ‘skip‘]
,groups:5}
,limit:10 //每页默认显示的数量
,cols: [
[
{field:‘buy_time‘, title: ‘充值时间‘,align:‘center‘}
,{field:‘pay_type‘, title: ‘充值方式‘,align:‘center‘}
,{field:‘pay_money‘, title: ‘充值金额(元)‘,align:‘center‘}
,{field:‘give_money‘, title: ‘赠送金额(元)‘,align:‘center‘}
,{field:‘discount‘, title: ‘实际折扣‘,align:‘center‘}
,{field:‘card_balance‘, title: ‘账户储值卡显示余额(元)‘,align:‘center‘}
,{field:‘member_dis‘, title: ‘会员卡当前折扣‘,a