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
cbc15734
Commit
cbc15734
authored
Oct 10, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c3de7bd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
LookShop.php
application/index/controller/LookShop.php
+20
-2
whitelist.html
application/index/view/look_shop/whitelist.html
+7
-0
whitelist.js
public/resource/js/whitelist.js
+13
-0
No files found.
application/index/controller/LookShop.php
View file @
cbc15734
...
@@ -247,12 +247,30 @@ class LookShop extends Basic
...
@@ -247,12 +247,30 @@ class LookShop extends Basic
if
(
isset
(
$params
[
"phone"
]))
{
if
(
isset
(
$params
[
"phone"
]))
{
$where_
[
"phone"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'phone'
])
.
"%"
);
$where_
[
"phone"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'phone'
])
.
"%"
);
}
}
$where_
[
"is_del"
]
=
0
;
$ids
=
""
;
if
(
$where_
)
{
$agentModel
=
new
AAgents
();
$agentArr
=
$agentModel
->
getAgentById
(
"id"
,
$where_
);
if
(
count
(
$agentArr
)
>
0
)
{
foreach
(
$agentArr
as
$item
)
{
$ids
.=
$item
[
"id"
]
.
","
;
}
$ids
=
rtrim
(
$ids
,
","
);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
$params_
[
"is_del"
]
=
0
;
if
(
$ids
)
{
$params_
[
"agent_id"
]
=
array
(
"in"
,
$ids
);
}
$aLookShopWhitelistModel
=
new
ALookShopWhitelist
();
$aLookShopWhitelistModel
=
new
ALookShopWhitelist
();
$field
=
"id,agent_id,is_del"
;
$field
=
"id,agent_id,is_del"
;
$agentList
=
$aLookShopWhitelistModel
->
getWhitelistList
(
$field
,
$
where
_
,
1
,
50
);
$agentList
=
$aLookShopWhitelistModel
->
getWhitelistList
(
$field
,
$
params
_
,
1
,
50
);
if
(
count
(
$agentList
)
<=
0
)
{
if
(
count
(
$agentList
)
<=
0
)
{
return
$this
->
response
(
"200"
,
"request null"
);
return
$this
->
response
(
"200"
,
"request null"
);
...
...
application/index/view/look_shop/whitelist.html
View file @
cbc15734
...
@@ -25,6 +25,13 @@
...
@@ -25,6 +25,13 @@
</div>
</div>
</div>
</div>
<div
style=
"width:50%;margin: 10px"
>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"name"
placeholder=
"经纪人姓名"
type=
"text"
>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"phone"
placeholder=
"手机号"
type=
"text"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"form_search_reset"
>
重置
</span>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover"
>
<table
class=
"table table-striped table-bordered table-hover"
>
...
...
public/resource/js/whitelist.js
View file @
cbc15734
...
@@ -36,6 +36,9 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
...
@@ -36,6 +36,9 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
params
.
submit_agent_id
=
user_info_obj
.
id
;
params
.
submit_agent_id
=
user_info_obj
.
id
;
whitelist
.
upLookShop
(
params
);
whitelist
.
upLookShop
(
params
);
});
});
$
(
"#search"
).
click
(
function
()
{
whitelist
.
getWhitelist
();
});
$
(
document
).
delegate
(
".up_look_shop"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".up_look_shop"
,
"click"
,
function
()
{
...
@@ -120,6 +123,16 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
...
@@ -120,6 +123,16 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
/*获取 list*/
/*获取 list*/
getWhitelist
:
function
()
{
getWhitelist
:
function
()
{
var
params
=
{};
var
params
=
{};
var
name
=
$
(
"#name"
).
val
();
var
phone
=
$
(
"#phone"
).
val
();
if
(
name
)
{
params
.
name
=
name
;
}
if
(
phone
&&
phone
.
length
>
3
)
{
params
.
phone
=
phone
;
}
else
if
(
phone
&&
phone
.
length
<=
3
){
alert
(
"手机号必须输入四位或以上"
);
}
$
.
ajax
({
$
.
ajax
({
url
:
'/admin.php/index/getWhitelist'
,
url
:
'/admin.php/index/getWhitelist'
,
type
:
'get'
,
type
:
'get'
,
...
...
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