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
f7c0532f
Commit
f7c0532f
authored
Apr 02, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户列表搜索
parent
a41b7e52
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
16 deletions
+43
-16
Member.php
application/index/controller/Member.php
+17
-1
Remark.php
application/index/controller/Remark.php
+5
-9
users_list.html
application/index/view/member/users_list.html
+14
-1
user.js
public/resource/js/user.js
+3
-1
user_template_tpl.html
public/resource/template/user_template_tpl.html
+4
-4
No files found.
application/index/controller/Member.php
View file @
f7c0532f
...
...
@@ -64,7 +64,23 @@ class Member extends Basic{
$where
[
'a.id'
]
=
$params
[
'id'
];
}
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.referrer_source,a.user_name,a.last_login_ip'
;
if
(
!
empty
(
$params
[
'activate'
])
&&
$params
[
'activate'
]
!=
-
1
)
{
if
(
$params
[
'activate'
]
==
1
)
{
$where
[
'a.status'
]
=
0
;
}
else
{
$where
[
'a.status'
]
=
-
1
;
}
}
if
(
!
empty
(
$params
[
'login_status'
])
&&
$params
[
'login_status'
]
!=
-
1
)
{
if
(
$params
[
'login_status'
]
==
1
)
{
$where
[
'a.last_login_ip'
]
=
[
'not null'
];
}
else
{
$where
[
'a.last_login_ip'
]
=
[
'null'
];
}
}
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.referrer_source,a.user_name,a.last_login_ip,a.status'
;
$data
[
'list'
]
=
$this
->
user
->
getUserAgent
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
...
...
application/index/controller/Remark.php
View file @
f7c0532f
...
...
@@ -193,18 +193,14 @@ class Remark extends Basic
/**
* 客方搜索
*
* @return \think\Response
*/
public
function
select_by_phone
()
{
$params
=
$this
->
params
;
//$params['phone'] ='181';
$phone
=
trim
(
$params
[
'phone'
]);
dump
(
$phone
);
$table
=
new
Agents
();
$Agents_res
=
$table
->
select_by_phone
(
$phone
);
//dump($Agents_res);
$phone
=
trim
(
$this
->
params
[
'phone'
]);
$table
=
new
Agents
();
$Agents_res
=
$table
->
select_by_phone
(
$phone
);
return
$this
->
response
(
"200"
,
"success!"
,
$Agents_res
);
}
/**
...
...
application/index/view/member/users_list.html
View file @
f7c0532f
...
...
@@ -69,6 +69,19 @@
<div
class=
"row"
></div>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"company_name"
name=
"name"
placeholder=
"姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"mobile"
name=
"phone"
placeholder=
"手机号"
type=
"text"
value=
""
>
<select
class=
"form-control btn2 margin-top-ld"
name=
"login_status"
>
<option
value=
"-1"
>
是否登录过
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"2"
>
否
</option>
</select>
<select
class=
"form-control btn2 margin-top-ld"
name=
"activate"
>
<option
value=
"-1"
>
APP状态筛选
</option>
<option
value=
"1"
>
激活
</option>
<option
value=
"2"
>
未激活
</option>
</select>
<span
class=
"btn btn-default btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-default btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
...
...
@@ -141,7 +154,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
电话:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"
password
"
class=
"form-control btn6"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
>
<input
type=
"
number
"
class=
"form-control btn6"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
>
<span
class=
"use-span text-danger"
>
(必填)
</span>
</div>
</div>
...
...
public/resource/js/user.js
View file @
f7c0532f
define
([
'doT'
,
'text!temp/user_template_tpl.html'
,
'ckfinder'
,
'ckfinderStart'
,
'css!style/home.css'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
user
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
1
0
,
/*每页显示多少条*/
pageSize
:
1
5
,
/*每页显示多少条*/
urls
:
''
,
init
:
function
()
{
...
...
@@ -220,6 +220,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params
.
name
=
$
(
"input[name='name']"
).
val
();
params
.
phone
=
$
(
"input[name='phone']"
).
val
();
params
.
invite
=
$
(
"input[name='invite']"
).
val
();
params
.
login_status
=
$
(
"select[name=login_status]"
).
val
();
params
.
activate
=
$
(
"select[name=activate]"
).
val
();
params
.
pageNo
=
user
.
pageNo
;
params
.
pageSize
=
user
.
pageSize
;
...
...
public/resource/template/user_template_tpl.html
View file @
f7c0532f
...
...
@@ -14,10 +14,10 @@
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"source"
]
==
10
)
{
%
]
客户
c
端注册
[
%
}
else
if
(
it
[
item
][
"source"
]
==
20
)
{
%
]
经纪人
报备时添加
[
%
if
(
it
[
item
][
"
referrer_
source"
]
==
10
)
{
%
]
客户
C
端注册
[
%
}
else
if
(
it
[
item
][
"
referrer_
source"
]
==
20
)
{
%
]
报备时添加
[
%
}
%
]
<
/td
>
<
td
>
...
...
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