diff --git a/wwwroot/transfer_info.ui b/wwwroot/transfer_info.ui index eea98d3..0caddf2 100644 --- a/wwwroot/transfer_info.ui +++ b/wwwroot/transfer_info.ui @@ -2,90 +2,63 @@ "widgettype": "VBox", "options": { "width": "100%", - "height": "100%", - "padding": "20px" - }, - "subwidgets": [ - { - "widgettype": "Title3", - "options": { - "text": "线下转账充值", - "color": "var(--sage-text-primary)" - } - }, - { - "widgettype": "Text", - "options": { - "text": "请向以下账户转账,并在附言中填写转账码:" - } - }, - { - "widgettype": "VBox", - "options": { - "css": "card", - "padding": "16px", - "width": "100%" + "children": [ + { + "widgettype": "Title", + "options": { + "text": "线下转账充值" + } }, - "subwidgets": [ -{% if params_kw.bank_name %} - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "收款银行", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": {{json.dumps(params_kw.bank_name)}}, "cwidth": 16, "cfontsize": 1.1}} - ] - }, -{% endif %} -{% if params_kw.bank_branch %} - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "开户行", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": {{json.dumps(params_kw.bank_branch)}}, "cwidth": 16, "cfontsize": 1.1}} - ] - }, -{% endif %} - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "收款账号", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": "{{params_kw.account_no}}", "cwidth": 16}} - ] - }, - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "转账金额", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": "{{params_kw.amount}} 元", "cwidth": 16}} - ] - }, - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "转账码", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": "{{params_kw.tcode}}", "cwidth": 16, "cfontsize": 1.5}} - ] - }, - { - "widgettype": "HBox", - "options": {}, - "subwidgets": [ - {"widgettype": "Text", "options": {"text": "日期", "cwidth": 8}}, - {"widgettype": "Text", "options": {"text": "{{params_kw.curdate}}", "cwidth": 16}} + { + "widgettype": "Text", + "options": { + "text": "请向以下账户转账,并在附言中填写转账码:" + } + }, + { + "widgettype": "Form", + "options": { + "readonly": true, + "fields": [ + { + "name": "bank_name", + "label": "开户银行", + "uitype": "str" + }, + { + "name": "bank_branch", + "label": "开户支行", + "uitype": "str" + }, + { + "name": "account_no", + "label": "收款账号", + "uitype": "str" + }, + { + "name": "amount", + "label": "转账金额", + "uitype": "str" + }, + { + "name": "tcode", + "label": "转账码", + "uitype": "str" + }, + { + "name": "curdate", + "label": "日期", + "uitype": "str" + } ] } - ] - }, - { - "widgettype": "Text", - "options": { - "text": "转账完成后,系统将自动匹配转账码并完成充值。如有疑问请联系客服。" + }, + { + "widgettype": "Text", + "options": { + "text": "转账完成后,系统将自动匹配转账码并完成充值。如有疑问请联系客服。" + } } - } - ] + ] + } }