accounting/wwwroot/myaccounts.ui

115 lines
2.3 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",
{% else %}
"cwidth":12,
{% endif %}
"cheight":10
},
"subwidgets":[
{
"widgettype":"IconBar",
"id":"iconbar_{{loop.index}}",
"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":"iconbar_{{loop.index}}",
"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":"600px",
"height":"500px"
{% endif %}
},
"options":{
"params_kw":{
"accountid":"{{acc.id}}"
},
"url":"{{entire_url('/unipay/recharge.ui')}}"
}
},{
"wid":"iconbar_{{loop.index}}",
"event":"detail",
"actiontype":"urlwidget",
"target":"PopupWindow",
"popup_options":{
"icon":"{{entire_url('/imgs/accdetail.svg')}}",
"title":"明细",
{% if params_kw._is_mobile %}
"width":"100%",
"height":"95%"
{% else %}
"width":"700px",
"height":"550px"
{% endif %}
},
"options":{
"params_kw":{
"accountid":"{{acc.id}}"
},
"url":"{{entire_url('/accounting/accdetail.ui')}}"
}
}
]
}
{% if not loop.last %},{% endif %}
{% endfor %}
]
}