Commit f0e176f8 authored by zhangyuan's avatar zhangyuan

分享页

parent 070926f1
......@@ -99,15 +99,11 @@ class NewRecordPage extends React.Component {
}
{
tab === 2 && list.map((item, index) => {
const state = {
"-": { txt: "购买成功", color: "rgba(0,0,0,1)" },
"+": { txt: "赎回成功", color: "rgba(0,0,0,1)" }
}[item.changeType];
return <div className="item" key={index}>
<div className="title">{item.description}</div>
<div
className="date">{dateFormatter(item.gmtCreate, "yyyy.MM.dd hh:mm:ss")}</div>
<div className="num" style={{ color: (state || {}).color }}>{`${item.changeType}¥${item.buyAmount / 100}`}</div>
<div className="num" style={{ color: 'rgba(0,0,0,1)' }}>{`${item.changeType}¥${item.buyAmount / 100}`}</div>
</div>
})
}
......
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