+ {/* 显示工单描述作为第一条用户消息 */}
+ {ticket?.description && (
+
+
+
{formatDate(ticket.created_at)}
+
+ {ticket.description}
+
+
+
+ )}
+
+ {/* 显示后续跟进消息 */}
{ticket?.follow?.map((item) => (
{t('subscriptionInfo')}
@@ -69,42 +77,59 @@ export function UserSubscribeDetail({ id, enabled }: { id: number; enabled: bool
-
-
- {t('userInfo')}
- {/* Removed link to legacy user detail page */}
-
-
- -
- {t('userId')}
- {data?.user_id}
-
- -
- {t('balance')}
-
-
-
-
- -
- {t('giftAmount')}
-
-
-
-
- -
- {t('commission')}
-
-
-
-
- -
- {t('createdAt')}
- {data?.user?.created_at && formatDate(data?.user?.created_at)}
-
-
-
+ {!hoverCard && (
+
+
+ {t('userInfo')}
+ {/* Removed link to legacy user detail page */}
+
+
+ -
+ {t('userId')}
+ {data?.user_id}
+
+ -
+ {t('balance')}
+
+
+
+
+ -
+ {t('giftAmount')}
+
+
+
+
+ -
+ {t('commission')}
+
+
+
+
+ -
+ {t('createdAt')}
+ {data?.user?.created_at && formatDate(data?.user?.created_at)}
+
+
+
+ )}
);
+
+ if (hoverCard) {
+ return (
+