...
|
...
|
@@ -12,20 +12,42 @@ |
|
|
<script>
|
|
|
document.write(addHead('订单管理', '黑名单'));
|
|
|
</script>
|
|
|
<div style="margin:20px 0;"></div>
|
|
|
<div class="easyui-panel" title="添加黑名单" style="width:800px">
|
|
|
<div style="padding:10px 60px 20px 60px">
|
|
|
<form id="limitForm" method="post">
|
|
|
<table cellpadding="5">
|
|
|
<tr>
|
|
|
<td>UID(多个以","分隔):</td>
|
|
|
<td><input class="easyui-textbox" name="uids" data-options="multiline:true,required:true" style="height:100px"></input></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>原因:</td>
|
|
|
<td><input class="easyui-textbox" type="text" name="reason" data-options="required:true"></input></td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</form>
|
|
|
<div style="text-align:center;padding:5px">
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="limit(2,'限制购买')">限制购买</a>
|
|
|
<a href="javascript:void(0)" class="easyui-linkbutton" onclick="limit(1,'限制出售')">限制出售</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div region="center">
|
|
|
<div style="padding:20px;">
|
|
|
<label>UID:</label>
|
|
|
<input id="uid" type="text" class="easyui-textbox" style="width:150px"/>
|
|
|
|
|
|
<a id="checkBtn" class="btn-info">查询</a>
|
|
|
<a id="removeBtn" class="btn-info">解除</a>
|
|
|
<a id="checkBtn" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
|
|
|
<a id="removeBtn" class="easyui-linkbutton" data-options="iconCls:'icon-remove'">解除</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
$(function() {
|
|
|
$("#checkBtn").linkbutton({
|
|
|
iconCls : "icon-search",
|
|
|
onClick : function() {
|
|
|
var uid = $("#uid").val();
|
|
|
if(!uid){
|
...
|
...
|
@@ -63,22 +85,17 @@ $(function() { |
|
|
|
|
|
});
|
|
|
|
|
|
function loadBlackUserData(uid) {
|
|
|
$.messager.confirm("确认解绑", "是否确认解绑[uid="+uid+"]", function(flag) {
|
|
|
function limit(blackType,desc) {
|
|
|
$.messager.confirm("提示", "是否确认"+desc +"?", function(flag) {
|
|
|
if (flag) {
|
|
|
$.post(contextPath + "/tradeBills/unbindingAuthorizeInfoByUid", {
|
|
|
uid : uid
|
|
|
$.post(contextPath + "/blackUser/create", {
|
|
|
uids : $("#uids").val(),
|
|
|
blackType : blackType,
|
|
|
reason : $("#reason").val()
|
|
|
}, function(data) {
|
|
|
window.self.$.messager.alert("提示", data.message, "info");
|
|
|
if (data.code == 200) {
|
|
|
$("#authorizeInfoListTable").datagrid("load", {
|
|
|
uid : uid
|
|
|
});
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : "解绑完成!"
|
|
|
});
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", "失败!", "error");
|
|
|
$('#limitForm').form('clear');
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|