Forked from carriez's Pen BNpxrm.
A Pen by Captain Anonymous on CodePen.
/** | |
* 走势图彩种结构 | |
*/ | |
const lottery = { | |
fields: [ | |
{ | |
key: 'number', | |
name: '期号', | |
}, |
const mockTrend = R.repeat(1, 200).map((key, index) => ({ | |
dateTime: moment().subtract(index, 'days').format('YYYY-MM-DD'), //时间 | |
ROI: index * 10, // 投资回报率 | |
profits: index * Math.random() * 1000, // 浮动盈亏 | |
assets: index * Math.random() * 10000 // 总资产 | |
})) | |
// 代码中会兼容本地 service mock 以及部署站点的静态数据 | |
const proxy = { | |
'/mock/dashboard': (req, res) => { | |
res.send({ |
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: { |
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>非常感谢您对Hotnode产品的关注与支持。</title> | |
<style> | |
/* ------------------------------------- | |
GLOBAL RESETS | |
------------------------------------- */ |