Commit 9c34a72a authored by haiyoucuv's avatar haiyoucuv

init

parent 41258f3b
...@@ -13,6 +13,8 @@ export default [ ...@@ -13,6 +13,8 @@ export default [
amount: Math.random() * 100000 >> 0, amount: Math.random() * 100000 >> 0,
profit: Math.random() * 10000000 >> 0, profit: Math.random() * 10000000 >> 0,
cycle: "12312312cyclecycle", cycle: "12312312cyclecycle",
cycleStartTime: Date.now() - 9999999,
cycleEndTime: Date.now() + 9999999,
remainDrawTime: Math.random() * 3 >> 0, remainDrawTime: Math.random() * 3 >> 0,
prizeInfo: new Array(6).fill(1).map((_, i) => { prizeInfo: new Array(6).fill(1).map((_, i) => {
return { return {
......
...@@ -39,7 +39,7 @@ class ResPage extends React.Component<any, any> { ...@@ -39,7 +39,7 @@ class ResPage extends React.Component<any, any> {
render() { render() {
const { tab } = this.state; const { tab } = this.state;
const { prizeList, info } = resStore; const { prizeList, info } = resStore;
const { titleImg, interval, cycle, profit, remainDrawTime, prizeInfo, amount } = info; const { titleImg, interval, cycleEndTime, cycleStartTime, profit, remainDrawTime, prizeInfo, amount } = info;
const tabCls = classNames(styles.tab, { const tabCls = classNames(styles.tab, {
[styles.tab1]: tab === 1, [styles.tab1]: tab === 1,
...@@ -60,7 +60,7 @@ class ResPage extends React.Component<any, any> { ...@@ -60,7 +60,7 @@ class ResPage extends React.Component<any, any> {
累计收益<span>{profit/100}</span> 累计收益<span>{profit/100}</span>
</div> </div>
<div className={classNames(styles.rankTip, styles.rank4)}> <div className={classNames(styles.rankTip, styles.rank4)}>
理财周期<span>{cycle}</span> 理财周期<span>{dateFormatter(cycleStartTime, `yyyy-MM-dd`)}-{dateFormatter(cycleEndTime, `yyyy-MM-dd`)}</span>
</div> </div>
</div> </div>
<div className={tabCls}> <div className={tabCls}>
......
...@@ -16,6 +16,8 @@ class ResStore { ...@@ -16,6 +16,8 @@ class ResStore {
cycle: "", cycle: "",
remainDrawTime: 0, remainDrawTime: 0,
prizeInfo: [], prizeInfo: [],
cycleStartTime: 0,
cycleEndTime: 0,
}; };
prizeList = []; prizeList = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment