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
9218e1adf9e66993eaad43a2a136400dbe1057a8
1 parent
c481b36b
修改 banner bug review by zhanglixia
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
js/classify/components/brand/BrandSwiper.js
js/classify/components/brand/BrandSwiper.js
View file @
9218e1a
...
...
@@ -69,16 +69,17 @@ export default class BrandSwiper extends React.Component {
}
if
(
list
.
length
==
1
)
{
return
(
<
View
style
=
{
styles
.
container
}
>
<
TouchableOpacity
activeOpacity
=
{
1
}
style
=
{{
width
:
width
,
height
:
height
-
15
}}
onPress
=
{()
=>
{
this
.
props
.
onPressSlideItem
&&
this
.
props
.
onPressSlideItem
(
data
[
0
].
url
);
this
.
props
.
onPressSlideItem
&&
this
.
props
.
onPressSlideItem
(
list
[
0
].
url
);
}}
>
<
SlicedImage
source
=
{{
uri
:
list
[
0
].
src
}}
style
=
{
width
,
height
-
15
}
/
>
<
SlicedImage
source
=
{{
uri
:
list
[
0
].
src
}}
style
=
{
{
width
,
height
}
}
/
>
<
/TouchableOpacity
>
<
/View
>
);
...
...
Please
register
or
login
to post a comment