管理后台-用户组-玩家列表敏感信息加密显示

master
zhengchanglong 5 years ago
parent 3f2433fa4a
commit c32c1780e6

@ -584,4 +584,17 @@ function getAllGame()
{
$list = M("game", 'tab_')->field('relation_game_name as game_name')->group('relation_game_name')->select();
return $list;
}
/**
* 中间加密 替换字符串的子串
*/
function encryptStr($str) {
$length = strlen($str);
$stars_str = "";
for ($x=0; $x<=$length-6; $x++) {
$stars_str = $stars_str."*";
}
return substr_replace($str, $stars_str, 3, $length-6);
}

@ -190,25 +190,25 @@ class MemberController extends ThinkController
// ->select();
if($_REQUEST['promote_id'] && $_REQUEST['promote_id'] > -1){
$data = $usermodel->table('(' . $sql1 . ') as a ')->field('a.id,a.device_number,a.age_status,a.account,a.balance,a.gold_coin,a.alipay,a.promote_id,a.register_type,a.promote_account,a.register_time,a.lock_status,a.register_way,a.register_type,a.register_ip,a.login_time,IFNULL(sum(ss.pay_amount),0) as recharge_total,check_status')
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1'.$spendprom)
->join($game_map ? "tab_user_play on tab_user_play.user_id = a.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_play_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
->order($order)
->select();
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1'.$spendprom)
->join($game_map ? "tab_user_play on tab_user_play.user_id = a.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_play_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
->order($order)
->select();
// echo $data;die();
}else{
$data = $usermodel->table('(' . $sql1 . ') as a ')->field('a.id,a.device_number,a.age_status,a.account,a.balance,a.gold_coin,a.alipay,a.promote_id,a.register_type,a.promote_account,a.register_time,a.lock_status,a.register_way,a.register_type,a.register_ip,a.login_time,IFNULL(sum(ss.pay_amount),0) as recharge_total,check_status')
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1')
->join($game_map ? "tab_user_play on tab_user_play.user_id = a.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_play_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
->order($order)
->select();
->join('left join tab_spend as ss on ss.user_id=a.id AND ss.pay_status = 1')
->join($game_map ? "tab_user_play on tab_user_play.user_id = a.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = a.id $game_play_map" : false)
->page($page, $row)
->having($havs)
->group('a.id')
->order($order)
->select();
}
//计数
@ -220,8 +220,8 @@ class MemberController extends ThinkController
->group('tab_user.id')
->where($hav)
->having($havs)->select(false);
$allcountsql = str_replace("tab_user.promote_id","ss.promote_id",$sql);
$allcountsql = str_replace("tab_user.promote_id","ss.promote_id",$sql);
//获取总额
$allcount = M()->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $allcountsql . ') as a')->select();
$this->assign('history_count', $allcount[0]['recharge_total']?:0);
@ -229,13 +229,13 @@ class MemberController extends ThinkController
//替换为新表
if($_REQUEST['promote_id'] && $_REQUEST['promote_id'] > -1){
$sql = M('user', 'tab_')->field('tab_user.id,IFNULL(sum(ss.pay_amount),0) AS recharge_total')
->join('left join tab_spend as ss on ss.user_id=tab_user.id AND ss.pay_status = 1'.$spendprom)
->join($game_map ? "tab_user_play on tab_user_play.user_id = tab_user.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = tab_user.id $game_play_map" : false)
->where($map)
->group('tab_user.id')
->where($hav)
->having($havs)->select(false);
->join('left join tab_spend as ss on ss.user_id=tab_user.id AND ss.pay_status = 1'.$spendprom)
->join($game_map ? "tab_user_play on tab_user_play.user_id = tab_user.id $game_map" : false)
->join($game_play_map ? "tab_user_play_info on tab_user_play_info.user_id = tab_user.id $game_play_map" : false)
->where($map)
->group('tab_user.id')
->where($hav)
->having($havs)->select(false);
}
$jcount = M('User', 'tab_')->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select();
@ -282,7 +282,7 @@ class MemberController extends ThinkController
$this->m_title = '玩家列表';
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Member/user_info', 'status' => 1])->find());
$this->display();
}
@ -487,6 +487,7 @@ class MemberController extends ThinkController
if (IS_POST) {
$member = new MemberApi();
$data = $_REQUEST;
unset($data['']);
if (empty($data['password'])) {
unset($data['password']);
}
@ -494,9 +495,9 @@ class MemberController extends ThinkController
$this->error('请填写正确的名字');
}
if (!empty($data['idcard']) && !preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $data['idcard'])) {
/*if (!empty($data['idcard']) && !preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $data['idcard'])) {
$this->error('请输入正确的身份证号码');
}
}*/
$res = $member->updateInfo($data);
if ($res !== false) {
@ -712,6 +713,30 @@ class MemberController extends ThinkController
}
}
public function changepidcard()
{
if (preg_match('/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/', $_POST['idcard'])) {
//重复判断
$where['idcard'] = $_POST['idcard'];
/*$user = M('User', 'tab_')->where($where)->field('id,account')->find();
if ($user) {
$this->ajaxReturn(array("status" => 0, "msg" => "该身份证号码已被" . $user['account'] . "(" . $user['id'] . ")绑定"));
}*/
$map['id'] = $_POST['id'];
$pro = M("User", "tab_")
->where($map)
->setField('idcard', $_POST['idcard']);
if ($pro !== false) {
$this->ajaxReturn(array("status" => 1, "msg" => "身份证号码修改成功"));
} else {
$this->ajaxReturn(array("status" => 0, "msg" => "身份证号码修改失败"));
}
} else {
$this->ajaxReturn(array("status" => 0, "msg" => "请输入正确的身份证号码"));
}
}
public function denglu($p = 1)
{
$map['user_id'] = $_REQUEST['id'];

@ -1,56 +1,56 @@
<extend name="Public/base"/>
<block name="body">
<style>
.tabcon1711 .table_click,.tabcon1711 .table_click:hover {border:none;}
.tabcon1711 .table_click .table_click_text {border-bottom:1px solid transparent;}
.tabcon1711 .table_click:hover .table_click_text {border-bottom-color:#145CCD;}
</style>
<style>
.tabcon1711 .table_click,.tabcon1711 .table_click:hover {border:none;}
.tabcon1711 .table_click .table_click_text {border-bottom:1px solid transparent;}
.tabcon1711 .table_click:hover .table_click_text {border-bottom-color:#145CCD;}
</style>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<!-- 标签页导航 -->
<div class="tab-wrap">
<div class="tab-content tabcon1711">
<div class="tab-content tabcon1711">
<!-- 表单 -->
<form id="form" action="{:U('edit?model='.$model['id'])}" method="post" class="form-horizontal">
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">基本信息</h3>
<p class="description_text">说明:此处显示本站玩家账号的相关信息</p>
</div>
<div class="tab-pane in tab1">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="l">玩家账号</td>
<td class="r">
<input type="text" class="txt" name="account" value="{$data['account']}"disabled="disabled">
<span class="notice-text">玩家登录账号,一经注册,全平台通用</span>
</td>
</tr>
<lt name="data.register_type" value="3">
<tr>
<td class="l">登录密码</td>
<td class="r">
<input type="text" class="txt" name="password" value="">
<span class="notice-text">不可查看,只能更改密码</span>
</td>
</tr>
</lt>
<tr>
<td class="l">用户昵称</td>
<td class="r">
<if condition="$data['nickname'] eq null">
<span class="notice-text" style="width:215px;margin-left:0px;">— —</span>
<else/>
<input type="text" class="txt" name="nickname" value="{$data['nickname']}" disabled>
</if>
<span class="notice-text">初次登录,默认玩家为账号,用户可自行设置昵称</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">账号状态</td>
<td class="r table_radio">
<form id="form" action="{:U('edit?model='.$model['id'])}" method="post" class="form-horizontal">
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">基本信息</h3>
<p class="description_text">说明:此处显示本站玩家账号的相关信息</p>
</div>
<div class="tab-pane in tab1">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="l">玩家账号</td>
<td class="r">
<input type="text" class="txt" name="account" value="{$data['account']}"disabled="disabled">
<span class="notice-text">玩家登录账号,一经注册,全平台通用</span>
</td>
</tr>
<lt name="data.register_type" value="3">
<tr>
<td class="l">登录密码</td>
<td class="r">
<input type="text" class="txt" name="password" value="">
<span class="notice-text">不可查看,只能更改密码</span>
</td>
</tr>
</lt>
<tr>
<td class="l">用户昵称</td>
<td class="r">
<if condition="$data['nickname'] eq null">
<span class="notice-text" style="width:215px;margin-left:0px;">— —</span>
<else/>
<input type="text" class="txt" name="nickname" value="{$data['nickname']}" disabled>
</if>
<span class="notice-text">初次登录,默认玩家为账号,用户可自行设置昵称</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">账号状态</td>
<td class="r table_radio">
<span class="form_radio table_btn player_table_btn">
<label>
<input type="radio" value="1" name="lock_status"
@ -61,32 +61,32 @@
<eq name="data['lock_status']" value="0">checked="checked"</eq>> {:L('Lock')}
</label>
</span>
<span class="notice-text">可设置玩家账号的登录状态,锁定即无法登录本平台</span>
</td>
</tr>
<tr>
<td class="l">用户头像</td>
<td class="r">
<span class="notice-text">可设置玩家账号的登录状态,锁定即无法登录本平台</span>
</td>
</tr>
<tr>
<td class="l">用户头像</td>
<td class="r">
<span class="table_click table_icon player_table_btn" style="border-bottom:0px;">
<span class="placeholder_graphic" style="width:52px;height:52px;border-radius:50%;">
<img id="lookheadpic" alt="点击查看原图" title="点击查看原图" src="{$data['head_img']}" style="border-radius:50%;" width="52px" height="52px" />
</span>
</span>
<span class="notice-text" style="height:52px; line-height:52px;">初次登录默认头像,用户可以自行修改</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">VIP等级</td>
<td class="r table_radio">
<span class="notice-text" style="height:52px; line-height:52px;">初次登录默认头像,用户可以自行修改</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">VIP等级</td>
<td class="r table_radio">
<span class="form_radio table_btn player_table_btn">
VIP {:get_vip_level($recharge_total)}
</span>
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">实名认证</td>
<td class="r table_radio">
<span class="notice-text"></span>
</td>
</tr>
<tr>
<td class="l noticeinfo">实名认证</td>
<td class="r table_radio">
<span class="form_radio table_btn player_table_btn">
<switch name="data.age_status">
<case value="0">未认证</case>
@ -96,158 +96,153 @@
<default />意外数据
</switch>
</span>
<span class="notice-text">需玩家认证真实姓名和身份证号码</span>
</td>
</tr>
<tr>
<td class="l">真实姓名</td>
<td class="r">
<if condition="$data['real_name'] eq null">
<input type="text" class="txt" name="real_name" value="">
<else/>
<input type="text" class="txt" name="real_name" value="{$data['real_name']}">
</if>
</td>
</tr>
<tr>
<td class="l">身份证号</td>
<td class="r">
<if condition="$data['idcard'] eq null">
<input type="text" class="txt" name="idcard" value="">
<else/>
<input type="text" class="txt" name="idcard" value="{$data['idcard']}">
</if>
</td>
</tr>
<tr>
<td class="l">QQ号</td>
<td class="r">
<if condition="$data['qq'] eq null">
<input type="text" class="txt" name="qq" value="空" disabled>
<else/>
<input type="text" class="txt" name="qq" value="{$data['qq']}" disabled>
</if>
</td>
</tr>
<tr>
<td class="l noticeinfo">手机号码</td>
<td class="r pr">
<input type="text" class="txt " name="phone" value="{$data['phone']}" placeholder="暂无手机号码"
readonly>
<span id="phone" class="table_click"><span class="table_click_text inner-click-text">点击修改</span></span>
<span class="notice-text">玩家绑定的手机号,可通过点击修改,更换玩家的绑定手机(慎重使用)<span>
</td>
</tr>
<tr>
<td class="l">注册时间</td>
<td class="r">
<input type="text" class="txt" name="register_time" value="{$data['register_time']|date=' Y-m-d H:i:s',###}" disabled>
</td>
</tr>
<tr>
<td class="l">注册ip</td>
<td class="r">
<input type="text" class="txt" name="register_ip" value="{$data['register_ip']}" disabled>
</td>
</tr>
<span class="notice-text">需玩家认证真实姓名和身份证号码</span>
</td>
</tr>
<tr>
<td class="l">真实姓名</td>
<td class="r">
<if condition="$data['real_name'] eq null">
<input type="text" class="txt" name="real_name" value="">
<else/>
<input type="text" class="txt" name="real_name" value="{$data['real_name']}">
</if>
</td>
</tr>
<tr>
<td class="l">身份证号</td>
<td class="r">
<input type="text" class="txt" value="{$data['idcard']|encryptStr}" readonly>
<span id="idcard" class="table_click"><span class="table_click_text inner-click-text">点击修改</span></span>
</td>
</tr>
<tr>
<td class="l">QQ号</td>
<td class="r">
<if condition="$data['qq'] eq null">
<input type="text" class="txt" name="qq" value="空" disabled>
<else/>
<input type="text" class="txt" name="qq" value="{$data['qq']}" disabled>
</if>
</td>
</tr>
<tr>
<td class="l noticeinfo">手机号码</td>
<td class="r pr">
<input type="text" class="txt " value="{$data['phone']|encryptStr}" placeholder="暂无手机号码"
readonly>
<span id="phone" class="table_click"><span class="table_click_text inner-click-text">点击修改</span></span>
<span class="notice-text">玩家绑定的手机号,可通过点击修改,更换玩家的绑定手机(慎重使用)<span>
</td>
</tr>
<tr>
<td class="l">注册时间</td>
<td class="r">
<input type="text" class="txt" name="register_time" value="{$data['register_time']|date=' Y-m-d H:i:s',###}" disabled>
</td>
</tr>
<tr>
<td class="l">注册ip</td>
<td class="r">
<input type="text" class="txt" name="register_ip" value="{$data['register_ip']}" disabled>
</td>
</tr>
<tr>
<td class="l">最后登录时间</td>
<td class="r">
<input type="text" class="txt" name="login_time" value="{$data['login_time']|date=' Y-m-d H:i:s',###}" disabled>
</td>
</tr>
<tr>
<td class="l">最后登录IP</td>
<td class="r">
<input type="text" class="txt" name="login_ip" value="{$data['login_ip']}" disabled>
</td>
</tr>
<tr>
<td class="l noticeinfo">平台币余额</td>
<td class="r">
<input type="text" class="txt readonly-input" value="{$data['balance']}" width="20px" readonly>
<span class="notice-text">显示该用户平台币的账户余额</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">绑定平台币余额</td>
<td class="r">
<a id="bindplatform" class="table_click table_btn player_table_btn" href="{:U('Member/bind_balance',array('id'=>$data['id']))}"><span class="table_click_text">点击查看</span></a>
<span class="notice-text">显示该用户各个游戏的绑定平台币余额(点击弹出显示,可以手动修改)</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">游戏付费记录</td>
<td class="r">
<span id="chongzhi" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">此处显示该玩家游戏内的充值记录;不包含玩家账户充值平台币的记录</span>
</td>
</tr>
<tr>
<td class="l">最后登录时间</td>
<td class="r">
<input type="text" class="txt" name="login_time" value="{$data['login_time']|date=' Y-m-d H:i:s',###}" disabled>
</td>
</tr>
<tr>
<td class="l">最后登录IP</td>
<td class="r">
<input type="text" class="txt" name="login_ip" value="{$data['login_ip']}" disabled>
</td>
</tr>
<tr>
<td class="l noticeinfo">平台币余额</td>
<td class="r">
<input type="text" class="txt readonly-input" value="{$data['balance']}" width="20px" readonly>
<span class="notice-text">显示该用户平台币的账户余额</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">绑定平台币余额</td>
<td class="r">
<a id="bindplatform" class="table_click table_btn player_table_btn" href="{:U('Member/bind_balance',array('id'=>$data['id']))}"><span class="table_click_text">点击查看</span></a>
<span class="notice-text">显示该用户各个游戏的绑定平台币余额(点击弹出显示,可以手动修改)</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">游戏付费记录</td>
<td class="r">
<span id="chongzhi" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">此处显示该玩家游戏内的充值记录;不包含玩家账户充值平台币的记录</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">金币余额</td>
<td class="r">
<tr>
<td class="l noticeinfo">金币余额</td>
<td class="r">
<span class="table_btn player_table_btn">
<input type="text" class="txt readonly-input" value="{$data['gold_coin']}" style="border:none;" readonly>
</span>
<span class="notice-text">显示该用户的金币余额</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">金币提现记录</td>
<td class="r">
<span id="tixian" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">此处显示该玩家的金币提现记录</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">角色信息</td>
<td class="r">
<span id="role" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">点击查看该用户游戏角色信息</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">游戏登录记录</td>
<td class="r">
<span id="denglu" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">点击查看该用户游戏登录记录</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r">
<div class="new_submit">
<input type="hidden" id="selfid" name="id" value="{$data.id}">
<input type="hidden" id="url" name="urll" value="{$url}">
<button class="submit_btn ajax-post " id="submit" type="submit" target-form="form-horizontal">
确定
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
返回
</a>
</div>
</td>
</tr>
</table>
</div>
<span class="notice-text">显示该用户的金币余额</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">金币提现记录</td>
<td class="r">
<span id="tixian" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">此处显示该玩家的金币提现记录</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">角色信息</td>
<td class="r">
<span id="role" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">点击查看该用户游戏角色信息</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">游戏登录记录</td>
<td class="r">
<span id="denglu" class="table_click table_btn player_table_btn"><span class="table_click_text">点击查看</span></span>
<span class="notice-text">点击查看该用户游戏登录记录</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r">
<div class="new_submit">
<input type="hidden" id="selfid" name="id" value="{$data.id}">
<input type="hidden" id="url" name="urll" value="{$url}">
<button class="submit_btn ajax-post " id="submit" type="submit" target-form="form-horizontal">
确定
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
返回
</a>
</div>
</td>
</tr>
</table>
</div>
</form>
</div>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Member/user_info">
</form>
</div>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Member/user_info">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
@ -289,7 +284,7 @@
var href = $(this).attr('href');
layer.open({
type: 2, title: "绑定平台币余额", shadeClose: true, shade: 0.8, area: ['70%', '80%'],
content: [href , 'no']
content: [href , 'no']
});
return false;
});
@ -300,7 +295,7 @@
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no']
content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no']
});
});
@ -311,24 +306,24 @@
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no']
content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no']
});
});
$('#tixian').click(function() {
layer.open({
$('#tixian').click(function() {
layer.open({
type: 2,
title: "【金币提现记录】列表",
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url + 'admin.php?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no']
content: [url + 'admin.php?s=/Member/gold_coin/user_id/' + id + '/account/'+$.trim($('input[name="account"]').val()), 'no']
});
});
});
$('#lookheadpic').click(function() {
var url = $(this).attr('src');
layer.open({
var url = $(this).attr('src');
layer.open({
type: 1,
title: "",
shadeClose: true,
@ -345,7 +340,7 @@
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no']
content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no']
});
});
$("#bind_balance").click(function () {
@ -356,9 +351,45 @@
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no']
content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no']
});
});
$("#idcard").click(function () {
layer.prompt({
formType: 3,
title: "请输入身份证号码",
value: ''
}, function (idcard) {
var jsid = $('#selfid').val();
var regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(!regIdNo.test(idcard)){
layer.msg("身份证号填写有误");
return false;
}
$.ajax({
url: '{:U("changepidcard")}',
type: 'post',
dataType: 'json',
data: {idcard:idcard,id:jsid},
success: function (data) {
if (data.status > 0) {
layer.msg(data.msg)
setTimeout(function(){
self.location.reload(true);
},1500);
} else {
layer.msg(data.msg)
}
},
error: function () {
alert("服务器故障!");
}
});
});
});
$("#phone").click(function () {
layer.prompt({
formType: 3,
@ -380,10 +411,10 @@
success: function (data) {
if (data.status > 0) {
layer.msg(data.msg)
setTimeout(function(){
setTimeout(function(){
self.location.reload(true);
},1500);
} else {
layer.msg(data.msg)
}

@ -284,7 +284,7 @@
<span class="login_old">{$data['login_time']|date='Y-m-d H:i:s',###}</span>
</if>
</td>
<td >{$data.device_number}</td>
<td >{$data.device_number|encryptStr}</td>
<if condition="get_info_status($data['lock_status'],4) eq 锁定">
<td style="color:red;">已{:get_info_status($data['lock_status'],4)}</td>

Loading…
Cancel
Save