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
a88780ad
Commit
a88780ad
authored
Feb 01, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
总监列表
parent
cf4e9413
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
11 deletions
+128
-11
district.html
application/index/view/agent/district.html
+59
-11
navigation.html
application/index/view/global/navigation.html
+3
-0
district.js
public/resource/js/district.js
+48
-0
district_template_tpl.html
public/resource/template/district_template_tpl.html
+18
-0
No files found.
application/index/view/agent/district.html
View file @
a88780ad
<!DOCTYPE html>
{layout name="global/frame_tpl" /}
<html
lang=
"en"
>
<!--角色管理页面-->
<head>
<input
type=
"hidden"
class=
"page-load"
id=
"district"
/>
<meta
charset=
"UTF-8"
>
<div
id=
"page-content-wrapper"
>
<title>
Title
</title>
<div
class=
"container"
>
</head>
<div
class=
"row"
>
<body>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
</body>
<div
class=
"panel-heading breadcrumb"
>
</html>
<li><a
href=
"#"
>
总监列表
</a></li>
\ No newline at end of file
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"11"
>
<form
id=
"form_search"
>
<!-- 搜索框 -->
<div
class=
"col-xs-12 col-sm-3 clearfix fl margin-top-ld"
>
<form
class=
"form form-inline"
method=
"get"
action=
"/admin.php/admin/user/index.html"
>
<div
class=
"form-group"
>
<div
class=
"input-group search-form"
>
<input
type=
"text"
name=
"search"
class=
"form-control search-input pull-right"
value=
""
placeholder=
"请输入ID/用户名/昵称"
>
<span
class=
"input-group-btn"
>
<button
id=
"search"
type=
"button"
class=
"btn btn-success search-btn"
><i
class=
"glyphicon glyphicon-search"
></i></button>
</span>
</div>
</div>
</form>
</div>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
注册时间
</th>
<th
class=
"text-center"
>
用户ID
</th>
<th
class=
"text-center"
>
姓名
<th>
<th
class=
"text-center"
>
手机号
</th>
<th
class=
"text-center"
>
绑定小组/门店
</th>
</tr>
</thead>
<tbody
id=
"district_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper//分页 -->
<div
class=
"text-right pageinfo"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
application/index/view/global/navigation.html
View file @
a88780ad
...
@@ -40,6 +40,9 @@
...
@@ -40,6 +40,9 @@
<li
role=
"presentation"
>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/agent.html"
>
经纪人列表
</a>
<a
href=
"/admin.php/index/agent.html"
>
经纪人列表
</a>
</li>
</li>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/districtList.html"
>
总监列表
</a>
</li>
<li
role=
"presentation"
>
<li
role=
"presentation"
>
<a
href=
"/admin.php/index/authRuleIndex.html"
>
权限管理
</a>
<a
href=
"/admin.php/index/authRuleIndex.html"
>
权限管理
</a>
</li>
</li>
...
...
public/resource/js/district.js
0 → 100644
View file @
a88780ad
define
([
'doT'
,
'text!temp/district_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
district
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
district
.
getList
();
district
.
event
();
},
event
:
function
()
{
$
(
document
).
delegate
(
"#search"
,
"click"
,
function
()
{
//点击搜索
district
.
getList
(
1
);
});
},
getList
:
function
(
pageNo
)
{
district
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
district
.
pageNo
;
params
.
pageSize
=
district
.
pageSize
;
params
.
search
=
$
(
"input[name='search']"
).
val
();
$
.
ajax
({
url
:
'/index/getDistrictList'
,
//列表数据
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'district_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#district_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
district
.
pageSize
,
onClick
:
function
(
el
)
{
district
.
getList
(
el
.
num
.
current
);
}
});
}
});
}
};
return
district
;
});
\ No newline at end of file
public/resource/template/district_template_tpl.html
0 → 100644
View file @
a88780ad
<script
id=
"district_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</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