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-27 15:00:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1a09c4a36b06681f03ea5fa2d2e263d9b7448753
1a09c4a3
1 parent
fcd0b89f
智能方案 未判断用户
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
7 deletions
src/pages/Home/AISolution/Solution.js
src/pages/Home/AISolution/Solution.js
View file @
1a09c4a
...
...
@@ -10,7 +10,7 @@ import {
ListView
,
Dimensions
}
from
"react-native"
;
import
{
StackNavigator
,
TabNavigator
}
from
"react-navigation"
;
import
{
StackNavigator
,
TabNavigator
,
NavigationActions
}
from
"react-navigation"
;
import
{
Col
,
Row
,
Grid
}
from
"react-native-easy-grid"
;
export
default
class
Home
extends
Component
{
...
...
@@ -42,7 +42,7 @@ export default class Home extends Component {
eachyear
:
"150元"
}
],
count
:
"1200"
,
count
:
"1200"
}
};
}
...
...
@@ -78,8 +78,19 @@ export default class Home extends Component {
});
}
submit
()
{
this
.
props
.
navigation
.
dispatch
(
NavigationActions
.
reset
({
index
:
0
,
actions
:
[
NavigationActions
.
navigate
({
routeName
:
"MainTabBar"
})
]
}))
}
render
()
{
console
.
log
(
"solution"
,
this
.
props
.
navigation
.
state
.
params
.
answerList
);
console
.
log
(
"solution"
,
this
.
props
.
navigation
);
const
{
navigate
}
=
this
.
props
.
navigation
;
const
{
gridData
}
=
this
.
state
;
return
(
...
...
@@ -190,12 +201,22 @@ export default class Home extends Component {
<
/Grid
>
<
/ScrollView
>
<
View
style
=
{
styles
.
tipsContainer
}
>
<
Image
style
=
{{
width
:
16
,
height
:
16
}}
source
=
{
require
(
"../../../assets/home/ic_notice.png"
)}
/
>
<
Image
style
=
{{
width
:
16
,
height
:
16
}}
source
=
{
require
(
"../../../assets/home/ic_notice.png"
)}
/
>
<
Text
style
=
{
styles
.
tipsText
}
>
保险配置预算仅供参考,实际缴费金额与投保时内容有关。
<
/Text
>
<
/View
>
<
/View
>
<
TouchableOpacity
onPress
=
{()
=>
{
this
.
submit
();
}}
style
=
{
styles
.
confirmBtn
}
>
<
Text
style
=
{
styles
.
confirmBtnText
}
>
完成
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
);
}
...
...
@@ -328,12 +349,25 @@ const styles = StyleSheet.create({
flexDirection
:
"row"
,
alignItems
:
"center"
,
marginHorizontal
:
24
,
marginBottom
:
10
,
marginBottom
:
10
},
tipsText
:
{
fontSize
:
12
,
color
:
"#7A7A7A"
,
lineHeight
:
17
,
marginLeft
:
5
,
marginLeft
:
5
},
confirmBtn
:
{
marginVertical
:
20
,
marginHorizontal
:
40
,
justifyContent
:
"center"
,
alignItems
:
"center"
,
backgroundColor
:
"#1B9341"
,
height
:
45
,
borderRadius
:
5
},
confirmBtnText
:
{
fontSize
:
16
,
color
:
"white"
},
});
...
...
Please
register
or
login
to post a comment