From fe508b600dcab0e9a07080ca4f89df6cf76d0544 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 21 Jul 2020 17:34:15 +0800
Subject: [PATCH] 20200721  代码提交

---
 src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html |   46 +++++++++++++++++++++++++---------------------
 1 files changed, 25 insertions(+), 21 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..2f471a8 100644
--- a/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html
+++ b/src/main/resources/templates/febs/views/modules/trademanage/accountInfo.html
@@ -30,26 +30,14 @@
         </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">
     // 引入组件并初始化
-    layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () {
+    layui.use([ 'jquery', 'form', 'table', 'febs'], function () {
         var $ = layui.jquery,
-            laydate = layui.laydate,
             febs = layui.febs,
             form = layui.form,
             table = layui.table,
-            treeSelect = layui.treeSelect,
-            dropdown = layui.dropdown,
             $view = $('#febs-user'),
             $query = $view.find('#query'),
             $reset = $view.find('#reset'),
@@ -82,16 +70,32 @@
                 url: ctx + 'tradeManage/memberAccountInfo',
                 totalRow: true,
                 cols: [[
-                    {field: 'phone', title: '手机号', minWidth: 100,align:'left',totalRowText: '合计'},
+                    {field: 'phone', title: '手机号', minWidth: 100,align:'left'},
                     {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
                     {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
-                    {field: 'walletCoinAvailableBalance', title: '币币可用', minWidth: 80,align:'center',totalRow: true},
-                    {field: 'walletCoinFrozenBalance', title: '币币冻结', minWidth: 80,align:'center',totalRow: true},
-                    {field: 'walletCoinTotalBalance', title: '币币总金额', minWidth: 80,align:'center',totalRow: true},
-                    {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: 'rewardratioByMid', title: '盈亏',
+                    	templet: function (d) {
+                            if (d.rewardratioByMid > 0) {
+                                return '<span style="color:green;">'+d.rewardratioByMid+'</span>'
+                            } else {
+                                return '<span style="color:red;">'+d.rewardratioByMid+'</span>'
+                            } 
+                        }, minWidth: 80,align:'center',totalRow: true},
+                    {field: 'walletAvailableBalance', title: '币币可用', minWidth: 80,align:'center',totalRow: true},
+                    {field: 'walletFrozenBalance', title: '币币冻结', minWidth: 80,align:'center',totalRow: true},
+                    {field: 'walletCoinAvailableBalance', title: '合约可用', minWidth: 80,align:'center',totalRow: true},
+                    {field: 'walletCoinFrozenBalance', title: '合约冻结', minWidth: 80,align:'center',totalRow: true},
+                    {field: 'walletCoinTotalBalance', title: '合约总金额', minWidth: 80,align:'center',totalRow: true},
+                    {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