From 3dbbb6e4801cafb392d80e6b863044b736a6fe68 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 18 Sep 2026 17:10:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(storefront):=20=E5=B7=B2=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E4=BA=A7=E7=BA=BF=E5=8D=A1=E5=88=A0=E8=BF=9B=E5=85=A5=E4=BA=A7?= =?UTF-8?q?=E7=BA=BF=E6=8C=89=E9=92=AE=E8=A1=8C(=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E7=94=B1=E5=8D=A1=E7=89=87=E7=82=B9=E5=87=BB=E6=89=BF=E6=8B=85?= =?UTF-8?q?,=E7=94=A8=E6=88=B72026-09-18),=E6=B5=81=E5=87=BA=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=BB=99=E5=86=85=E5=AE=B9;Jinja=E4=B8=89=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E9=AA=8CJSON(=E5=B7=B2=E8=AE=A2=E9=98=85=E6=97=A0HBox?= =?UTF-8?q?/=E6=9C=AA=E8=AE=A2=E9=98=85=E7=95=99=E8=B4=AD=E4=B9=B0/?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E7=95=99=E6=8C=89=E9=87=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/storefront/index.ui | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/wwwroot/storefront/index.ui b/wwwroot/storefront/index.ui index b622af3..a6040b4 100644 --- a/wwwroot/storefront/index.ui +++ b/wwwroot/storefront/index.ui @@ -226,9 +226,10 @@ "fontSize": "11px", "color": {{json.dumps('#27ae60' if extra.subscribed else '#94a3b8')}} } - }, + }{% if not (extra.subscribed and not extra.planned) %},{% endif %} {% endif %} {% endif %} +{% if not (is_pipeline and extra.subscribed and not extra.planned) %} { "widgettype": "HBox", "options": { @@ -246,25 +247,8 @@ } } {% elif is_pipeline and extra.subscribed %} - { - "widgettype": "Button", - "options": { - "label": "进入产线", - "bgcolor": "#2563eb", - "color": "#fff", - "padding": "8px 24px", - "borderRadius": "6px" - }, - "binds": [ - { - "wid": "self", - "event": "click", - "actiontype": "script", - "target": "self", - "script": {{json.dumps("var _tp=bricks.getWidgetById('main_content',bricks.app);if(_tp&&_tp.open_tab){_tp.open_tab({name:" + json.dumps(extra.tab_name, ensure_ascii=False) + ",label:" + json.dumps(extra.tab_label, ensure_ascii=False) + ",url:" + json.dumps(extra.url, ensure_ascii=False) + ",removable:true});}", ensure_ascii=False)}} - } - ] - } +{# 进入产线按钮已删(2026-09-18 用户要求):导航由卡片整体 click bind 承担 + (is_pipeline 分支的 open_tab),此处不渲染任何控件 #} {% elif is_model %} { "widgettype": "Text", @@ -318,6 +302,7 @@ {% endif %} ] } +{% endif %} ] } {% endif %}