fix: responsive UI with VScrollPanel, cfontsize, css:card

This commit is contained in:
yumoqing 2026-05-29 00:12:54 +08:00
parent 1a2e6c5ec6
commit 457ffceba4

View File

@ -4,8 +4,7 @@
"options": { "options": {
"width": "100%", "width": "100%",
"height": "100%", "height": "100%",
"padding": "0", "padding": "0"
"bgcolor": "#0B1120"
}, },
"subwidgets": [ "subwidgets": [
{ {
@ -19,9 +18,7 @@
{ {
"widgettype": "Title2", "widgettype": "Title2",
"options": { "options": {
"text": "平台业务", "text": "平台业务"
"color": "#F1F5F9",
"fontWeight": "700"
} }
}, },
{ {
@ -31,133 +28,137 @@
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "供应商与分销商管理", "text": "供应商与分销商管理",
"fontSize": "14px", "cfontsize": 1.2
"color": "#64748B"
} }
} }
] ]
}, },
{ {
"widgettype": "ResponsableBox", "widgettype": "VScrollPanel",
"options": { "options": {
"gap": "16px", "css": "filler"
"minWidth": "250px"
}, },
"subwidgets": [ "subwidgets": [
{% if 'reseller.operator' in roles %}
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "options": {
"bgcolor": "#1E293B", "spacing": 24
"padding": "24px",
"borderRadius": "12px",
"border": "1px solid #334155",
"cursor": "pointer"
}, },
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.platformbiz_content",
"options": {
"url": "{{entire_url('/platformbiz/provider')}}"
},
"mode": "replace"
}
],
"subwidgets": [ "subwidgets": [
{ {
"widgettype": "Svg", "widgettype": "ResponsableBox",
"options": { "options": {
"svg": "<svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#3B82F6\" stroke-width=\"1.5\"><path d=\"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21\"/></svg>", "gap": "16px",
"width": "36px", "minWidth": "250px"
"height": "36px", },
"marginBottom": "16px" "subwidgets": [
} {% if 'reseller.operator' in roles %}
}, {
{ "widgettype": "VBox",
"widgettype": "Title4", "options": {
"options": { "css": "card",
"text": "供应商管理", "padding": "24px",
"color": "#F1F5F9", "cursor": "pointer",
"fontWeight": "600", "cheight": 12,
"marginBottom": "8px" "cwidth": 23
} },
}, "binds": [
{ {
"widgettype": "Text", "wid": "self",
"options": { "event": "click",
"text": "管理AI模型供应商信息与API配置", "actiontype": "urlwidget",
"fontSize": "14px", "target": "app.platformbiz_content",
"color": "#94A3B8" "options": {
} "url": "{{entire_url('/platformbiz/provider')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Svg",
"options": {
"svg": "<svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#3B82F6\" stroke-width=\"1.5\"><path d=\"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21\"/></svg>",
"width": "36px",
"height": "36px",
"marginBottom": "16px"
}
},
{
"widgettype": "Title4",
"options": {
"text": "供应商管理",
"marginBottom": "8px"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理AI模型供应商信息与API配置",
"cfontsize": 1.2
}
}
]
},
{% endif %}
{% if 'reseller.sale' in roles %}
{
"widgettype": "VBox",
"options": {
"css": "card",
"padding": "24px",
"cursor": "pointer",
"cheight": 12,
"cwidth": 23
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.platformbiz_content",
"options": {
"url": "{{entire_url('/platformbiz/reseller')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Svg",
"options": {
"svg": "<svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#22C55E\" stroke-width=\"1.5\"><path d=\"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z\"/></svg>",
"width": "36px",
"height": "36px",
"marginBottom": "16px"
}
},
{
"widgettype": "Title4",
"options": {
"text": "分销商管理",
"marginBottom": "8px"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理分销商账户与渠道关系",
"cfontsize": 1.2
}
}
]
}
{% endif %}
]
} }
] ]
}, },
{% endif %}
{% if 'reseller.sale' in roles %}
{ {
"widgettype": "VBox", "widgettype": "VBox",
"options": { "id": "platformbiz_content"
"bgcolor": "#1E293B",
"padding": "24px",
"borderRadius": "12px",
"border": "1px solid #334155",
"cursor": "pointer"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.platformbiz_content",
"options": {
"url": "{{entire_url('/platformbiz/reseller')}}"
},
"mode": "replace"
}
],
"subwidgets": [
{
"widgettype": "Svg",
"options": {
"svg": "<svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#22C55E\" stroke-width=\"1.5\"><path d=\"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z\"/></svg>",
"width": "36px",
"height": "36px",
"marginBottom": "16px"
}
},
{
"widgettype": "Title4",
"options": {
"text": "分销商管理",
"color": "#F1F5F9",
"fontWeight": "600",
"marginBottom": "8px"
}
},
{
"widgettype": "Text",
"options": {
"text": "管理分销商账户与渠道关系",
"fontSize": "14px",
"color": "#94A3B8"
}
}
]
} }
{% endif %}
] ]
},
{
"widgettype": "VBox",
"id": "platformbiz_content",
"css": "filler",
"options": {
"width": "100%",
"overflowY": "auto"
}
} }
] ]
} }