feat(index.ui): 功能卡片固定高度140px + 角色分级显示
- 所有卡片固定height:140px,布局整齐统一 - 客户(已登录用户): 可见真人认证、上传素材(2张) - 管理员(owner.superuser/reseller.operator): 可见全部6张卡片 额外: 素材组合管理、素材资产管理、供应商配置、机构映射管理 - 移除描述文字硬编码color:#666,跟随主题
This commit is contained in:
parent
a21eabbb11
commit
54184aedfe
@ -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 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user