Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
a1a5a562
Commit
a1a5a562
authored
Dec 18, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台用户列表
parent
66d2412f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
89 additions
and
6 deletions
+89
-6
Member.php
application/index/controller/Member.php
+38
-0
consumer_list.html
application/index/view/member/consumer_list.html
+4
-1
route.php
application/route.php
+5
-0
user.js
public/resource/js/user.js
+15
-3
user_template_tpl.html
public/resource/template/user_template_tpl.html
+27
-2
No files found.
application/index/controller/Member.php
0 → 100644
View file @
a1a5a562
<?php
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\Users
;
/**
* Description of Member
*
* @author : fuju
* @date : 2017-12-15 17:45:12
* @internal : 用户
*/
class
Member
extends
Basic
{
public
function
index
()
{
return
view
(
'member/consumer_list'
);
}
public
function
getUserList
()
{
$params
=
$this
->
params
;
$data
[
'status'
]
=
101
;
$data
[
'data'
]
=
array
();
$data
[
'msg'
]
=
''
;
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$user
=
new
Users
();
$fields
=
'*'
;
$data
[
'data'
]
=
$user
->
getUser
(
$pageNo
,
$pageSize
,
''
,
$fields
,
'status = 0'
);
$data
[
'data'
][
'pageNo'
]
=
$pageNo
;
$data
[
'data'
][
'pageSize'
]
=
$pageSize
;
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]
);
}
}
application/index/view/member/consumer_list.html
View file @
a1a5a562
{layout name="global/frame_tpl" /}
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"
home
"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"
user
"
/>
<!--导航star-->
<!--导航star-->
<!-- Sidebar -->
<!-- Sidebar -->
...
@@ -50,6 +50,9 @@
...
@@ -50,6 +50,9 @@
<th>
操作
</th>
<th>
操作
</th>
</tr>
</tr>
</thead>
</thead>
<tbody
id=
"users_list"
>
</tbody>
<tbody>
<tbody>
<tr>
<tr>
<td>
刘女士
</td>
<td>
刘女士
</td>
...
...
application/route.php
View file @
a1a5a562
...
@@ -56,6 +56,11 @@ Route::group('index', [
...
@@ -56,6 +56,11 @@ Route::group('index', [
'entrust_list'
=>
[
'index/member.index/entrust_list'
,
[
'method'
=>
'get'
]
],
'entrust_list'
=>
[
'index/member.index/entrust_list'
,
[
'method'
=>
'get'
]
],
'banner'
=>
[
'index/banner/index'
,
[
'method'
=>
'get'
]
],
'banner'
=>
[
'index/banner/index'
,
[
'method'
=>
'get'
]
],
'bannerList'
=>
[
'index/banner/getBannerList'
,
[
'method'
=>
'post'
]
],
'bannerList'
=>
[
'index/banner/getBannerList'
,
[
'method'
=>
'post'
]
],
<<<<<<<
Updated
upstream
=======
'usersList'
=>
[
'index/member/getUserList'
,[
'method'
=>
'get'
]],
'user'
=>
[
'index/member/index'
]
>>>>>>>
Stashed
changes
]);
]);
...
...
public/resource/js/user.js
View file @
a1a5a562
...
@@ -23,9 +23,21 @@ define (['doT', 'text!temp/user_templete_tpl.html','ckfinder','ckfinderStart', '
...
@@ -23,9 +23,21 @@ define (['doT', 'text!temp/user_templete_tpl.html','ckfinder','ckfinderStart', '
},
},
getList
:
function
()
{
getList
:
function
()
{
/* var temp = document.getElementById ('user_index_tpl').innerHTML;
var doTtmpl = doT.template (temp);
$
.
ajax
({
$ ("body").append (doTtmpl ());*/
url
:
'/index/bannerList'
,
type
:
'POST'
,
async
:
true
,
data
:
{
id
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'user_list_tpl'
).
innerHTML
var
doTtmpl
=
doT
.
template
(
temp
)
$
(
"#banner_list"
).
append
(
doTtmpl
(
data
))
}
})
}
}
}
}
return
user
;
return
user
;
...
...
public/resource/template/user_template_tpl.html
View file @
a1a5a562
<script
id=
"banner_index_tpl"
type=
"text/template"
>
<script
id=
"user_list_tpl"
type=
"text/template"
>
this
is
template
block
[
%
if
(
it
.
data
.
length
>
0
)
{
%
]
[
%
for
(
var
i
=
0
,
len
=
it
.
data
.
length
;
i
<
len
;
i
++
){
%
]
<
tr
>
<
td
>
[
%=
it
.
data
[
i
][
"user_nick"
]
%
]
<
/td
>
<
td
>
<
img
src
=
"[%= it.data[i]['user_pic'] %]"
class
=
"diagram-image"
>
<
/td
>
<
td
>
[
%=
it
.
data
[
i
][
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
i
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
i
][
"id"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-do"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-danger "
href
=
"#modal-delete"
data
-
toggle
=
"modal"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"7"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
</script>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment