From 0c95f99dae780bc2552c27489ac5468d003239f5 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 21 Jul 2020 16:31:07 +0800
Subject: [PATCH] 20200721 代码提交
---
src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfo.html | 46 ++++++++++++++++++++++++----------------------
1 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfo.html b/src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfo.html
index 17025e6..dfc762b 100644
--- a/src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfo.html
+++ b/src/main/resources/templates/febs/views/modules/trademanage/agentReturnInfo.html
@@ -30,26 +30,6 @@
</div>
</div>
</div>
-<script type="text/html" id="isType">
- {{#
- var type = {
- "1": {title: '币币资产' , color: 'red'},
- "2": {title: '合约资产' , color: 'green'},
- "3": {title: '代理资产' , color: 'blue' }
- }[d.type];
- }}
- <span class="layui-badge febs-tag-{{type.color}}">{{ type.title }}</span>
-</script>
-<script type="text/html" id="status">
- {{#
- var status = {
- "2": {title: '失败' , color: 'red'},
- "1": {title: '成功' , color: 'green'},
- "0": {title: '待审核' , color: 'blue' }
- }[d.status];
- }}
- <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span>
-</script>
<!-- 表格操作栏 end -->
<script data-th-inline="none" type="text/javascript">
// 引入组件并初始化
@@ -100,8 +80,30 @@
{field: 'amount', title: '金额', minWidth: 80,align:'center',totalRow: true},
{field: 'content', title: '记录内容', minWidth: 80,align:'center'},
{field: 'createTime', title: '时间', minWidth: 80,align:'center'},
- {title: '状态', templet: '#status', minWidth: 100,align:'center'},
- {title: '类型', templet: '#isType', minWidth: 100,align:'center'},
+ {field: 'status', title: '状态',
+ templet: function (d) {
+ if (d.status === 0) {
+ return '<span style="color:blue;">待审核</span>'
+ } else if (d.status === 1) {
+ return '<span style="color:green;">成功</span>'
+ }else if (d.status === 2) {
+ return '<span style="color:red;">失败</span>'
+ }else{
+ return ''
+ }
+ }, minWidth: 80,align:'center'},
+ {field: 'type', title: '类型',
+ templet: function (d) {
+ if (d.type === 1) {
+ return '<span>币币资产</span>'
+ } else if (d.type === 2) {
+ return '<span>合约资产</span>'
+ }else if (d.type === 3) {
+ return '<span>代理资产</span>'
+ }else{
+ return ''
+ }
+ }, minWidth: 80,align:'center'}
]]
});
}
--
Gitblit v1.9.1