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
948210bf
Commit
948210bf
authored
Dec 18, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试后台用户列表
parent
010b4ad7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
39 deletions
+45
-39
Member.php
application/index/controller/Member.php
+2
-2
consumer_list.html
application/index/view/member/consumer_list.html
+2
-2
Users.php
application/model/Users.php
+27
-1
user.js
public/resource/js/user.js
+10
-9
user_template_tpl.html
public/resource/template/user_template_tpl.html
+4
-25
No files found.
application/index/controller/Member.php
View file @
948210bf
...
@@ -18,8 +18,8 @@ class Member extends Basic{
...
@@ -18,8 +18,8 @@ class Member extends Basic{
}
}
public
function
getUserList
()
{
public
function
getUserList
()
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$data
[
'status'
]
=
101
;
$data
[
'status'
]
=
200
;
$data
[
'data'
]
=
array
();
$data
[
'data'
]
=
array
();
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
...
...
application/index/view/member/consumer_list.html
View file @
948210bf
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<tbody
id=
"users_list"
>
<tbody
id=
"users_list"
>
</tbody>
</tbody>
<tbody>
<!--
<tbody>
<tr>
<tr>
<td>刘女士</td>
<td>刘女士</td>
<td>13545876</td>
<td>13545876</td>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
</a>
</a>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
-->
</table>
</table>
</div>
</div>
</div>
</div>
...
...
application/model/Users.php
View file @
948210bf
...
@@ -22,4 +22,30 @@ class Users extends Model
...
@@ -22,4 +22,30 @@ class Users extends Model
->
where
(
$param
)
->
where
(
$param
)
->
find
(
$userId
);
->
find
(
$userId
);
}
}
}
/**
* 查询经纪人
*
* @param type $pageNo
* @param type $pageSize
* @param type $order_
* @param type $field
* @param type $params
* @param type $house_id 查询该街铺和商铺的经纪人
* @return type
*/
public
function
getUser
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$fields
=
'*'
,
$params
=
''
)
{
$result
=
$this
->
field
(
$fields
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
// dump($result);die;
// foreach ($result as $k=>$v) {
// $data[$k] = $v->toArray();
// }
return
$result
;
}
}
public/resource/js/user.js
View file @
948210bf
...
@@ -25,19 +25,20 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -25,19 +25,20 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
getList
:
function
()
{
getList
:
function
()
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/
banner
List'
,
url
:
'/index/
users
List'
,
type
:
'
POS
T'
,
type
:
'
GE
T'
,
async
:
true
,
async
:
true
,
data
:
{
id
:
1
},
data
:
{},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'user_list_tpl'
).
innerHTML
console
.
log
(
data
);
var
doTtmpl
=
doT
.
template
(
temp
)
var
temp
=
document
.
getElementById
(
'user_list_tpl'
).
innerHTML
;
$
(
"#banner_list"
).
append
(
doTtmpl
(
data
))
var
doTtmpl
=
doT
.
template
(
temp
);
console
.
log
(
doTtmpl
);
$
(
"#users_list"
).
append
(
doTtmpl
(
data
));
}
}
});
})
}
}
}
}
return
user
;
return
user
;
...
...
public/resource/template/user_template_tpl.html
View file @
948210bf
<script
id=
"user_list_tpl"
type=
"text/template"
>
<script
id=
"user_list_tpl"
type=
"text/template"
>
[
%
if
(
it
.
data
.
length
>
0
)
{
%
]
[
%=
it
.
data
.
length
%
]
[
%
for
(
var
i
=
0
,
len
=
it
.
data
.
length
;
i
<
len
;
i
++
){
%
]
<
tr
>
[
%=
it
.
data
[
0
][
"id"
]
%
]
<
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