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
e9a5f8eb
Commit
e9a5f8eb
authored
Jul 02, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人修改
parent
c23353cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
agent.html
application/index/view/agent/agent.html
+4
-5
agent.js
public/resource/js/agent.js
+7
-4
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+1
-1
No files found.
application/index/view/agent/agent.html
View file @
e9a5f8eb
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<!--绑定手机 2.2版本-->
<!--绑定手机 2.2版本-->
<div
class=
"modal fade"
id=
"modal-
un
bundling"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-
phone
bundling"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
...
@@ -219,10 +219,9 @@
...
@@ -219,10 +219,9 @@
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
绑定手机
<div
id=
"agent_phone_binding"
>
<!--<label class="col-sm-3 control-label">权限角色:</label>
555
<select name="status" class="form-control btn6" id="edit_role">
</div>
</select>-->
</div>
</div>
</form>
</form>
</div>
</div>
...
...
public/resource/js/agent.js
View file @
e9a5f8eb
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'text!temp/
agent_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'text!temp/
phoneBinding_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
,
template_binding
)
{
var
agent
=
{
var
agent
=
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
15
,
pageSize
:
15
,
agent_id
:
0
,
agent_id
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
"body"
).
append
(
template
);
$
(
"body"
).
append
(
template
+
template_binding
);
agent
.
getList
();
agent
.
getList
();
agent
.
event
();
agent
.
event
();
},
},
...
@@ -59,6 +59,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
...
@@ -59,6 +59,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
$
(
this
).
val
(
''
).
attr
(
'type'
,
'password'
);
$
(
this
).
val
(
''
).
attr
(
'type'
,
'password'
);
});
});
$
(
document
).
on
(
"click"
,
".phone-bundling"
,
function
()
{
agent
.
getPhoneBindingList
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
agent
.
Submit_edit
();
agent
.
Submit_edit
();
});
});
...
@@ -262,7 +265,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
...
@@ -262,7 +265,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
}
}
})
})
},
},
//手机绑定
//手机绑定
权限
getPhoneBindingList
:
function
(
pageNo
)
{
getPhoneBindingList
:
function
(
pageNo
)
{
agent
.
pageNo
=
pageNo
;
agent
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
...
@@ -280,7 +283,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
...
@@ -280,7 +283,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/agent_template_tp
success
:
function
(
data
)
{
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'phone_binding_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'phone_binding_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agent
list
"
).
html
(
doTempl
(
data
.
data
.
list
));
$
(
"#agent
_phone_binding
"
).
html
(
doTempl
(
data
.
data
.
list
));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
$
(
'.J_preview'
).
preview
();
...
...
public/resource/template/agent_template_tpl.html
View file @
e9a5f8eb
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
[
%
}
%
]
[
%
}
%
]
<!--
增加绑定手机号按钮
2.2
版本
-->
<!--
增加绑定手机号按钮
2.2
版本
-->
<!--
权限
-->
<!--
权限
-->
<
a
class
=
"btn1 btn-success
"
href
=
"#modal-un
bundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
<
/a
>
<
a
class
=
"btn1 btn-success
phone-bundling"
href
=
"#modal-phone
bundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/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