From 2d57b956efa9227c602ab6598bfa8958fcea3e34 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 30 Jun 2020 18:00:01 +0800
Subject: [PATCH] 20200630 代码提交
---
src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html b/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html
index 03ebffc..82630cc 100644
--- a/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html
+++ b/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}
]]
});
--
Gitblit v1.9.1