From 54184aedfefb750770f177cac45b2d8bd4940fff Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 28 May 2026 22:02:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(index.ui):=20=E5=8A=9F=E8=83=BD=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=9B=BA=E5=AE=9A=E9=AB=98=E5=BA=A6140px=20+=20?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=88=86=E7=BA=A7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 所有卡片固定height:140px,布局整齐统一 - 客户(已登录用户): 可见真人认证、上传素材(2张) - 管理员(owner.superuser/reseller.operator): 可见全部6张卡片 额外: 素材组合管理、素材资产管理、供应商配置、机构映射管理 - 移除描述文字硬编码color:#666,跟随主题 --- wwwroot/index.ui | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 4c27ea3..a8655a4 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,3 +1,5 @@ +{% set roles = get_user_roles(get_user()) %} +{% set is_admin = 'owner.superuser' in roles or 'reseller.operator' in roles %} { "widgettype": "VBox", "options": { @@ -26,6 +28,7 @@ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -56,8 +59,7 @@ "widgettype": "Text", "options": { "text": "创建真人认证会话,获取H5认证链接", - "fontSize": "14px", - "color": "#666" + "fontSize": "14px" } } ] @@ -66,6 +68,7 @@ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -96,16 +99,17 @@ "widgettype": "Text", "options": { "text": "上传素材到供应商(支持URL/base64)", - "fontSize": "14px", - "color": "#666" + "fontSize": "14px" } } ] - }, - { + } +{% if is_admin %} + ,{ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -136,8 +140,7 @@ "widgettype": "Text", "options": { "text": "创建真人认证、管理素材组合(Asset Group)", - "fontSize": "14px", - "color": "#666" + "fontSize": "14px" } } ] @@ -146,6 +149,7 @@ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -176,8 +180,7 @@ "widgettype": "Text", "options": { "text": "上传/查看/同步真人人像素材(Asset)", - "fontSize": "14px", - "color": "#666" + "fontSize": "14px" } } ] @@ -186,6 +189,7 @@ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -215,9 +219,8 @@ { "widgettype": "Text", "options": { - "text": "管理供应商AK/SK和回调URL", - "fontSize": "14px", - "color": "#666" + "text": "管理供应商upappid和API映射", + "fontSize": "14px" } } ] @@ -226,6 +229,7 @@ "widgettype": "Button", "options": { "css": "card", + "height": "140px", "padding": "20px", "cursor": "pointer", "borderRadius": "8px", @@ -256,12 +260,12 @@ "widgettype": "Text", "options": { "text": "查看/管理机构和供应商组合的映射关系", - "fontSize": "14px", - "color": "#666" + "fontSize": "14px" } } ] } +{% endif %} ] }, { @@ -274,4 +278,4 @@ } } ] -} \ No newline at end of file +}