|
|
|
<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>
|
|
|
|
<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">
|
|
|
|
<!-- 表单 -->
|
|
|
|
<form id="form" action="{:U('edit?id='.$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">
|
|
|
|
<if condition="$show_data_power eq true ">
|
|
|
|
<input type="text" class="txt" name="account" value="{$data['account']}"disabled="disabled">
|
|
|
|
<else />
|
|
|
|
<input type="text" class="txt" name="account" value="{$data['account']|encryptStr}"disabled="disabled">
|
|
|
|
</if>
|
|
|
|
<!--<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>
|
|
|
|
<if condition="get_info_status($data['lock_status'],4) eq 锁定">
|
|
|
|
已锁定
|
|
|
|
<a class="ajax-get" href="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>1))}">启用 </a>
|
|
|
|
<input type="hidden" name="lock_status" value="0">
|
|
|
|
<else />
|
|
|
|
正常
|
|
|
|
<a href="javascript:void();" id="lock" data-url="{:U('Member/lock_status',array('id'=>$data['id'],'lock_status'=>0))}">{:L('Lock')}</a>
|
|
|
|
<input type="hidden" name="lock_status" value="1">
|
|
|
|
</if>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
<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="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="form_radio table_btn player_table_btn">
|
|
|
|
<switch name="data.age_status">
|
|
|
|
<case value="0">未认证</case>
|
|
|
|
<case value="1">未通过</case>
|
|
|
|
<case value="2">已认证</case>
|
|
|
|
<case value="3">未成年</case>
|
|
|
|
<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" value="" readonly>
|
|
|
|
<else/>
|
|
|
|
<if condition="$show_data_power eq true ">
|
|
|
|
<input type="text" class="txt" value="{$data['real_name']}" readonly>
|
|
|
|
<else />
|
|
|
|
<input type="text" class="txt" value="{$data['real_name']|encryptRealName}" readonly>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<span id="relname" class="table_click"><span class="table_click_text inner-click-text">点击修改</span></span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="l">身份证号</td>
|
|
|
|
<td class="r">
|
|
|
|
<if condition="$show_data_power eq true ">
|
|
|
|
<input type="text" class="txt" value="{$data['idcard']}" readonly>
|
|
|
|
<else />
|
|
|
|
<input type="text" class="txt" value="{$data['idcard']|encryptIdCard}" readonly>
|
|
|
|
</if>
|
|
|
|
<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">
|
|
|
|
<if condition="$show_data_power eq true ">
|
|
|
|
<input type="text" class="txt " value="{$data['phone']}" placeholder="暂无手机号码" readonly>
|
|
|
|
<else />
|
|
|
|
<input type="text" class="txt " value="{$data['phone']|encryptStr}" placeholder="暂无手机号码" readonly>
|
|
|
|
</if>
|
|
|
|
<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 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>
|
|
|
|
</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>
|
|
|
|
<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">
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">
|
|
|
|
';
|
|
|
|
</php>
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
|
|
|
|
charset="UTF-8"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//导航高亮
|
|
|
|
highlight_subnav("{:U('Member/user_info')}");
|
|
|
|
Think.setValue("prmoote_id_to", "{$data.promote_id |default= 0}");
|
|
|
|
$('#submit').click(function () {
|
|
|
|
$('#form').submit();
|
|
|
|
});
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$('.time').datetimepicker({
|
|
|
|
format: 'yyyy-mm-dd hh:ii',
|
|
|
|
language: "zh-CN",
|
|
|
|
minView: 2,
|
|
|
|
autoclose: true
|
|
|
|
});
|
|
|
|
$('.date').datetimepicker({
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
language: "zh-CN",
|
|
|
|
minView: 2,
|
|
|
|
autoclose: true
|
|
|
|
});
|
|
|
|
showTab();
|
|
|
|
var id = $("#selfid").val();
|
|
|
|
var url = $("#url").val();
|
|
|
|
$('#bindplatform').on('click', function () {
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
layer.open({
|
|
|
|
type: 2, title: "绑定平台币余额", shadeClose: true, shade: 0.8, area: ['70%', '80%'],
|
|
|
|
content: [href , 'no']
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
$("#chongzhi").click(function () {
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: "【游戏付费记录】列表",
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['70%', '80%'],
|
|
|
|
content: [url + 'admin.php?s=/Member/chax/id/' + id + '' , 'no']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#role").click(function () {
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: "【游戏角色】列表",
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['70%', '80%'],
|
|
|
|
content: [url + 'admin.php?s=/Member/role_list/user_id/' + id + '' , 'no']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#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']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#lookheadpic').click(function() {
|
|
|
|
var url = $(this).attr('src');
|
|
|
|
layer.open({
|
|
|
|
type: 1,
|
|
|
|
title: "",
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
//area: ['120px', '120px'],
|
|
|
|
content: '<img src="'+url+'" />'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#denglu").click(function () {
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: "游戏登录记录",
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['70%', '80%'],
|
|
|
|
content: [url + 'admin.php?s=/Member/denglu/id/' + id + '', 'no']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$("#bind_balance").click(function () {
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: "绑定平台币余额",
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['70%', '80%'],
|
|
|
|
content: [url + 'admin.php?s=/Member/bind_balance/id/' + id + '', 'no']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#relname").click(function () {
|
|
|
|
layer.prompt({
|
|
|
|
formType: 3,
|
|
|
|
title: "请输入真实姓名",
|
|
|
|
value: ''
|
|
|
|
}, function (real_name) {
|
|
|
|
var jsid = $('#selfid').val();
|
|
|
|
var realName = /^[\u4E00-\u9FA5]{2,4}$/;
|
|
|
|
if(!realName.test(real_name)){
|
|
|
|
layer.msg("真实姓名填写有误");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
$.ajax({
|
|
|
|
url: '{:U("changeprelname")}',
|
|
|
|
type: 'post',
|
|
|
|
dataType: 'json',
|
|
|
|
data: {real_name:real_name,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("服务器故障!");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$("#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,
|
|
|
|
title: "请输入手机号码",
|
|
|
|
value: ''
|
|
|
|
}, function (phone) {
|
|
|
|
var jsid = $('#selfid').val();
|
|
|
|
preg = /^[1][3578][0-9]{9}/;
|
|
|
|
if (!preg.test(phone)) {
|
|
|
|
layer.msg("手机号码不正确");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
url: '{:U("changephone")}',
|
|
|
|
type: 'post',
|
|
|
|
dataType: 'json',
|
|
|
|
data: {phone:phone,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("服务器故障!");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$("#lock").bind("click",function () {
|
|
|
|
var url = $(this).attr("data-url");
|
|
|
|
layer.prompt({
|
|
|
|
formType: 3,
|
|
|
|
title: "请备注锁定原因",
|
|
|
|
value: ''
|
|
|
|
}, function (remark,index) {
|
|
|
|
$.ajax({
|
|
|
|
cache: true,
|
|
|
|
type: "POST",
|
|
|
|
url: url,
|
|
|
|
data:{
|
|
|
|
lock_remark:remark
|
|
|
|
},
|
|
|
|
async: false,
|
|
|
|
error: function(data) {
|
|
|
|
layer.alert("服务器故障,请稍后重试!",{icon: 2});
|
|
|
|
},
|
|
|
|
success: function(data) {
|
|
|
|
location.reload()
|
|
|
|
}
|
|
|
|
});
|
|
|
|
layer.close(index);
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</block>
|