From a3f86d22b6b9d5ab4a335488ddaf8edf3aa5f787 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 03 Jun 2021 16:45:08 +0800
Subject: [PATCH] modify
---
src/main/resources/templates/febs/views/modules/otc/otcOrderList.html | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html b/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
index 127fa27..395e639 100644
--- a/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
+++ b/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html
@@ -13,7 +13,7 @@
</div>
</div>
<div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">类型</label>
+ <label class="layui-form-label layui-form-label-sm">订单状态</label>
<div class="layui-input-inline">
<select name="status">
<option value="">请选择</option>
@@ -85,6 +85,15 @@
}
});
}
+
+ if (layEvent === 'reduceCoin') {
+ febs.modal.confirm('放币', '确定直接放币?', function () {
+ febs.post(ctx + 'otc/reduceCoin/' + data.id, null, function () {
+ febs.alert.success('放币成功');
+ $query.click();
+ });
+ });
+ }
});
// 查询按钮
@@ -141,11 +150,13 @@
{field: 'payTime', title: '付款时间',minWidth: 150,align:'center'},
{field: 'finishTime', title: '完成时间',minWidth: 150,align:'center'},
{title: '操作',templet: function (d) {
- //return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">付款</button>'
+ // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">付款</button>'
if(d.status === 1){
return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">付款</button>'
- }else{
- return ''
+ }else if (d.status === 2 && d.orderType === 'S'){
+ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reduceCoin">放币</button>'
+ } else {
+ return '';
}
},minWidth: 100,align:'center'}
]]
--
Gitblit v1.9.1