user.html
13.5 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
.yg5_key>div{float: left;line-height: 34px;}
.store_td1{height: 45px;}
.store_list_img{width: 40px;height: 40px;}
.yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;font-size: 12px;}
.yg5_tr2>td{padding: 10px 15px;border: 1px solid #e5e5e5;text-align: center;}
.yg5_tr1>th{
border: 1px solid #e5e5e5;
padding-left: 15px;
background-color: #FAFAFA;
font-weight: bold;
text-align: center;
}
.yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
.store_inp{margin-left: 5px;}
.ygshanchu{color: white;background-color: #44ABF7;}
.accout_inp{width: 100%;height: 35px;border: 1px solid #cccccc;font-size: 14px;color: #333;}
.navback{display: none;}
.yg_back{margin-left: 170px;}
.scour{
position: relative;
width: 100%;
display: block;
}
.scour:hover .scour_tip{
display: block;
}
.scour_tip{
display: none;
position: absolute;
left: 50%;
bottom: 27px;
background-color: #333;
color: white;
padding: 2px 7px;
border-radius: 2px;
font-size: 10px;
margin-left: -20px
}
.scour_tip:after{
content: "";
display:block;
width: 0;
height: 0;
border-bottom: 10px solid #333;
border-left: 10px solid transparent;
transform: rotate(45deg);
position: absolute;
left: 40%;
top: 78%;
}
.footer{
background:none !important;
color:#666;
/*position: fixed;*/
/* bottom: 0;*/
/*z-index: -100;*/
opacity: 1;
width: 85%;
}
</style>
<ul class="nav nav-tabs">
<span class="ygxian"></span>
<div class="ygdangq">当前位置:</div>
<li class="active"><a href="javascript:void(0);">会员列表</a></li>
</ul>
<div class="main">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-md-3">
<!-- <a class="btn btn-primary" href="javascript:location.reload()"><i class="fa fa-refresh"></i>刷新</a> -->
<!-- 批量部分 -->
<button class="btn btn-default ygshanchu" id="allselect">批量删除</button>
</div>
<form action="" method="get" class="col-md-4">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="zh_cjdianc" />
<input type="hidden" name="do" value="user" />
<div class="input-group" style="width: 300px">
<input type="text" name="keywords" class="form-control" placeholder="请输入昵称">
<span class="input-group-btn">
<input type="submit" class="btn btn-default" name="submit" value="查找"/>
</span>
</div>
<input type="hidden" name="token" value="{$_W['token']}"/>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
会员列表
</div>
<div class="panel-body" style="padding: 0px 15px;">
<div class="row">
<table class="yg5_tabel col-md-12" id="test_table">
<tr class="yg5_tr1">
<!-- 批量部分 -->
<th class="store_td1 col-md-1">
<input type="checkbox" class="allcheck" />
<span class="store_inp">全选</span>
</th>
<!-- 批量部分 -->
<th class="store_td1 col-md-1" >id</th>
<th class="col-md-1">会员昵称</th>
<th class="store_td1 col-md-1">会员头像</th>
<th class="col-md-1">会员openid</th>
<th class="col-md-1">注册时间</th>
<th class="col-md-1">手机号</th>
<th class="col-md-1">积分</th>
<th class="col-md-1">钱包余额</th>
<th class="col-md-1">订单量</th>
<th class="col-md-2">操作</th>
</tr>
{loop $list $row}
<tr class="yg5_tr2">
<!-- 批量部分 -->
<td>
<input type="checkbox" name="test" value="{$row['id']}">
</td>
<!-- 批量部分 -->
<td >{$row['id']}</td>
<td>{$row['name']}</td>
<td><img class="store_list_img" src="{$row['img']}"/></td>
<td>{$row['openid']}</td>
<td>{php echo date("Y-m-d H:i:s",$row['join_time']);}</td>
<td>{if $row['user_tel']}{$row['user_tel']}{else}无{/if}</td>
<td>
<a href="{php echo $this->createWebUrl('userjf', array('user_id' => $row['id']))}" class="scour">{$row['total_score']}
<span class="scour_tip">查看明细
<span class="arrowdown"></span>
</span>
</a>
</td>
<td>
<a href="{php echo $this->createWebUrl('userqb', array('user_id' => $row['id']))}" class="scour">{$row['wallet']}
<span class="scour_tip">查看明细
<span class="arrowdown"></span>
</span>
</a></td>
<td>
<a href="{php echo $this->createWebUrl('userorder', array('user_id' => $row['id']))}" class="scour">{$row['ordernum']}
<span class="scour_tip">查看明细
<span class="arrowdown"></span>
</span>
</a></td>
<td>
<a href="javascript:void(0);" data-toggle="modal" data-target="#myModalb{$row['id']}"><span class="btn btn-xs ygyouhui2">充值余额</span> </a>
<a href="javascript:void(0);" data-toggle="modal" data-target="#myModala{$row['id']}"><span class="btn btn-xs ygshouqian2">充值积分</span> </a>
<a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
<span class="fa fa-trash-o"></span>
<span class="bianji">删除
<span class="arrowdown"></span>
</span>
</a>
<!-- <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删除</button> -->
</td>
</tr>
<div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
</div>
<div class="modal-body" style="font-size: 20px">
确定删除么?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<a href="{php echo $this->createWebUrl('user', array('op' => 'delete', 'id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModalb{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document" style="min-width: 300px!important;width: 250px;">
<form action="" method="post" enctype="multipart/form-data">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑充值金额</h4>
</div>
<div class="modal-body" style="font-size:20px">
<input type="number" name="reply" class="accout_inp col-md-9" placeholder="请输入金额">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<input type="submit" name="submit2" class="btn btn-info" value="确定">
<input type="hidden" name="token" value="{$_W['token']}"/>
<input type="hidden" name="id2" value="{$row['id']}"/>
</div>
</div>
</form>
</div>
</div>
<div class="modal fade" id="myModala{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document" style="min-width: 300px!important;width: 250px;">
<form action="" method="post" enctype="multipart/form-data">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑积分数量</h4>
</div>
<div class="modal-body" style="font-size:20px">
<input type="number" name="reply" class="accout_inp col-md-9" placeholder="请输入积分">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<input type="submit" name="submit3" class="btn btn-info" value="确定">
<input type="hidden" name="token" value="{$_W['token']}"/>
<input type="hidden" name="id3" value="{$row['id']}"/>
</div>
</div>
</form>
</div>
</div>
{/loop}
{if empty($list)}
<tr class="yg5_tr2">
<td colspan="9">
暂无会员信息
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
</div>
<div class="text-right we7-margin-top">
{$pager}
</div>
<!-- {template 'common/footer'} -->
<script type="text/javascript">
$(function(){
// $("#frame-12").addClass("in");
// $("#frame-12").show();
$("#yframe-12").addClass("wyactive");
$("#allselect").on('click',function(){
var check = $("input[type=checkbox][class!=allcheck]:checked");
if(check.length < 1){
alert('请选择要删除的会员!');
return false;
}else if(confirm("确认要删除此会员?")){
var id = new Array();
check.each(function(i){
id[i] = $(this).val();
});
// console.log(id)
$.ajax({
type:"post",
url:"{$_W['siteroot']}/app/index.php?i={$_W['uniacid']}&c=entry&do=UpdUser&m=zh_cjdianc",
dataType:"text",
data:{id:id},
success:function(data){
console.log(data);
location.reload();
}
})
}
});
$(".allcheck").on('click',function(){
var checked = $(this).get(0).checked;
$("input[type=checkbox]").prop("checked",checked);
});
})
</script>
{template 'common/footer'}