Authored by 于良

Merge branch 'local' into develop

... ... @@ -41,11 +41,11 @@ export default class SectionHeader extends React.Component {
<Image style={[styles.container, this.props.style]} source={{uri}} resizeMode={'cover'}>
<Text style={styles.desc}>{desc}</Text>
<View style={styles.stats}>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{post}</Text>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'帖子' + post}</Text>
<Text style={styles.content}>|</Text>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{comment}</Text>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'回复' + comment}</Text>
<Text style={styles.content}>|</Text>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{like}</Text>
<Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'赞' + like}</Text>
</View>
</Image>
... ...
... ... @@ -99,7 +99,7 @@ let styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
width,
height:containerHieght,
height: containerHieght,
},
avatarImage: {
... ...
... ... @@ -49,9 +49,10 @@ let InitialState = Record({
bgUploading: false,
bgUploadError: null,
setting: new (Record({
nickName: null,
signature: null,
isFetching: false,
error: null,
nickName: '',
signature: '',
success: false,
})),
});
... ...
... ... @@ -242,18 +242,21 @@ export default function user(state = initialState, action) {
}
case SETTING_SAVE_REQUEST:
return state.setIn(['setting', 'error'], null)
return state.setIn(['setting', 'isFetching'], true)
.setIn(['setting', 'error'], null)
.setIn(['setting','success'], false);
case SETTING_SAVE_SUCCESS: {
return state.setIn(['setting', 'error'], null)
return state.setIn(['setting', 'isFetching'], false)
.setIn(['setting', 'error'], null)
.setIn(['profile','nickName'], state.setting.nickName)
.setIn(['profile','sign'], state.setting.signature)
.setIn(['setting','success'], true);
}
case SETTING_SAVE_FAILURE:
return state.setIn(['setting', 'error'], action.payload)
return state.setIn(['setting', 'isFetching'], false)
.setIn(['setting', 'error'], action.payload)
.setIn(['setting','success'], false);
case SETTING_MODI_NICKNAME:
... ...