File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,14 @@ import { connect } from 'react-redux'
76
76
// this.setState({ source: { uri: this.props.navigation.state.params.url } })
77
77
} )
78
78
}
79
+ isLogin = ( ) => {
80
+ let { login, navigation } = this . props
81
+ if ( login === '' ) {
82
+ navigation . navigate ( 'Mine' )
83
+ }
84
+ // console.log(this.props.lohi);
85
+
86
+ }
79
87
allDetail ( props ) {
80
88
let id = this . props . navigation . state . params . data . id
81
89
getDetail ( id ) . then ( ( res ) => {
@@ -131,9 +139,7 @@ import { connect } from 'react-redux'
131
139
</ View >
132
140
</ View >
133
141
< View style = { styles . share } >
134
- < TouchableOpacity onPress = { ( ) => {
135
- // this.onPress(data)
136
- } } >
142
+ < TouchableOpacity onPress = { this . isLogin } >
137
143
< Text style = { { color : '#009688' } } > 回复</ Text >
138
144
</ TouchableOpacity >
139
145
< TouchableOpacity >
Original file line number Diff line number Diff line change @@ -110,8 +110,9 @@ this.inputRefs = {
110
110
textAlignVertical : 'top' } }
111
111
multiline = { true } > </ TextInput >
112
112
</ View >
113
- < View style = { { marginTop : 10 } } >
114
- < TouchableOpacity style = { { backgroundColor : '#009688' , borderRadius : 4 } } >
113
+ < View style = { { marginTop : 10 , fontSize : 12 } } >
114
+ < TouchableOpacity style = { { backgroundColor : '#009688' ,
115
+ borderRadius : 4 } } >
115
116
{ /* <Image source={require('../../assets/time.png')}></Image> */ }
116
117
< Button
117
118
title = "发布话题"
You can’t perform that action at this time.
0 commit comments