|
@@ -25,7 +25,6 @@
|
|
<body style="padding:10px;">
|
|
<body style="padding:10px;">
|
|
<div class="tplay-body-div">
|
|
<div class="tplay-body-div">
|
|
|
|
|
|
- {include file="user/tab"}
|
|
|
|
|
|
|
|
<form class="layui-form serch" action="{:url('index')}" method="post">
|
|
<form class="layui-form serch" action="{:url('index')}" method="post">
|
|
<div class="layui-form-item" style="float: left;">
|
|
<div class="layui-form-item" style="float: left;">
|
|
@@ -37,14 +36,6 @@
|
|
<input type="text" name="nickname" lay-verify="title" autocomplete="off" placeholder="请输入昵称"
|
|
<input type="text" name="nickname" lay-verify="title" autocomplete="off" placeholder="请输入昵称"
|
|
class="layui-input layui-btn-sm">
|
|
class="layui-input layui-btn-sm">
|
|
</div>
|
|
</div>
|
|
- <div class="layui-input-inline" style="width: 100px;">
|
|
|
|
- <select name="user_type" lay-search="">
|
|
|
|
- <option value="">账号类型</option>
|
|
|
|
- {foreach name="$user_types" item="vo" key="k"}
|
|
|
|
- <option value="{$k}">{$vo}</option>
|
|
|
|
- {/foreach}
|
|
|
|
- </select>
|
|
|
|
- </div>
|
|
|
|
<div class="layui-input-inline">
|
|
<div class="layui-input-inline">
|
|
<input type="text" name="ip" autocomplete="off" placeholder="请输入IP"
|
|
<input type="text" name="ip" autocomplete="off" placeholder="请输入IP"
|
|
class="layui-input layui-btn-sm">
|
|
class="layui-input layui-btn-sm">
|
|
@@ -98,15 +89,6 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
|
|
|
|
- <form id="setVipForm" style="display:none;margin: 10px 30px;" class="layui-form alert-form">
|
|
|
|
- <div class="layui-form-item">
|
|
|
|
- <div class="layui-input-block" style="max-width:200px;">
|
|
|
|
- {volist name="$vips" id="vo"}
|
|
|
|
- <input type="radio" name="vip" value="{$key}" title="{$vo}">
|
|
|
|
- {/volist}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
|
|
|
|
{include file="public/foot"}
|
|
{include file="public/foot"}
|
|
|
|
|
|
@@ -136,13 +118,14 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{field: 'user_type_text', title: '账号类型', width: 80},
|
|
{field: 'user_type_text', title: '账号类型', width: 80},
|
|
- {field: 'sex', title: '性别', width: 80},
|
|
|
|
|
|
+ {field: 'sex_text', title: '性别', width: 80},
|
|
{field: 'country', title: '国家', width: 80},
|
|
{field: 'country', title: '国家', width: 80},
|
|
{field: 'province', title: '省份', width: 80},
|
|
{field: 'province', title: '省份', width: 80},
|
|
{field: 'city', title: '城市', width: 80},
|
|
{field: 'city', title: '城市', width: 80},
|
|
{field: 'login_time', title: '最后登录时间', width: 150},
|
|
{field: 'login_time', title: '最后登录时间', width: 150},
|
|
{field: 'create_time', title: '注册时间', width: 150},
|
|
{field: 'create_time', title: '注册时间', width: 150},
|
|
{field: 'ip', title: '注册ip', width: 100},
|
|
{field: 'ip', title: '注册ip', width: 100},
|
|
|
|
+ {field: "remark", title: '备注', width: 100},
|
|
{
|
|
{
|
|
field: 'status', title: '审核', width: 80, fixed: 'right', templet: function (row) {
|
|
field: 'status', title: '审核', width: 80, fixed: 'right', templet: function (row) {
|
|
if (row.status == 1) {
|
|
if (row.status == 1) {
|
|
@@ -258,73 +241,6 @@
|
|
//监听事件
|
|
//监听事件
|
|
table.on('toolbar(table)', function (obj) {
|
|
table.on('toolbar(table)', function (obj) {
|
|
if (obj.event == 'setPoint') {
|
|
if (obj.event == 'setPoint') {
|
|
- var checkStatus = table.checkStatus(obj.config.id);//获取选中的数据
|
|
|
|
- var data = checkStatus.data;
|
|
|
|
- if (data.length == 0) {
|
|
|
|
- layer.msg('请先勾选需要操作的记录');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- var ids = [];//数组
|
|
|
|
- data.forEach(function (item, key) {
|
|
|
|
- ids[key] = item.id;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- var fromobj = $('#setForm');
|
|
|
|
- layer.open({
|
|
|
|
- type: 1,
|
|
|
|
- title: '批量修改积分',
|
|
|
|
- area: ['400px', '230px'],
|
|
|
|
- id: 'layerDemo', //防止重复弹出
|
|
|
|
- content: fromobj,
|
|
|
|
- btn: ['提交', '关闭'],
|
|
|
|
- btnAlign: 'c', //按钮居中
|
|
|
|
- yes: function (index, layero) {
|
|
|
|
- var post_data = fromobj.serializeJson();
|
|
|
|
- post_data['ids'] = ids;
|
|
|
|
- $.post("{:url('setPoint')}", post_data, function (json) {
|
|
|
|
- layer.msg(json.msg);
|
|
|
|
- if (json.code > 0) {
|
|
|
|
- layer.close(index);
|
|
|
|
- table.reload('table');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }, btn2: function (index) {
|
|
|
|
- }, zIndex: 999 //重点1
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- else if (obj.event == 'setVip') {
|
|
|
|
- var checkStatus = table.checkStatus(obj.config.id);//获取选中的数据
|
|
|
|
- var data = checkStatus.data;
|
|
|
|
- if (data.length == 0) {
|
|
|
|
- layer.msg('请先勾选需要操作的记录');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- var ids = [];//数组
|
|
|
|
- data.forEach(function (item, key) {
|
|
|
|
- ids[key] = item.id;
|
|
|
|
- })
|
|
|
|
- var fromobj = $('#setVipForm');
|
|
|
|
- layer.open({
|
|
|
|
- type: 1,
|
|
|
|
- title: '修改会员',
|
|
|
|
- area: ['375px', '265px'],
|
|
|
|
- id: 'layerDemo', //防止重复弹出
|
|
|
|
- content: fromobj,
|
|
|
|
- btn: ['提交', '关闭'],
|
|
|
|
- btnAlign: 'r', //按钮居中
|
|
|
|
- yes: function (index, layero) {
|
|
|
|
- var post_data = fromobj.serializeJson();
|
|
|
|
- post_data['ids'] = ids;
|
|
|
|
- $.post("{:url('setVips')}", post_data, function (json) {
|
|
|
|
- layer.msg(json.msg);
|
|
|
|
- if (json.code > 0) {
|
|
|
|
- layer.close(index);
|
|
|
|
- table.reload('table');
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }, btn2: function (index) {
|
|
|
|
- }, zIndex: 999 //重点1
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|