unipay/wwwroot/refund.ui
2025-12-20 20:47:08 +08:00

56 lines
898 B
XML

{% if params_kw.id %}
{% set plog = get_refundable_plog(request, params_kw.id) %}
{% if plog %}
{
"widgettype":"Form",
"options":{
"description":"输入退费金额,缺省为本最多可退金额",
"width": "100%",
"fields":[
{
"name":"id",
"uitype":"hide",
"value":"{{plog.id}}"
},
{
"name": "amount",
"label": "退费金额",
"uitype":"float",
"defaultvalue": {{plog.amount}}
}
]
},
"binds":[
{
"wid":"self",
"event":"submit",
"actiontype":"urlwidget",
"target": "self",
"options":{
"url":"{{entire_url('refund.dspy')}}"
}
}
]
}
{% else %}
{
"widgettype":"Text",
"options":{
"i18n":true,
"width":"100%",
"otext":"本地充值已退费",
"wrap": true
}
}
{% endif %}
{% else %}
{
"widgettype": "Text",
"options":{
"i18n": true
"width": "100%",
"otext": "需要选定一条记录"
}
}
{% endif %}