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
08d588a1fd924fc7976dbce6051bee1f6e94936c
1 parent
89d8db95
修改 banner dot 背景UI review by hongmo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
js/classify/components/brand/BrandSwiper.js
js/classify/components/brand/IndexListView.js
js/classify/components/brand/BrandSwiper.js
View file @
08d588a
...
...
@@ -23,14 +23,13 @@ export default class BrandSwiper extends React.Component {
this
.
dot
=
<
View
style
=
{{
backgroundColor
:
'rgba(
0,0,0,.2
)'
,
backgroundColor
:
'rgba(
255,255,255,.5
)'
,
width
:
6
,
height
:
6
,
borderRadius
:
3
,
marginLeft
:
3
,
marginRight
:
3
,
marginTop
:
(
Platform
.
OS
===
'ios'
)?
3
:
1
,
marginBottom
:
0
,
marginTop
:
(
Platform
.
OS
===
'ios'
)?
0
:
1
,
}}
/>
;
this
.
activeDot
=
<
View
...
...
@@ -41,8 +40,7 @@ export default class BrandSwiper extends React.Component {
borderRadius
:
3
,
marginLeft
:
3
,
marginRight
:
3
,
marginTop
:
3
,
marginBottom
:
0
,
marginTop
:
0
,
}}
/>
;
}
...
...
@@ -92,11 +90,11 @@ export default class BrandSwiper extends React.Component {
loop
=
{
true
}
autoplay
=
{
true
}
autoplayTimeout
=
{
3
}
paginationStyle
=
{{
bottom
:
8
}}
dot
=
{
this
.
dot
}
activeDot
=
{(
Platform
.
OS
===
'ios'
)?
this
.
activeDot
:
null
}
width
=
{
width
}
height
=
{
height
-
15
}
paginationStyle
=
{{
backgroundColor
:
'rgba(0,0,0,0.2)'
,
bottom
:
10
,
height
:
10
,
width
:
list
.
length
*
12
,
borderRadius
:
5
,
marginLeft
:
(
width
-
list
.
length
*
12
)
/
2
}}
>
{
list
.
map
((
item
,
i
)
=>
{
return
(
...
...
@@ -131,5 +129,4 @@ let styles = StyleSheet.create({
banner
:
{
},
});
...
...
js/classify/components/brand/IndexListView.js
View file @
08d588a
...
...
@@ -38,7 +38,7 @@ export default class IndexListView extends React.Component {
}
render
()
{
let
{
dataSource
}
=
this
.
props
;
if
(
dataSource
.
length
==
0
)
{
return
null
;
...
...
@@ -81,10 +81,11 @@ let styles = StyleSheet.create({
text
:
{
justifyContent
:
'center'
,
textAlign
:
'center'
,
fontSize
:
1
0
,
fontSize
:
1
1
,
color
:
'black'
,
backgroundColor
:
'transparent'
,
marginTop
:
2
,
fontWeight
:
'bold'
,
},
image
:
{
width
:
8
,
...
...
Please
register
or
login
to post a comment