|
|
|
@@ -2,6 +2,7 @@ import { PointsStatistics } from '@/pages/Points/index'; |
|
|
|
import { getPointsStatisticsReq } from '@/services/points'; |
|
|
|
import { to } from '@/utils/promise'; |
|
|
|
import { useNavigate } from '@umijs/max'; |
|
|
|
import { Typography } from 'antd'; |
|
|
|
import { useEffect, useState } from 'react'; |
|
|
|
import styles from './index.less'; |
|
|
|
|
|
|
|
@@ -23,8 +24,13 @@ function UserPoints() { |
|
|
|
|
|
|
|
return ( |
|
|
|
<div className={styles['user-points']}> |
|
|
|
<span className={styles['user-points__label']}>当前可用算力积分</span> |
|
|
|
<span className={styles['user-points__value']}>{statistics?.userCredit ?? '--'}</span> |
|
|
|
<div className={styles['user-points__label']}>当前可用算力积分</div> |
|
|
|
<Typography.Paragraph |
|
|
|
className={styles['user-points__value']} |
|
|
|
ellipsis={{ tooltip: statistics?.userCredit ?? '--' }} |
|
|
|
> |
|
|
|
{statistics?.userCredit ?? '--'} |
|
|
|
</Typography.Paragraph> |
|
|
|
<div |
|
|
|
className={styles['user-points__button']} |
|
|
|
onClick={() => { |
|
|
|
|