wjx 3 veckor sedan
förälder
incheckning
6b45b61212
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      src/pages/weComTask/page/weChatApiLicense/seatDetails/index.tsx

+ 4 - 1
src/pages/weComTask/page/weChatApiLicense/seatDetails/index.tsx

@@ -7,6 +7,7 @@ import { getLicenseCodeListApi, GetLicenseCodeListProps } from "@/pages/weComTas
 import { copy } from '@/utils/utils';
 import ActiveCode from './activeCode';
 import TransferCode from './transferCode';
+import dayjs from 'dayjs';
 
 const typeEnum = {
     1: <Tag color="#f50">基础账号</Tag>,
@@ -171,7 +172,9 @@ const SeatDetails: React.FC = () => {
                     key: 'expireTime',
                     width: 155,
                     align: 'center',
-                    render: (text) => text || '--'
+                    render: (text) => {
+                        return <span style={dayjs(text).diff(dayjs(), 'day') < 7 ? { color: 'red' } : {}}>{text || '--'}</span>
+                    }
                 },
                 {
                     title: '数据更新时间',