Commit 9fb3c716 authored by XieZhiXiong's avatar XieZhiXiong

fix: 添加%、修复图片显示不对的问题

parent 2bd8b10b
src/asserts/equity-1.png

6.71 KB | W: | H:

src/asserts/equity-1.png

5.74 KB | W: | H:

src/asserts/equity-1.png
src/asserts/equity-1.png
src/asserts/equity-1.png
src/asserts/equity-1.png
  • 2-up
  • Swipe
  • Onion skin
src/asserts/equity-2.png

6.06 KB | W: | H:

src/asserts/equity-2.png

6.71 KB | W: | H:

src/asserts/equity-2.png
src/asserts/equity-2.png
src/asserts/equity-2.png
src/asserts/equity-2.png
  • 2-up
  • Swipe
  • Onion skin
src/asserts/equity-3.png

5.74 KB | W: | H:

src/asserts/equity-3.png

6.06 KB | W: | H:

src/asserts/equity-3.png
src/asserts/equity-3.png
src/asserts/equity-3.png
src/asserts/equity-3.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -65,6 +65,12 @@ const equityTxtMap = {
3: '积分',
};
const clsMap = {
1: 'tofo-item-tag-price',
2: 'tofo-item-tag-recurrence',
3: 'tofo-item-tag-integral',
};
const EquityInfo: React.FC<EquityInfoProps> = ({
equityInfo = {},
fetchReceivedList,
......@@ -249,9 +255,9 @@ const EquityInfo: React.FC<EquityInfoProps> = ({
</div>
<div className={styles['tofo-item-extra']}>
<span
className={classNames(styles['tofo-item-tag'], styles['tofo-item-tag-price'])}
className={classNames(styles['tofo-item-tag'], styles[clsMap[item.rightTypeEnum]])}
>
{item.parameter} {equityTxtMap[item.rightTypeEnum] || ''}
{item.parameter}% {equityTxtMap[item.rightTypeEnum] || ''}
</span>
</div>
</li>
......
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