Skip to content

Commit

Permalink
遗漏提交
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaco committed Oct 17, 2017
1 parent 35b216b commit 878378e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/scripts/actions/statsAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ export const HOME_RECEIVE_ACTIVITIES_C = 'HOME_RECEIVE_ACTIVITIES_C'
export const HOME_RECEIVE_ACTIVITIES_O = 'HOME_RECEIVE_ACTIVITIES_O'

function receiveStats(res) {
res.last.map((item,i) => {
item.x = item.d
item.y = item.n
})
res.aggregate.map((item,i) => {
item.x = item.d
item.y = item.n
const { last,aggregate } = res
const data = last.map((item,i) => {
return{
name:item.d + '日',
last:item.n,
aggregate:aggregate[i]['n']
}
})
return {
type: HOME_RECEIVE_STATS,
res
res,
data
}
}

Expand Down

0 comments on commit 878378e

Please sign in to comment.