From 86bd282be86558930ccc3ac71cb2d073b7093b00 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 8 Sep 2026 15:13:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20mine.ui=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=A1=A5bgcolor:transparent=E2=80=94=E2=80=94=E6=9C=AA?= =?UTF-8?q?=E8=AE=BEbgcolor=E6=97=B6=E6=B5=8F=E8=A7=88=E5=99=A8UA=E9=BB=98?= =?UTF-8?q?=E8=AE=A4button=E6=B5=85=E7=81=B0=E5=BA=95(rgb=20239,239,239)?= =?UTF-8?q?=E5=9C=A8=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98=E4=B8=8B=E6=88=90?= =?UTF-8?q?=E6=B5=85=E8=89=B2=E5=9D=97(=E5=AE=9E=E6=B5=8B=E6=A0=B9?= =?UTF-8?q?=E5=9B=A0);=E6=A1=8C=E9=9D=A2=E6=97=A2=E6=9C=89=E7=BA=A6?= =?UTF-8?q?=E5=AE=9A=E5=8D=B3=E6=98=BE=E5=BC=8Ftransparent(2026-09-08?= =?UTF-8?q?=E6=9A=97=E4=BA=AE=E5=8F=8C=E9=A3=8E=E6=A0=BC=E6=A0=B8=E6=9F=A5?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/mine.ui | 277 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 225 insertions(+), 52 deletions(-) diff --git a/wwwroot/mine.ui b/wwwroot/mine.ui index 09b271f..bdc1b8a 100644 --- a/wwwroot/mine.ui +++ b/wwwroot/mine.ui @@ -1,82 +1,255 @@ { "widgettype": "VBox", - "options": {"css": "filler", "width": "100%", "height": "100%", "padding": "0", "gap": "0px"}, + "options": { + "css": "filler", + "width": "100%", + "height": "100%", + "padding": "0", + "gap": "0px" + }, "subwidgets": [ { "widgettype": "VScrollPanel", - "options": {"css": "filler", "width": "100%", "height": "100%", "padding": "12px", "gap": "10px"}, + "options": { + "css": "filler", + "width": "100%", + "height": "100%", + "padding": "12px", + "gap": "10px" + }, "subwidgets": [ { "widgettype": "VBox", - "options": {"width": "100%", "bgcolor": "#1e293b", "borderRadius": "14px", "padding": "16px", "gap": "4px"}, - "subwidgets": [ - {"widgettype": "Title3", "options": {"text": "{{get_username()}}", "color": "#ffffff"}}, - {"widgettype": "Text", "options": {"text": "欢迎使用产线平台", "cfontsize": 0.8, "color": "#94a3b8"}} - ] - }, - { - "widgettype": "VBox", - "id": "mine_group_account", - "options": {"width": "100%", "css": "card", "borderRadius": "12px", "padding": "4px 0", "gap": "0px"}, + "options": { + "width": "100%", + "bgcolor": "#1e293b", + "borderRadius": "14px", + "padding": "16px", + "gap": "4px" + }, "subwidgets": [ { - "widgettype": "Button", - "options": {"label": "💳 我的权益", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "我的权益"}, - "options": {"url": "/product_management/storefront/api/my_subscriptions.dspy"}}] + "widgettype": "Title3", + "options": { + "text": "{{get_username()}}", + "color": "#ffffff" + } }, { - "widgettype": "Button", - "options": {"label": "🏦 我的账户", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "我的账户"}, - "options": {"url": "/accounting/myaccounts.ui"}}] - }, - { - "widgettype": "Button", - "options": {"label": "💰 充值", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "充值"}, - "options": {"url": "/unipay/recharge.ui"}}] - }, - { - "widgettype": "Button", - "options": {"label": "🛒 产品商城", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "产品商城"}, - "options": {"url": "/product_management/storefront/index.ui"}}] - }, - { - "widgettype": "Button", - "options": {"label": "🔑 API Key", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "API Key"}, - "options": {"url": "/dapi/apikey_manage.ui"}}] + "widgettype": "Text", + "options": { + "text": "欢迎使用产线平台", + "cfontsize": 0.8, + "color": "#94a3b8" + } } ] }, { "widgettype": "VBox", - "options": {"width": "100%", "css": "card", "borderRadius": "12px", "padding": "4px 0", "gap": "0px"}, + "id": "mine_group_account", + "options": { + "width": "100%", + "css": "card", + "borderRadius": "12px", + "padding": "4px 0", + "gap": "0px" + }, + "subwidgets": [ + { + "widgettype": "Button", + "options": { + "label": "💳 我的权益", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "我的权益" + }, + "options": { + "url": "/product_management/storefront/api/my_subscriptions.dspy" + } + } + ] + }, + { + "widgettype": "Button", + "options": { + "label": "🏦 我的账户", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "我的账户" + }, + "options": { + "url": "/accounting/myaccounts.ui" + } + } + ] + }, + { + "widgettype": "Button", + "options": { + "label": "💰 充值", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "充值" + }, + "options": { + "url": "/unipay/recharge.ui" + } + } + ] + }, + { + "widgettype": "Button", + "options": { + "label": "🛒 产品商城", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "产品商城" + }, + "options": { + "url": "/product_management/storefront/index.ui" + } + } + ] + }, + { + "widgettype": "Button", + "options": { + "label": "🔑 API Key", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "API Key" + }, + "options": { + "url": "/dapi/apikey_manage.ui" + } + } + ] + } + ] + }, + { + "widgettype": "VBox", + "options": { + "width": "100%", + "css": "card", + "borderRadius": "12px", + "padding": "4px 0", + "gap": "0px" + }, "subwidgets": [ { "widgettype": "Button", "id": "mine_theme_btn", - "options": {"label": "🌙 深色模式", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "script", "target": "self", - "script": "var h=document.documentElement;var t=h.getAttribute('data-theme')||'light';var n=t=='light'?'dark':'light';h.setAttribute('data-theme',n);try{localStorage.setItem('pipeline_ui_theme',n);}catch(e){}if(window.applyPipelineTheme){window.applyPipelineTheme(n);}this.opts.label=(n=='dark'?'☀️ 浅色模式':'🌙 深色模式');if(this.text_w){this.text_w.set_text(this.opts.label);}"}] + "options": { + "label": "🌙 深色模式", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "script", + "target": "self", + "script": "var h=document.documentElement;var t=h.getAttribute('data-theme')||'light';var n=t=='light'?'dark':'light';h.setAttribute('data-theme',n);try{localStorage.setItem('pipeline_ui_theme',n);}catch(e){}if(window.applyPipelineTheme){window.applyPipelineTheme(n);}this.opts.label=(n=='dark'?'☀️ 浅色模式':'🌙 深色模式');if(this.text_w){this.text_w.set_text(this.opts.label);}" + } + ] }, { "widgettype": "Button", - "options": {"label": "🚪 退出登录", "css": "text", "width": "100%", "halign": "left", "padding": "14px 16px", "orientation": "horizontal", "color": "#ef4444"}, - "binds": [{"wid": "self", "event": "click", "actiontype": "urlwidget", "target": "PopupWindow", - "popup_options": {"title": "退出登录"}, - "options": {"url": "/rbac/user/logout.dspy"}}] + "options": { + "label": "🚪 退出登录", + "css": "text", + "width": "100%", + "halign": "left", + "padding": "14px 16px", + "orientation": "horizontal", + "color": "#ef4444", + "bgcolor": "transparent" + }, + "binds": [ + { + "wid": "self", + "event": "click", + "actiontype": "urlwidget", + "target": "PopupWindow", + "popup_options": { + "title": "退出登录" + }, + "options": { + "url": "/rbac/user/logout.dspy" + } + } + ] } ] } ] } ] -} +} \ No newline at end of file