diff --git a/web/src/components/topup/modals/SubscriptionPurchaseModal.jsx b/web/src/components/topup/modals/SubscriptionPurchaseModal.jsx index c914c7e77..a497b7247 100644 --- a/web/src/components/topup/modals/SubscriptionPurchaseModal.jsx +++ b/web/src/components/topup/modals/SubscriptionPurchaseModal.jsx @@ -26,10 +26,12 @@ import { Button, Select, Divider, + Tooltip, } from '@douyinfe/semi-ui'; import { Crown, CalendarClock, Package } from 'lucide-react'; import { SiStripe } from 'react-icons/si'; import { IconCreditCard } from '@douyinfe/semi-icons'; +import { renderQuota } from '../../../helpers'; import { getCurrencyConfig } from '../../../helpers/render'; const { Text } = Typography; @@ -145,25 +147,45 @@ const SubscriptionPurchaseModal = ({ -
- - {t('重置周期')}: - - - {formatResetPeriod(plan, t)} - -
+ {formatResetPeriod(plan, t) !== t('不重置') && ( +
+ + {t('重置周期')}: + + + {formatResetPeriod(plan, t)} + +
+ )}
{t('总额度')}:
- - {totalAmount > 0 ? totalAmount : t('不限')} - + {totalAmount > 0 ? ( + + + {renderQuota(totalAmount)} + + + ) : ( + + {t('不限')} + + )}
+ {plan?.upgrade_group ? ( +
+ + {t('升级分组')}: + + + {plan.upgrade_group} + +
+ ) : null}