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
053d22c2
Commit
053d22c2
authored
Jul 03, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人修改
parent
e100d526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
agent.js
public/resource/js/agent.js
+34
-0
No files found.
public/resource/js/agent.js
View file @
053d22c2
...
...
@@ -300,6 +300,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
var
temp
=
document
.
getElementById
(
'agent_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agentlist"
).
html
(
doTempl
(
data
.
data
.
list
));
agent
.
getEvaluationList
();
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
...
...
@@ -387,6 +388,39 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
}
}
});
},
getEvaluationList
:
function
(){
console
.
log
(
'经纪人列表加载完成'
);
console
.
log
(
$
(
'.number-evaluation'
).
attr
(
"data-id"
));
var
_data
=
{
};
// var _imgUploadLunbo = $('#agentlist').find(tr).find(td).eq(6); //详情页轮播图ul
console
.
log
(
_imgUploadLunbo
);
// var _xiangqingPicObj = _imgUploadLunbo.find('li>img');
// var _urlCut = location.origin + '/resource/lib/Attachments/images/';//要截取的部分url
$
.
each
(
_imgUploadLunbo
,
function
(
i
,
item
)
{
_data
[
'agents_id['
+
i
+
']'
]
=
item
.
attr
(
"data-id"
);
});
// console.log(_data);
$
.
ajax
({
url
:
'/index/agentEvaluateNumAndFraction'
,
type
:
'GET'
,
async
:
true
,
data
:
_data
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'[name=district_id]'
).
append
(
str
);
fn
&&
fn
();
}
}
});
}
};
return
agent
;
...
...
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