feat(storefront): 价格表整体字号×0.7(0.75→0.525,用户2026-09-18:整个价格表缩小)——表头/普通格/价格/原价四处
This commit is contained in:
parent
3dbbb6e480
commit
8c2c1bb3c4
@ -173,7 +173,7 @@
|
||||
"options": {"css": "tabular-header-row", "width": "100%"},
|
||||
"subwidgets": [
|
||||
{% for h in price_table.headers %}
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(h, ensure_ascii=False)}}, "text": {{json.dumps(h, ensure_ascii=False)}}, "i18n": true, "halign": "left", "css": "filler", "cfontsize": 0.75, "flex": "1 1 0px"}}{{ "," if not loop.last }}
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(h, ensure_ascii=False)}}, "text": {{json.dumps(h, ensure_ascii=False)}}, "i18n": true, "halign": "left", "css": "filler", "cfontsize": 0.525, "flex": "1 1 0px"}}{{ "," if not loop.last }}
|
||||
{% endfor %}
|
||||
]
|
||||
}{{ "," if price_table.rows }}
|
||||
@ -185,11 +185,11 @@
|
||||
{% for c in row %}
|
||||
{% if c.k == 'price' %}
|
||||
{"widgettype": "HBox", "options": {"css": "filler", "gap": "6px", "alignItems": "center", "flex": "1 1 0px"}, "subwidgets": [
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.t, ensure_ascii=False)}}, "text": {{json.dumps(c.t, ensure_ascii=False)}}, "i18n": true, "halign": "left", "cfontsize": 0.75, "color": "#e74c3c"}}{% if c.orig %},
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.orig, ensure_ascii=False)}}, "text": {{json.dumps(c.orig, ensure_ascii=False)}}, "i18n": true, "halign": "left", "cfontsize": 0.75, "color": "var(--ink-3)", "textDecoration": "line-through"}}{% endif %}
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.t, ensure_ascii=False)}}, "text": {{json.dumps(c.t, ensure_ascii=False)}}, "i18n": true, "halign": "left", "cfontsize": 0.525, "color": "#e74c3c"}}{% if c.orig %},
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.orig, ensure_ascii=False)}}, "text": {{json.dumps(c.orig, ensure_ascii=False)}}, "i18n": true, "halign": "left", "cfontsize": 0.525, "color": "var(--ink-3)", "textDecoration": "line-through"}}{% endif %}
|
||||
]}{{ "," if not loop.last }}
|
||||
{% else %}
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.t, ensure_ascii=False)}}, "text": {{json.dumps(c.t, ensure_ascii=False)}}, "i18n": true, "halign": "left", "css": "filler", "cfontsize": 0.75, "color": "var(--ink-2)", "flex": "1 1 0px"}}{{ "," if not loop.last }}
|
||||
{"widgettype": "Text", "options": {"otext": {{json.dumps(c.t, ensure_ascii=False)}}, "text": {{json.dumps(c.t, ensure_ascii=False)}}, "i18n": true, "halign": "left", "css": "filler", "cfontsize": 0.525, "color": "var(--ink-2)", "flex": "1 1 0px"}}{{ "," if not loop.last }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user