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
| layui.define([ 'form', 'laydate', 'table' ], function(exports) {
| var form = layui.form;
| var laydate = layui.laydate;
| var table = layui.table;
| var auditTable = null;
| var d = {};
| var view ={
|
| init:function(data){
| d = data;
| this.initTable();
| },
| initTable:function(){
| auditTable = table.render({
| elem : '#moneyTable',
| height : 'full-180',
| method : 'post',
| url : Common.ctxPath+ '/admin/money/drawmoney/queryRechangeList.json' //数据接口
| ,page : {"layout":['count','prev', 'page', 'next']} //开启分页
| ,limit : 10,
| where: d,
| cols : [ [ //表头
| {
| field : 'payOrderId',
| title : '流水号',
| width : 200
| },{
| field : 'createTime',
| title : '充值时间',
| width : 200,
| sort : true
| },{
| field : 'money',
| title : '充值金额',
| width : 100,
| templet:function (d) {
| return d.money + '元';
| },
| sort : true
| }, {
| field : 'nickName',
| title : '昵称',
| width : 150,
| templet:function (d){
| if (d.nickName == null) {
| return '--';
| } else {
| return $.base64.atob(d.nickName, true);
| }
| }
|
| }/*, {
| field : 'userType',
| title : '角色',
| width : 80
| }*/,
| {
| field : 'mobilePhone',
| title : '电话',
| width : 120,
| },
| {
| field: 'status',
| title: '审核状态',
| width: 120,
| templet:function (d){
| if(d.status === '1'){
| return '待支付';
| }else if(d.status === '2'){
| return '已支付';
| }else if(d.status === '3'){
| return '已审核';
| }else if(d.status === '4'){
| return '已提现';
| }else{
| return '未知状态';
| }
| }
| },
| {
| field: '',
| title: '操作',
| width: 120,
| templet:function (d) {
| var y2 = '<a class="layui-btn layui-btn-xs" ' +
| //'onclick="queryCuserDetail('+data.userID+', '+data.mobilePhone+', '+data.userTypex+')" ' +
| 'lay-event="detail">详情</a>';
| return '/';
| }
| }
|
| ] ]
|
| });
| }
| };
|
|
| $("#search").click(function () {
| $(this).removeClass('layui-btn-primary');
| var d = {
| 'nickName':$("#nickName").val(),
| 'mobilePhone':$("#mobilePhone").val()
| };
| view.init(d);
| });
|
| exports('index',view);
|
| });
|
|