登录显示
This commit is contained in:
1 parent
7d5db6a867
commit
fcb536a6fe
3 files changed
+16
-1
No files matched your search
@@ -11,6 +11,8 @@ interface UserRow {
|
||||
nickname: string | null;
|
||||
headicon_id: number;
|
||||
status: number;
|
||||
/** 1 = 用户主动使用过登录功能(静默登录不算) */
|
||||
is_login: number;
|
||||
registered_at: string;
|
||||
last_login_at: string | null;
|
||||
entitlement_count: number;
|
||||
@@ -155,6 +157,9 @@ export default function UsersPage() {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<h1 className="text-lg font-semibold text-gray-900">用户</h1>
|
||||
<p className="text-sm text-gray-500">
|
||||
「主动登录」指用户自己点过登录(下单的前置条件),跟打开小程序时的静默登录无关,也跟有没有昵称无关。
|
||||
</p>
|
||||
<Notice message={error} />
|
||||
|
||||
<Card
|
||||
@@ -220,6 +225,7 @@ export default function UsersPage() {
|
||||
<th className="px-2 py-2">openid</th>
|
||||
<th className="px-2 py-2">已购课程</th>
|
||||
<th className="px-2 py-2">状态</th>
|
||||
<th className="px-2 py-2">主动登录</th>
|
||||
<th className="px-2 py-2">最后登录</th>
|
||||
<th className="px-2 py-2 text-right">操作</th>
|
||||
</tr>
|
||||
@@ -234,6 +240,13 @@ export default function UsersPage() {
|
||||
<td className="px-2 py-2">
|
||||
{u.status === 1 ? <span className="text-green-600">正常</span> : <span className="text-red-600">封禁</span>}
|
||||
</td>
|
||||
<td className="px-2 py-2">
|
||||
{u.is_login === 1 ? (
|
||||
<span className="text-green-600">已登录</span>
|
||||
) : (
|
||||
<span className="text-gray-400">未登录</span>
|
||||
)}
|
||||
</td>
|
||||
<td className="px-2 py-2 text-gray-500">
|
||||
{formatDateTime(u.last_login_at)}
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user