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
5b9b6ef8
Commit
5b9b6ef8
authored
Oct 14, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
82c9fc8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
whitelist.js
public/resource/js/whitelist.js
+13
-16
No files found.
public/resource/js/whitelist.js
View file @
5b9b6ef8
...
...
@@ -50,21 +50,7 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
$
(
"#search"
).
click
(
function
()
{
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
(
"手机号必须输入四位或以上"
);
return
;
}
if
(
!
name
&&
!
phone
){
alert
(
"请输入搜索条件"
);
return
;
}
whitelist
.
getWhitelist
(
params
);
whitelist
.
getWhitelist
();
});
$
(
"#form_search_reset"
).
click
(
function
()
{
$
(
"#name"
).
val
(
""
);
...
...
@@ -156,7 +142,18 @@ define(['doT', 'text!temp/whitelist_template_tpl.html', 'css!style/home.css', 'b
});
},
/*获取 list*/
getWhitelist
:
function
(
params
)
{
getWhitelist
:
function
()
{
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
(
"手机号必须输入四位或以上"
);
return
;
}
$
.
ajax
({
url
:
'/admin.php/index/getWhitelist'
,
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