Authored by 于良

Merge branch 'local' into develop

@@ -41,11 +41,11 @@ export default class SectionHeader extends React.Component { @@ -41,11 +41,11 @@ export default class SectionHeader extends React.Component {
41 <Image style={[styles.container, this.props.style]} source={{uri}} resizeMode={'cover'}> 41 <Image style={[styles.container, this.props.style]} source={{uri}} resizeMode={'cover'}>
42 <Text style={styles.desc}>{desc}</Text> 42 <Text style={styles.desc}>{desc}</Text>
43 <View style={styles.stats}> 43 <View style={styles.stats}>
44 - <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{post}</Text> 44 + <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'帖子' + post}</Text>
45 <Text style={styles.content}>|</Text> 45 <Text style={styles.content}>|</Text>
46 - <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{comment}</Text> 46 + <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'回复' + comment}</Text>
47 <Text style={styles.content}>|</Text> 47 <Text style={styles.content}>|</Text>
48 - <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{like}</Text> 48 + <Text style={[styles.content, {flex: 0.3}]} numberOfLines={1}>{'赞' + like}</Text>
49 </View> 49 </View>
50 50
51 </Image> 51 </Image>
@@ -99,7 +99,7 @@ let styles = StyleSheet.create({ @@ -99,7 +99,7 @@ let styles = StyleSheet.create({
99 justifyContent: 'center', 99 justifyContent: 'center',
100 alignItems: 'center', 100 alignItems: 'center',
101 width, 101 width,
102 - height:containerHieght, 102 + height: containerHieght,
103 }, 103 },
104 104
105 avatarImage: { 105 avatarImage: {
@@ -49,9 +49,10 @@ let InitialState = Record({ @@ -49,9 +49,10 @@ let InitialState = Record({
49 bgUploading: false, 49 bgUploading: false,
50 bgUploadError: null, 50 bgUploadError: null,
51 setting: new (Record({ 51 setting: new (Record({
52 - nickName: null,  
53 - signature: null, 52 + isFetching: false,
54 error: null, 53 error: null,
  54 + nickName: '',
  55 + signature: '',
55 success: false, 56 success: false,
56 })), 57 })),
57 }); 58 });
@@ -242,18 +242,21 @@ export default function user(state = initialState, action) { @@ -242,18 +242,21 @@ export default function user(state = initialState, action) {
242 } 242 }
243 243
244 case SETTING_SAVE_REQUEST: 244 case SETTING_SAVE_REQUEST:
245 - return state.setIn(['setting', 'error'], null) 245 + return state.setIn(['setting', 'isFetching'], true)
  246 + .setIn(['setting', 'error'], null)
246 .setIn(['setting','success'], false); 247 .setIn(['setting','success'], false);
247 248
248 case SETTING_SAVE_SUCCESS: { 249 case SETTING_SAVE_SUCCESS: {
249 - return state.setIn(['setting', 'error'], null) 250 + return state.setIn(['setting', 'isFetching'], false)
  251 + .setIn(['setting', 'error'], null)
250 .setIn(['profile','nickName'], state.setting.nickName) 252 .setIn(['profile','nickName'], state.setting.nickName)
251 .setIn(['profile','sign'], state.setting.signature) 253 .setIn(['profile','sign'], state.setting.signature)
252 .setIn(['setting','success'], true); 254 .setIn(['setting','success'], true);
253 } 255 }
254 256
255 case SETTING_SAVE_FAILURE: 257 case SETTING_SAVE_FAILURE:
256 - return state.setIn(['setting', 'error'], action.payload) 258 + return state.setIn(['setting', 'isFetching'], false)
  259 + .setIn(['setting', 'error'], action.payload)
257 .setIn(['setting','success'], false); 260 .setIn(['setting','success'], false);
258 261
259 case SETTING_MODI_NICKNAME: 262 case SETTING_MODI_NICKNAME: