...
|
...
|
@@ -75,9 +75,11 @@ export default function userReducer(state = initialState, action) { |
|
|
case HOME_BRABDRANK_SUCCESS: {
|
|
|
let rankChange = action.payload.rankChange || 0;
|
|
|
let rise = Math.abs(rankChange) == rankChange ? true : false;
|
|
|
let rankHasTrend = action.payload.rankLevelFlag;
|
|
|
let nextState = state.set('isFetching', false)
|
|
|
.set('error', null)
|
|
|
.setIn(['overview', 'rank'], action.payload.rankNow || 0)
|
|
|
.setIn(['overview', 'rankHasTrend'], rankHasTrend)
|
|
|
.setIn(['overview', 'rise'], rise)
|
|
|
.setIn(['overview', 'riseCount'], Math.abs(rankChange))
|
|
|
return nextState;
|
...
|
...
|
|