diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 6f46e5b..3e77bf6 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -4,8 +4,7 @@ "options": { "width": "100%", "height": "100%", - "padding": "0", - "bgcolor": "#0B1120" + "padding": "0" }, "subwidgets": [ { @@ -19,9 +18,7 @@ { "widgettype": "Title2", "options": { - "text": "平台业务", - "color": "#F1F5F9", - "fontWeight": "700" + "text": "平台业务" } }, { @@ -31,133 +28,137 @@ "widgettype": "Text", "options": { "text": "供应商与分销商管理", - "fontSize": "14px", - "color": "#64748B" + "cfontsize": 1.2 } } ] }, { - "widgettype": "ResponsableBox", + "widgettype": "VScrollPanel", "options": { - "gap": "16px", - "minWidth": "250px" + "css": "filler" }, "subwidgets": [ -{% if 'reseller.operator' in roles %} { "widgettype": "VBox", "options": { - "bgcolor": "#1E293B", - "padding": "24px", - "borderRadius": "12px", - "border": "1px solid #334155", - "cursor": "pointer" + "spacing": 24 }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "urlwidget", - "target": "app.platformbiz_content", - "options": { - "url": "{{entire_url('/platformbiz/provider')}}" - }, - "mode": "replace" - } - ], "subwidgets": [ { - "widgettype": "Svg", + "widgettype": "ResponsableBox", "options": { - "svg": "", - "width": "36px", - "height": "36px", - "marginBottom": "16px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "供应商管理", - "color": "#F1F5F9", - "fontWeight": "600", - "marginBottom": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理AI模型供应商信息与API配置", - "fontSize": "14px", - "color": "#94A3B8" - } + "gap": "16px", + "minWidth": "250px" + }, + "subwidgets": [ +{% if 'reseller.operator' 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/provider')}}" + }, + "mode": "replace" + } + ], + "subwidgets": [ + { + "widgettype": "Svg", + "options": { + "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": "", + "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", - "options": { - "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": "", - "width": "36px", - "height": "36px", - "marginBottom": "16px" - } - }, - { - "widgettype": "Title4", - "options": { - "text": "分销商管理", - "color": "#F1F5F9", - "fontWeight": "600", - "marginBottom": "8px" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理分销商账户与渠道关系", - "fontSize": "14px", - "color": "#94A3B8" - } - } - ] + "id": "platformbiz_content" } -{% endif %} ] - }, - { - "widgettype": "VBox", - "id": "platformbiz_content", - "css": "filler", - "options": { - "width": "100%", - "overflowY": "auto" - } } ] }