...
|
...
|
@@ -156,10 +156,10 @@ export default function redBrandReducer(state=initialState, action) { |
|
|
}
|
|
|
case ADD_FAVORITE_SUCCESS: {
|
|
|
if (action.payload) {
|
|
|
return state.setIn(['shopIntro', 'is_addFav'], action.payload)
|
|
|
return state.setIn(['shopIntro', 'is_addFav'], true)
|
|
|
.setIn(['shopIntro', 'favoriteCount'],parseInt(state.shopIntro.favoriteCount) +1);
|
|
|
}else {
|
|
|
return state.setIn(['shopIntro', 'is_addFav'], action.payload);
|
|
|
return state.setIn(['shopIntro', 'is_addFav'], true);
|
|
|
}
|
|
|
}
|
|
|
case ADD_FAVORITE_FAILURE: {
|
...
|
...
|
|