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 +}