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
cbc573fd
Commit
cbc573fd
authored
Feb 09, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人列表
parent
e5b5596f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
40 deletions
+24
-40
agent.html
application/index/view/agent/agent.html
+12
-21
agent.js
public/resource/js/agent.js
+6
-0
houseList.js
public/resource/js/houseList.js
+1
-1
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+2
-15
district_template_tpl.html
public/resource/template/district_template_tpl.html
+3
-3
No files found.
application/index/view/agent/agent.html
View file @
cbc573fd
...
...
@@ -26,34 +26,25 @@
<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>
<a
href=
"#modal-user"
data-toggle=
"modal"
class=
"btn btn-default btn3 ld-Marheight "
>
变更角色
</a>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"industry_type"
placeholder=
"角色"
type=
"text"
value=
""
name=
"groupname"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish"
placeholder=
"门店"
type=
"text"
value=
""
name=
"store_name"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"姓名/手机号"
name=
"search"
type=
"text"
value=
""
>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-default btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<!--变更角色-->
<a
href=
"#modal-user"
data-toggle=
"modal"
class=
"btn btn-info btn-sm margin-top-ld User_add"
>
变更角色
</a>
</form>
</td>
</tr>
<tr>
<th>
全选
</th>
<th>
UID
</th>
<th>
头像
</th>
<th>
职位
</th>
<th>
用户名
</th>
<th>
手机号
</th>
<th>
门店名
</th>
<th>
区域
</th>
<th>
注册时间
</th>
<th>
用户ID
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
角色
</th>
<th>
操作
</th>
</tr>
</thead>
...
...
public/resource/js/agent.js
View file @
cbc573fd
...
...
@@ -12,6 +12,10 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
$
(
'#search'
).
click
(
function
(
pageNo
)
{
agent
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
agent
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
Edit_add
();
...
...
@@ -185,6 +189,8 @@ define (['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css','pagin
params
.
pageNo
=
agent
.
pageNo
;
params
.
pageSize
=
agent
.
pageSize
;
params
.
search
=
$
(
"input[name='search']"
).
val
();
params
.
groupname
=
$
(
"input[name='groupname']"
).
val
();
params
.
store_name
=
$
(
"input[name='store_name']"
).
val
();
$
.
ajax
({
url
:
'/index/AgentList.html'
,
type
:
'GET'
,
...
...
public/resource/js/houseList.js
View file @
cbc573fd
...
...
@@ -220,7 +220,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
if
(
data
.
data
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
){
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td> <td>'
+
item
.
name
+
'</td> <td>'
+
item
.
create_time
+
'</td></tr>'
})
})
;
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
}
}
else
{
...
...
public/resource/template/agent_template_tpl.html
View file @
cbc573fd
...
...
@@ -5,24 +5,11 @@
<
td
>
<
input
type
=
"checkbox"
name
=
"ids"
value
=
"[%= it[item]['id'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
><
img
src
=
"./index/[%= it[item]['img'] %]"
alt
=
""
><
/td
>
<
td
>
[
%
if
(
it
[
item
][
"level"
]
==
10
)
{
%
]
经纪人
[
%
}
else
if
(
it
[
item
][
"level"
]
==
20
)
{
%
]
店长
[
%
}
else
if
(
it
[
item
][
"level"
]
==
30
)
{
%
]
总监
[
%
}
else
{
%
]
总监和店长
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"district_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"groupname"
]
%
]
<
/td
>
<!--<
td
><
span
class
=
"fa fa-check text-success"
><
/span></
td
>-->
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
...
...
public/resource/template/district_template_tpl.html
View file @
cbc573fd
...
...
@@ -3,12 +3,12 @@
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
district_
id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"district_name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
><
a
href
=
"#modal-record"
class
=
"mend"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["
district_
id"] %]'
>
[
%=
it
[
item
][
"store_num"
]
%
]
<
/a></
td
>
<
td
><
a
href
=
"#modal-record"
class
=
"mend"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%=
it
[
item
][
"store_num"
]
%
]
<
/a></
td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["
district_
id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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