| 123456789101112131415161718192021222324252627 |
- import { isAfterJuly28 } from './dateUtils';
- /**
- * 检查是否应该显示AgencyAccount
- * @returns {boolean} 如果应该显示返回true,否则返回false
- */
- export function shouldShowAgencyAccount() {
- return !isAfterJuly28();
- }
- /**
- * 获取AgencyAccount的显示文本
- * @param {Function} t - i18n翻译函数
- * @returns {string} 显示文本
- */
- export function getAgencyAccountText(t) {
- return shouldShowAgencyAccount() ? t('AccountType.AgencyAccount') : '--';
- }
- /**
- * 检查账户类型是否为AgencyAccount且应该隐藏
- * @param {number} accountType - 账户类型
- * @returns {boolean} 如果是AgencyAccount且应该隐藏返回true
- */
- export function isAgencyAccountAndShouldHide(accountType) {
- return accountType === 3 && isAfterJuly28();
- }
|