Toggle navigation
Toggle navigation
This project
Loading...
Sign in
罗广聪
/
ProtectGod
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
罗广聪
2017-09-05 11:18:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
48d5c172186b921d34799118d0e097660cc09f90
48d5c172
1 parent
802ab6aa
首页布局
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
src/pages/Home/index.js
src/pages/Home/index.js
View file @
48d5c17
...
...
@@ -13,10 +13,13 @@ export default class Main extends Component {
<
View
style
=
{
styles
.
container
}
>
<
Carousel
/>
{
/* <Text style={styles.welcome}>首页</Text> */
}
<
TouchableOpacity
onPress
=
{()
=>
{
this
.
props
.
navigator
.
push
()}}
style
=
{
styles
.
M
idContainer
}
>
<
TouchableOpacity
onPress
=
{()
=>
{
this
.
props
.
navigator
.
push
()}}
style
=
{
styles
.
m
idContainer
}
>
<
Image
source
=
{
require
(
'../../assets/首页的副本/pic.png'
)}
style
=
{{
width
:
72
,
height
:
18
}}
/
>
<
Text
style
=
{
styles
.
M
idText
}
>
平安保险
2017
版
<
/Text
>
<
Text
style
=
{
styles
.
m
idText
}
>
平安保险
2017
版
<
/Text
>
<
/TouchableOpacity
>
<
View
style
=
{
styles
.
textContainer
}
>
<
Text
>
保险头条
<
/Text
>
<
/View
>
<
/View
>
);
}
...
...
@@ -30,21 +33,32 @@ const styles = StyleSheet.create({
flex
:
1
,
paddingTop
:
64
,
justifyContent
:
"flex-start"
,
alignItems
:
"
center
"
,
alignItems
:
"
stretch
"
,
backgroundColor
:
"#EFEFEF"
},
M
idContainer
:
{
m
idContainer
:
{
height
:
45
,
width
:
375
,
// width: 200,
// alignSelf: 'center',
backgroundColor
:
'#fff'
,
alignItems
:
"center"
,
flexDirection
:
'row'
,
paddingLeft
:
13
},
M
idText
:
{
m
idText
:
{
fontSize
:
15
,
paddingLeft
:
9
,
// fontFamily: PingFang-SC-Medium,
color
:
'#202020'
},
textContainer
:
{
backgroundColor
:
'#fff'
,
marginTop
:
10
,
height
:
45
,
justifyContent
:
"center"
,
paddingLeft
:
13
,
fontSize
:
15
,
color
:
"#202020"
,
}
});
...
...
Please
register
or
login
to post a comment