Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
孙凯
8 years ago
Commit
384bfed448d2fd3629c8a5cf5a1710f1b994c358
1 parent
a5cead9d
整理代码 review by zhanglixia
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
js/outlet/components/outlet/Outlet.js
js/outlet/components/outlet/OutletPageListView.js
js/outlet/components/outlet/Outlet.js
View file @
384bfed
...
...
@@ -42,7 +42,7 @@ export default class Outlet extends Component {
<
OutletPageListView
tabLabel
=
{
name
}
key
=
{
'OutletPageListView'
+
i
}
resource
=
{
list
[
i
]
}
resource
=
{
item
}
getOutletHomeResource
=
{
this
.
props
.
getOutletHomeResource
}
getOutletActivityList
=
{
this
.
props
.
getOutletActivityList
}
onPressProduct
=
{
this
.
props
.
onPressProduct
}
...
...
js/outlet/components/outlet/OutletPageListView.js
View file @
384bfed
...
...
@@ -146,12 +146,13 @@ export default class OutletPageListView extends Component {
let
{
resource
,
tabLabel
,
}
=
this
.
props
;
if
(
!
resource
)
{
return
null
;
}
let
title
=
tabLabel
;
let
isFetching
=
resource
.
get
(
'isFetching'
)?
resource
.
get
(
'isFetching'
):
false
;
let
honeResource
=
resource
.
get
(
'honeResource'
);
let
activityList
=
resource
.
get
(
'activityList'
)?
resource
.
get
(
'activityList'
).
toArray
():
null
;
...
...
@@ -174,6 +175,18 @@ export default class OutletPageListView extends Component {
categoryNavigationList
:
productList
?
productList
.
toArray
():[],
};
if
(
title
==
'即将结束'
&&
activityListNum
==
0
)
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
/View
>
);
}
else
if
(
title
==
'即将开始'
&&
activityListNum
==
0
)
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
/View
>
);
}
return
(
<
View
style
=
{
styles
.
container
}
>
<
ListView
...
...
Please
register
or
login
to post a comment