From bb88c19a10a086dfb980c6fd93d9e7587fdea2c4 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 6 Sep 2026 14:24:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E6=89=80=E6=9C=89=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E4=B8=BB=E9=A1=B5=E7=BB=9F=E4=B8=80=E5=B5=8C=E5=85=A5?= =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=B1=95=E7=A4=BA=E9=A1=B5(storefront)?= =?UTF-8?q?=E2=80=94=E2=80=94=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=B1=95=E7=A4=BA=E8=8F=9C=E5=8D=95=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户要求(2026-09-06):所有人的主页都显示产品展示,简单化。 - home 标签 content 改为 urlwidget 嵌 /product_management/storefront/index.ui (原「产线平台」标题占位页)——未登录访客/客户/管理员统一 - 客户分支删除 product_showcase 菜单项(主页已接管,冗余) - 其他角色菜单不动 本地验证: Jinja三角色渲染+JSON合法+home=urlwidget指向storefront+菜单无重复无残留 --- wwwroot/index.ui | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 77c7ded..7897555 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -152,12 +152,6 @@ "target": "app.main_content", "items": [ {% if is_customer and not is_admin %} - { - "name": "product_showcase", - "label": "产品展示", - "icon": "", - "script": "this.open_tab({name:'product_showcase',label:'产品展示',url:'/product_management/storefront/index.ui',removable:true})" - }, { "name": "cust_account", "label": "我的账户", @@ -608,28 +602,10 @@ "label": "主页", "removable": false, "content": { - "widgettype": "VBox", + "widgettype": "urlwidget", "options": { - "width": "100%", - "padding": "40px", - "spacing": "16px" - }, - "subwidgets": [ - { - "widgettype": "Title2", - "options": { - "text": "产线平台" - } - }, - { - "widgettype": "Text", - "options": { - "text": "管理产线定义、运营配置、分销渠道与任务执行", - "cfontsize": 1.2, - "color": "#64748b" - } - } - ] + "url": "{{entire_url('/product_management/storefront/index.ui')}}" + } } } ]