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
9ec10fa6
Commit
9ec10fa6
authored
Mar 08, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复文件
parent
6e824da8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
agentIndex.js
public/resource/js/agentIndex.js
+68
-0
No files found.
public/resource/js/agentIndex.js
0 → 100644
View file @
9ec10fa6
/**
* Created by 刘丹 on 2018/3/1.
*/
define
([
'doT'
,
'text!temp/agentIndex_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
agentIndex
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
agentIndex
.
getList
();
agentIndex
.
event
();
},
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
agentIndex
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
},
getList
:
function
(
pageNo
)
{
agentIndex
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
agentIndex
.
pageNo
;
params
.
pageSize
=
agentIndex
.
pageSize
;
params
.
agents_name
=
$
(
'#industry_type'
)
.
val
();
//经纪人姓名
params
.
phone
=
$
(
'#dish'
)
.
val
();
//经纪人手机号
params
.
start_date
=
$
(
'#start_date'
)
.
val
();
//时间1
params
.
end_date
=
$
(
'#end_date'
)
.
val
();
//时间2
$
.
ajax
({
url
:
'/index/callCollectList'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'agentIndex_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#agentIndex_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
agentIndex
.
pageSize
,
onClick
:
function
(
el
)
{
agentIndex
.
getList
(
el
.
num
.
current
);
}
});
}
});
}
};
return
agentIndex
;
});
\ 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