accounting/wwwroot/myaccounts.ui
2025-12-25 17:00:23 +08:00

115 lines
2.2 KiB
XML

{
"widgettype":"DynamicColumn",
"options":{
"css":"filler",
"width":"100%"
},
"subwidgets":[
{% for acc in all_my_accounts(request) %}
{
"widgettype":"VBox",
"options":{
"css":"card",
{% if params_kw.is_mobile %}
"width":"{{params_kw.width/2-3}}px",
"cheight":4
{% else %}
"cwidth":12,
"cheight":4
{% endif %}
},
"subwidgets":[
{
"widgettype":"IconBar",
"options":{
"rate": 1.5,
"tools":[
{% if acc.name == '客户资金账户' %}
{
"name":"recharge",
"icon":"{{entire_url('/unipay/imgs/recharge.svg')}}",
"tip":"账户充值"
},
{% endif %}
{
"name":"detail",
"icon":"{{entire_url('imgs/accdetail.svg')}}",
"tip":"查看账户明细"
}
]
}
},
{
"widgettype":"Title6",
"options":{
"width":"100%",
"text":"{{acc.name}}"
}
},{
"widgettype":"Text",
"options":{
"width":"100%",
"i18n":true,
"otext":"{{'借' if acc.balance_at=='0' else '贷'}}"
}
},{
"widgettype":"Text",
"options":{
"width":"100%",
"text":"{{acc.balance}}"
}
}
],
"binds":[
{
"wid":"self",
"event":"recharge",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"icon":"{{entire_url('/unipay/imgs/recharge.svg')}}",
"title":"充值",
{% if params_kw._is_mobile %}
"width":"100%",
"height":"95%"
{% else %}
"width":"360px",
"height":"240px"
{% endif %}
},
"options":{
"params_kw":{
"accountid":"{{acc.id}}"
},
"url":"entire_url('/uniapy/recharge.ui')"
}
},{
"wid":"self",
"event":"recharge",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"icon":"{{entire_url('imgs/accdetail.svg')}}",
"title":"充值",
{% if params_kw._is_mobile %}
"width":"100%",
"height":"95%"
{% else %}
"width":"360px",
"height":"240px"
{% endif %}
},
"options":{
"params_kw":{
"accountid":"{{acc.id}}"
},
"url":"entire_url('accdetail.ui')"
}
}
]
}
{% if not loop.last %},{% endif %}
{% endfor %}
]
}