Toggle navigation
This project
Loading...
Sign in
najixian
/
xt_dc_admin
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
94d8434510df21e72dfc089594e1984126aff5e8
Authored by
pengye
2019-12-19 16:31:00 +0800
1 parent
b2eb60e6
build: skipped
no message
Changes
2
Builds
0
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
application/admin/controller/Area.php
application/admin/view/area/operate.html
application/admin/controller/Area.php
View file @
94d8434
...
...
@@ -88,6 +88,22 @@ class Area extends Common
$this
->
assign
(
'title'
,
'代理商管理'
);
return
$this
->
fetch
();
}
/**
* 代理商运营list
*/
public
function
operate
(){
if
(
Request
::
isAjax
()){
$data
=
Request
::
except
(
'file'
);
//获取运营人员列表
$list
=
file_get_contents
(
ON_LINE
.
'App.Agent.getAgentOperate&areaid='
.
$data
[
'areaid'
]);
$array
=
json_decode
(
$list
,
TRUE
);
return
$result
=
[
'code'
=>
0
,
'msg'
=>
'获取成功!'
,
'data'
=>
$array
[
'data'
],
'rel'
=>
1
];
#'count'=>$array['data'][0]['total']
}
$this
->
assign
(
'title'
,
'代理商管理'
);
return
$this
->
fetch
();
}
/**
* 停用商家
...
...
application/admin/view/area/operate.html
0 → 100644
View file @
94d8434
{include file="common/head"/}
<div
class=
"admin-main layui-anim layui-anim-upbit"
>
<fieldset
class=
"layui-elem-field layui-field-title"
>
<legend>
代理商运营人员列表
</legend>
</fieldset>
<table
class=
"layui-table"
id=
"list"
lay-filter=
"list"
></table>
</div>
{include file="common/foot"/}
<script
type=
"text/html"
id=
"barDemo"
>
<
a
class
=
"layui-btn layui-btn-danger layui-btn-xs"
lay
-
event
=
"del"
>
{:
lang
(
'del'
)}
<
/a
>
</script>
<script>
layui
.
use
([
'table'
,
'form'
],
function
()
{
var
table
=
layui
.
table
,
form
=
layui
.
form
,
$
=
layui
.
jquery
;
var
tableIn
=
table
.
render
({
elem
:
'#list'
,
url
:
'{:url("operateList")}'
,
method
:
'post'
,
cols
:
[[
{
field
:
'id'
,
title
:
'主键ID'
,
width
:
80
,
fixed
:
true
}
,{
field
:
'sub_openid'
,
title
:
'运营授权ID'
,
width
:
280
,
fixed
:
true
}
,{
field
:
'openid'
,
title
:
'微信openid'
,
width
:
270
}
,{
field
:
'account'
,
title
:
'运营账号'
,
width
:
120
}
,{
field
:
'level'
,
title
:
'用户身份'
,
width
:
120
}
,{
field
:
'cdate'
,
title
:
'加入时间'
,
width
:
180
}
,{
width
:
160
,
title
:
'操作'
,
align
:
'center'
,
toolbar
:
'#barDemo'
}
]]
});
//删除运营人员
table
.
on
(
'tool(list)'
,
function
(
obj
){
var
data
=
obj
.
data
;
if
(
obj
.
event
===
'del'
){
layer
.
confirm
(
'{:lang("Are you sure you want to delete it")}'
,
function
(
index
){
$
.
post
(
"{:url('operateDel')}"
,{
id
:
data
.
id
},
function
(
res
){
if
(
res
.
code
==
1
){
layer
.
msg
(
res
.
msg
,{
time
:
1000
,
icon
:
1
});
obj
.
del
();
}
else
{
layer
.
msg
(
res
.
msg
,{
time
:
1000
,
icon
:
2
});
}
});
layer
.
close
(
index
);
});
}
});
});
</script>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment