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
79fb0406
Commit
79fb0406
authored
Jul 02, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人列表修改
parent
39c5c3f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletion
+46
-1
agent.js
public/resource/js/agent.js
+28
-1
phoneBinding_template_tpl.html
public/resource/template/phoneBinding_template_tpl.html
+18
-0
No files found.
public/resource/js/agent.js
View file @
79fb0406
define
([
'doT'
,
'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/agent_template_tpl.html'
,
'
css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
agent
=
{
var
agent
=
{
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
15
,
pageSize
:
15
,
...
@@ -262,6 +262,33 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
...
@@ -262,6 +262,33 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
}
}
})
})
},
},
//手机绑定
getPhoneBindingList
:
function
(
pageNo
)
{
agent
.
pageNo
=
pageNo
;
var
params
=
{};
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'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'phone_binding_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agentlist"
).
html
(
doTempl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
}
})
},
getRole
:
function
(
tempval
)
{
getRole
:
function
(
tempval
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getAuth2'
,
url
:
'/index/getAuth2'
,
...
...
public/resource/template/phoneBinding_template_tpl.html
0 → 100644
View file @
79fb0406
<script
id=
"phone_binding_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'created'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'visitor_name'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info review-images"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["scene_photo"] %]'
>
允许
<
/a
>
<
/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