|
|
@@ -358,8 +358,8 @@ export default function ExamCard() {
|
|
|
{[...answerRecords].reverse().map((record: AnswerRecord) => (
|
|
|
<div key={record.date} className="grid grid-cols-6 gap-4 py-2 text-sm text-gray-800 hover:bg-gray-50">
|
|
|
<div>{record.index}</div>
|
|
|
- <div className="text-red-500">{record.holdingStock}</div>
|
|
|
- <div className="text-green-500">{record.holdingCash}</div>
|
|
|
+ <div className="text-red-500">{record.holdingStock === '1' ? '买入' : ''}</div>
|
|
|
+ <div className="text-green-500">{record.holdingCash === '1' ? '卖出' : ''}</div>
|
|
|
<div>{record.price}</div>
|
|
|
<div className={record.profitAmount >= 0 ? 'text-red-500' : 'text-green-500'}>
|
|
|
{record.profitAmount.toFixed(2)}
|