Created
May 15, 2018 08:39
-
-
Save fengliu222/e1be9eb11aaa20fd3960f171c8470955 to your computer and use it in GitHub Desktop.
项目收益
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mockProjectTrend = R.reverse()(R.repeat(1, 200).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
price: { | |
CNY: 1.239928076 * index, | |
USD: 0.195644770 * index, | |
BTC: 0.000023000 * index, | |
ETH: 0.000274619 * index, | |
EOS: 0.014086445 * index | |
}, // 投资回报率 | |
vol: { | |
CNY: 1.239928076 * index, | |
USD: 0.195644770 * index, | |
BTC: 0.000023000 * index, | |
ETH: 0.000274619 * index, | |
EOS: 0.014086445 * index | |
}, | |
}))) | |
'/mock/projects/:id/quotation': (req, res) => { | |
res.send({ | |
price: { | |
CNY: 1.239928076, | |
USD: 0.195644770, | |
BTC: 0.000023000, | |
ETH: 0.000274619, | |
EOS: 0.014086445 | |
}, | |
cost: { | |
CNY: 0.087338788, | |
USD: 0.013780942, | |
BTC: 0.000001625, | |
ETH: 0.000017692, | |
EOS: 0.000995352 | |
}, | |
degree: 3.92, | |
vol: { | |
CNY: 72736843, | |
USD: 0.183713273, | |
BTC: 0.004872732, | |
ETH: 0.087127361, | |
EOS: 0.322382717 | |
}, | |
high: { | |
CNY: 1.024723, | |
USD: 0.183713273, | |
BTC: 0.004872732, | |
ETH: 0.087127361, | |
EOS: 0.322382717 | |
}, | |
investHistory:{ | |
CNY: 4927372, | |
USD: 867238, | |
BTC: 7363, | |
ETH: 450, | |
EOS: 651231 | |
}, | |
high: { | |
CNY: 1.024723, | |
USD: 0.183713273, | |
BTC: 0.004872732, | |
ETH: 0.087127361, | |
EOS: 0.322382717 | |
}, | |
trend: mockProjectTrend, | |
ROI: { | |
CNY: { | |
count: 1420, | |
trend: R.reverse()(R.repeat(1, 50).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
roi: index * 10, | |
}))) | |
}, | |
USD: { | |
count: 1420, | |
trend: R.reverse()(R.repeat(1, 50).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
roi: index * 10, | |
}))) | |
}, | |
BTC: { | |
count: 1420, | |
trend: R.reverse()(R.repeat(1, 50).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
roi: index * 10, | |
}))) | |
}, | |
ETH: { | |
count: 1420, | |
trend: R.reverse()(R.repeat(1, 50).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
roi: index * 10, | |
}))) | |
}, | |
EOS: { | |
count: 1420, | |
trend: R.reverse()(R.repeat(1, 50).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
roi: index * 10, | |
}))) | |
} | |
}, | |
investment: { | |
profits: { | |
CNY: 27992499.18, | |
USD: 4416857.85, | |
BTC: 525.076835162, | |
ETH: 6437.130116039, | |
EOS: 330392.3480475 | |
}, | |
assets: { | |
CNY: 30290439.34, | |
USD: 4779443.38, | |
BTC: 566.411585162, | |
ETH: 6887.130116039, | |
EOS: 355622.7531204 | |
}, | |
cost: { | |
CNY: 30290439.34, | |
USD: 4779443.38, | |
BTC: 566.411585162, | |
ETH: 6887.130116039, | |
EOS: 355622.7531204 | |
} | |
} | |
}) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
trend 那里,要改成