From cf200a1f92c01ba22c326c49391f748ffb006910 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 05 Jul 2021 17:28:35 +0800 Subject: [PATCH] 20210617 开售开关 --- src/main/resources/templates/febs/views/modules/otc/otcOrderList.html | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 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 bd0fda3..395e639 100644 --- a/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html +++ b/src/main/resources/templates/febs/views/modules/otc/otcOrderList.html @@ -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(); + }); + }); + } }); // 查询按钮 @@ -144,8 +153,10 @@ // 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