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
61405616
Commit
61405616
authored
Jan 04, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页加业务消息
parent
42ea9009
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
53 deletions
+88
-53
performance_ranking.html
...n/index/view/performance_ranking/performance_ranking.html
+24
-51
performance_ranking.js
public/resource/js/performance_ranking.js
+64
-2
No files found.
application/index/view/performance_ranking/performance_ranking.html
View file @
61405616
...
...
@@ -243,59 +243,11 @@
<div
class=
"panel panel-default"
>
<div
class=
"area-title p-a-15"
style=
"padding-bottom:0rem;"
>
<span>
业务消息通知
</span>
<span
class=
"more"
><a>
更多>>
</a></span>
<span
class=
"more"
><a></a></span>
<div
style=
"width:100%;height:1px;background-color:#cccccc;margin-top:0.15rem;opacity: 0.3;"
></div>
</div>
<div
style=
"overflow:hidden ;padding:0.16rem 0rem 0.16rem;"
>
<div
class=
"content"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12 p-a-0"
>
<span
class=
"content-text"
>
【南京东路店周小雨】提交【南京东路2569990号】成交报告(1254)
</span>
</div>
<div
class=
"col-xs-12 p-a-0"
style=
"overflow:hidden ; margin-top:0.1rem;"
>
<div
class=
"content-time col-xs-6 p-a-0"
style=
"margin-top:0.15rem;"
>
2018/07/08
02:59
</div>
<div
class=
"col-xs-6 p-a-0"
>
<div
style=
"float:right"
>
<button
class=
"btn more-news-long"
style=
"float:left;"
>
已读关闭
</button>
<button
class=
"btn more-news business_more"
style=
"float:left;margin-left:0.1rem;"
>
详情
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"content"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12 p-a-0"
>
<span
class=
"content-text"
>
【南京东路店周小雨】提交【南京东路2569990号】成交报告(1254)
</span>
</div>
<div
class=
"col-xs-12 p-a-0"
style=
"overflow:hidden ; margin-top:0.1rem;"
>
<div
class=
"content-time col-xs-6 p-a-0"
style=
"margin-top:0.15rem;"
>
2018/07/08
02:59
</div>
<div
class=
"col-xs-6 p-a-0"
>
<div
style=
"float:right"
>
<button
class=
"btn more-news-long"
style=
"float:left;"
>
已读关闭
</button>
<button
class=
"btn more-news"
style=
"float:left;margin-left:0.1rem;"
>
详情
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"content"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12 p-a-0"
>
<span
class=
"content-text"
>
【南京东路店周小雨】提交【南京东路2569990号】成交报告(1254)
</span>
</div>
<div
class=
"col-xs-12 p-a-0"
style=
"overflow:hidden ; margin-top:0.1rem;"
>
<div
class=
"content-time col-xs-6 p-a-0"
style=
"margin-top:0.15rem;"
>
2018/07/08
02:59
</div>
<div
class=
"col-xs-6 p-a-0"
>
<div
style=
"float:right"
>
<button
class=
"btn more-news-long"
style=
"float:left;"
>
已读关闭
</button>
<button
class=
"btn more-news"
style=
"float:left;margin-left:0.1rem;"
>
详情
</button>
</div>
</div>
</div>
</div>
</div>
<div
style=
"overflow:hidden ;padding:0.16rem 0rem 0.16rem;height: 312px;"
id=
'business_news'
>
</div>
</div>
</div>
...
...
@@ -451,4 +403,24 @@
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/performance_ranking.js
View file @
61405616
...
...
@@ -20,6 +20,8 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
performanceRanking
.
loadBusinessSchool
();
performanceRanking
.
loadNotice
();
performanceRanking
.
loadWinerData
();
performanceRanking
.
businessNews
();
},
event
:
function
()
{
var
that
=
this
;
...
...
@@ -73,7 +75,19 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
}
}
});
$
(
document
).
on
(
'click'
,
'.read-down'
,
function
(){
//业务消息 渲染 点击已读
var
news_id
=
$
(
this
).
attr
(
"data-id"
);
console
.
log
(
news_id
);
performanceRanking
.
isRead
(
news_id
);
});
//点击时间轴
$
(
document
).
on
(
'click'
,
'.time-line'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
order_id
=
$
(
this
).
attr
(
"data-id"
);
console
.
log
(
order_id
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
order_id
);
});
$
(
document
).
on
(
'click'
,
'#initOder'
,
function
(){
performanceRanking
.
loadTableData
();
performanceRanking
.
loadTable2Data
();
...
...
@@ -142,7 +156,55 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
$
(
'#business_school'
).
append
(
tag
);
})
},
//首页获取 收款 退款列表
businessNews
:
function
(){
$
(
'#business_news'
).
html
(
''
);
var
that
=
$
.
performanceRanking
;
var
params
=
{
// 'pageNo' : 1,
// 'pageSize' : 4
}
$
.
get
(
'/index/getSystemMessageByUser'
,
params
,
function
(
data
){
var
tag
=
''
;
for
(
var
i
=
0
;
i
<
data
.
data
.
length
;
i
++
){
if
(
data
.
data
[
i
].
is_read
==
0
&&
(
data
.
data
[
i
].
type
==
6
||
data
.
data
[
i
].
type
==
9
)){
tag
+=
'<div class="content" style="overflow:hidden;">'
;
tag
+=
'<div class="col-xs-12">'
;
tag
+=
'<div class="col-xs-12 p-a-0">'
;
tag
+=
'<span class="content-text">'
+
data
.
data
[
i
].
message
+
'</span>'
;
tag
+=
'</div>'
;
tag
+=
'<div class="col-xs-12 p-a-0" style="overflow:hidden ; margin-top:0rem;">'
;
tag
+=
'<div class="content-time col-xs-6 p-a-0" style="margin-top:0.15rem;">'
+
data
.
data
[
i
].
create_time
+
'</div>'
;
tag
+=
'<div class="col-xs-6 p-a-0">'
;
tag
+=
'<div style="float:right">'
;
tag
+=
'<button data-id="'
+
data
.
data
[
i
].
id
+
'" class="btn more-news-long read-down" style="float:left;">已读关闭</button>'
;
tag
+=
'<button data-id="'
+
data
.
data
[
i
].
order_id
+
'" class="btn more-news time-line" href="#modal-time" data-toggle="modal" style="float:left;margin-left:0.1rem;">时间轴</button>'
;
tag
+=
'</div>'
;
tag
+=
'</div>'
;
tag
+=
'</div>'
;
tag
+=
'</div>'
;
tag
+=
'</div>'
;
}
}
if
(
tag
){
$
(
'#business_news'
).
append
(
tag
);
}
else
{
$
(
'#business_news'
).
append
(
'暂无业务消息'
);
}
})
},
// 点击业务消息 已读
isRead
:
function
(
n
){
var
that
=
$
.
performanceRanking
;
var
params
=
{
'read_ids'
:
n
,
}
$
.
post
(
'/index/updateSystemMessageIsRead'
,
params
,
function
(
data
){
performanceRanking
.
businessNews
();
})
},
loadBusinessById
:
function
(
id
)
{
$
.
get
(
'/index/getNewsInfo'
,
{
'id'
:
id
},
function
(
data
){
if
(
data
.
code
==
200
)
{
...
...
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