feat(storefront): 已订阅产线卡删进入产线按钮行(导航由卡片点击承担,用户2026-09-18),流出控件给内容;Jinja三场景验JSON(已订阅无HBox/未订阅留购买/模型留按量)

This commit is contained in:
yumoqing 2026-09-18 17:10:09 +08:00
parent 4f7029f7fe
commit 3dbbb6e480

View File

@ -226,9 +226,10 @@
"fontSize": "11px", "fontSize": "11px",
"color": {{json.dumps('#27ae60' if extra.subscribed else '#94a3b8')}} "color": {{json.dumps('#27ae60' if extra.subscribed else '#94a3b8')}}
} }
}, }{% if not (extra.subscribed and not extra.planned) %},{% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if not (is_pipeline and extra.subscribed and not extra.planned) %}
{ {
"widgettype": "HBox", "widgettype": "HBox",
"options": { "options": {
@ -246,25 +247,8 @@
} }
} }
{% elif is_pipeline and extra.subscribed %} {% elif is_pipeline and extra.subscribed %}
{ {# 进入产线按钮已删(2026-09-18 用户要求):导航由卡片整体 click bind 承担
"widgettype": "Button", (is_pipeline 分支的 open_tab),此处不渲染任何控件 #}
"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)}}
}
]
}
{% elif is_model %} {% elif is_model %}
{ {
"widgettype": "Text", "widgettype": "Text",
@ -318,6 +302,7 @@
{% endif %} {% endif %}
] ]
} }
{% endif %}
] ]
} }
{% endif %} {% endif %}