| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'reduceCoin') { |
| | | febs.modal.confirm('放币', '确定直接放币?', function () { |
| | | febs.post(ctx + 'otc/reduceCoin/' + data.id, null, function () { |
| | | febs.alert.success('放币成功'); |
| | | $query.click(); |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | // 查询按钮 |
| | |
| | | // 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 if (d.status === 2 && d.orderType === 'S'){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reduceCoin">放币</button>' |
| | | }else{ |
| | | return '' |
| | | return ''; |
| | | } |
| | | },minWidth: 100,align:'center'} |
| | | ]] |