From a38e6d91412b6caabb7c01cebb91408e7bf14d29 Mon Sep 17 00:00:00 2001 From: ymq Date: Tue, 8 Sep 2026 14:28:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(mobile):=20my=5Ftodos=5Fpopup=E5=8A=A0embe?= =?UTF-8?q?d=3D1=E6=95=B4=E9=A1=B5=E6=B8=B2=E6=9F=93=E5=88=86=E6=94=AF?= =?UTF-8?q?=E2=80=94=E2=80=94=E6=89=8B=E6=9C=BA=E7=AB=AF=E5=BE=85=E5=8A=9E?= =?UTF-8?q?Tab=E7=9B=B4=E6=8E=A5=E6=95=B4=E9=A1=B5VBox(=E4=B8=8D=E5=A5=97P?= =?UTF-8?q?opupWindow=E5=BC=B9=E7=AA=97=E5=A3=B3),=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F(=E6=A1=8C=E9=9D=A2todo=5Fbadge)=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA=E4=B8=8D=E5=8F=98(2026-09-07=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E9=80=82=E9=85=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/my_todos_popup.dspy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wwwroot/api/my_todos_popup.dspy b/wwwroot/api/my_todos_popup.dspy index b3597b6..811b7c7 100644 --- a/wwwroot/api/my_todos_popup.dspy +++ b/wwwroot/api/my_todos_popup.dspy @@ -126,6 +126,21 @@ if not cards: cards = [{"widgettype": "Text", "options": {"text": "暂无待办", "cfontsize": 0.9, "color": "#94a3b8", "padding": "16px"}}] +# embed=1(手机端「待办」Tab 整页渲染):返回纯 VBox,不套 PopupWindow 弹窗壳 +_embed = ((params_kw or {}).get('embed') or '').strip() +if _embed == '1': + return { + "widgettype": "VBox", + "options": {"css": "filler", "width": "100%", "height": "100%", + "padding": "0", "gap": "0px"}, + "subwidgets": [{ + "widgettype": "VScrollPanel", + "options": {"css": "filler", "width": "100%", "height": "100%", + "padding": "12px", "gap": "8px"}, + "subwidgets": cards + }] + } + return { "widgettype": "PopupWindow", "id": "my_todos_pw",