yumoqing 54184aedfe feat(index.ui): 功能卡片固定高度140px + 角色分级显示
- 所有卡片固定height:140px,布局整齐统一
- 客户(已登录用户): 可见真人认证、上传素材(2张)
- 管理员(owner.superuser/reseller.operator): 可见全部6张卡片
  额外: 素材组合管理、素材资产管理、供应商配置、机构映射管理
- 移除描述文字硬编码color:#666,跟随主题
2026-05-28 22:02:40 +08:00

282 lines
10 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% set roles = get_user_roles(get_user()) %}
{% set is_admin = 'owner.superuser' in roles or 'reseller.operator' in roles %}
{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"padding": "20px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "真人人像素材管理",
"fontSize": "24px",
"fontWeight": "bold",
"marginBottom": "20px"
}
},
{
"widgettype": "ResponsableBox",
"options": {
"gap": "16px",
"minWidth": "280px"
},
"subwidgets": [
{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('create_validate.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "🔐 真人认证",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "创建真人认证会话获取H5认证链接",
"fontSize": "14px"
}
}
]
},
{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('upload_asset.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "📤 上传素材",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "上传素材到供应商支持URL/base64",
"fontSize": "14px"
}
}
]
}
{% if is_admin %}
,{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('group_manage.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "📁 素材组合管理",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "创建真人认证、管理素材组合Asset Group",
"fontSize": "14px"
}
}
]
},
{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('asset_manage.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "🖼️ 素材资产管理",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "上传/查看/同步真人人像素材Asset",
"fontSize": "14px"
}
}
]
},
{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('vendor_config_manage.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "⚙️ 供应商配置",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理供应商upappid和API映射",
"fontSize": "14px"
}
}
]
},
{
"widgettype": "Button",
"options": {
"css": "card",
"height": "140px",
"padding": "20px",
"cursor": "pointer",
"borderRadius": "8px",
"border": "none"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.rl_content",
"options": {
"url": "{{entire_url('org_group_manage.ui')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "🔗 机构映射管理",
"fontSize": "18px",
"fontWeight": "bold"
}
},
{
"widgettype": "Text",
"options": {
"text": "查看/管理机构和供应商组合的映射关系",
"fontSize": "14px"
}
}
]
}
{% endif %}
]
},
{
"widgettype": "VBox",
"id": "rl_content",
"options": {
"width": "100%",
"flex": "1",
"marginTop": "20px"
}
}
]
}