xiaoyong931011
2020-06-30 2d57b956efa9227c602ab6598bfa8958fcea3e34
src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html
@@ -30,15 +30,6 @@
        </div>
    </div>
</div>
<script type="text/html" id="isSuAccount">
    {{#
    var isSuAccount = {
    "1": {title: '是' , color: 'green'},
    "0": {title: '否' , color: 'red' }
    }[d.isSuAccount];
    }}
    <span class="layui-badge febs-tag-{{isSuAccount.color}}">{{ isSuAccount.title }}</span>
</script>
<!-- 表格操作栏 end -->
<script data-th-inline="none" type="text/javascript">
    // 引入组件并初始化
@@ -91,7 +82,16 @@
                    {field: 'walletAvailableBalance', title: '合约可用', minWidth: 80,align:'center',totalRow: true},
                    {field: 'walletFrozenBalance', title: '合约冻结', minWidth: 80,align:'center',totalRow: true},
                    {field: 'walletTotalBalance', title: '合约总金额', minWidth: 80,align:'center',totalRow: true},
                    {title: '是否是代理', templet: '#isSuAccount', minWidth: 100,align:'center'},
                    {field: 'isSuAccount', title: '是否是代理',
                       templet: function (d) {
                            if (d.isSuAccount === 1) {
                                return '<span style="color:green;">是</span>'
                            } else if (d.isSuAccount === 0) {
                                return '<span style="color:red;">否</span>'
                            } else {
                                return ''
                            }
                        }, minWidth: 80,align:'center',totalRow: true},
                    {field: 'agentAvailableBalance', title: '代理账户', minWidth: 80,align:'center',totalRow: true}
                ]]
            });