| | |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | |
| | | if (layEvent === 'edit') { |
| | | febs.modal.open('交易员审核', 'modules/documentary/traderDetail/' + data.id, { |
| | | btn: ['确认', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#user-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'seeFollowerInfo') { |
| | | febs.modal.open('跟随者详情', 'modules/documentary/seeFollowerInfo/' + data.id, { |
| | | if (layEvent === 'seeAgentReturn') { |
| | | febs.modal.open('返利详情', 'modules/yunding/seeAgentReturn/' + data.id, { |
| | | area: $(window).width() <= 750 ? '90%' : '80%', |
| | | offset: '30px', |
| | | btn2: function () { |
| | |
| | | window.parent.location.reload();//刷新 |
| | | } |
| | | }); |
| | | $query.click(); |
| | | } |
| | | if (layEvent === 'modifyProfitRatio') { |
| | | febs.modal.open('收益率修改', 'modules/documentary/modifyProfitRatio/' + data.id, { |
| | | btn: ['确认', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#user-update').find('#submit').trigger('click'); |
| | | }, |
| | | if (layEvent === 'seeReturn') { |
| | | febs.modal.open('返利详情', 'modules/yunding/seeReturn/' + data.id, { |
| | | area: $(window).width() <= 750 ? '90%' : '80%', |
| | | offset: '30px', |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | }, |
| | | cancel: function(){ |
| | | var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name |
| | | parent.layer.close(index);//关闭当前窗口 |
| | | window.parent.location.reload();//刷新 |
| | | } |
| | | }); |
| | | $query.click(); |
| | | } |
| | | if (layEvent === 'getOut') { |
| | | febs.modal.confirm('确认', '您是否要踢出该交易员?', function () { |
| | | confirmUsers(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'getOn') { |
| | | febs.modal.confirm('确认', '您是否推荐当前交易员?', function () { |
| | | confirmUsersGetOn(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'getOutFrist') { |
| | | febs.modal.confirm('确认', '您是否取消推荐当前交易员?', function () { |
| | | confirmUsersGetOutFrist(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'getFull') { |
| | | febs.modal.confirm('确认', '您是否要设置成【满员】状态?', function () { |
| | | cancelUsers(data.id); |
| | | if (layEvent === 'seeOrder') { |
| | | febs.modal.open('订单详情', 'modules/yunding/seeOrder/' + data.id, { |
| | | area: $(window).width() <= 750 ? '90%' : '80%', |
| | | offset: '30px', |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | }, |
| | | cancel: function(){ |
| | | var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name |
| | | parent.layer.close(index);//关闭当前窗口 |
| | | window.parent.location.reload();//刷新 |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | |
| | | {field: 'availableBalance', title: '账户余额', |
| | | templet: function (d) { |
| | | if (d.availableBalance > 0) { |
| | | return '<span style="color:green;">'+d.availableBalance+'</span>' |
| | | return '<span style="color:blue;">'+d.availableBalance+'</span>' |
| | | }else{ |
| | | return '<span>'+d.availableBalance+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'totalUsed', title: '购买金额', |
| | | templet: function (d) { |
| | | if (d.totalUsed > 0) { |
| | | return '<span style="color:green;">'+d.totalUsed+'</span>' |
| | | }else{ |
| | | return '<span>'+d.totalUsed+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'inBalance', title: '充值金额', |
| | | templet: function (d) { |
| | | if (d.inBalance > 0) { |
| | | return '<span style="color:green;">'+d.inBalance+'</span>' |
| | | return '<span style="color:blue;">'+d.inBalance+'</span>' |
| | | }else{ |
| | | return '<span>'+d.inBalance+'</span>' |
| | | } |
| | |
| | | return '<span style="color:red;">'+d.outBalance+'</span>' |
| | | }else{ |
| | | return '<span>'+d.outBalance+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'totalUsed', title: '购买算力金额', |
| | | templet: function (d) { |
| | | if (d.totalUsed > 0) { |
| | | return '<span style="color:blue;">'+d.totalUsed+'</span>' |
| | | }else{ |
| | | return '<span>'+d.totalUsed+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'quantityReady', title: '待生效算力', |
| | |
| | | return '<span>'+d.quantityEnd+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'totalProfit', title: '累计收益', |
| | | templet: function (d) { |
| | | if (d.totalProfit > 0) { |
| | | return '<span style="color:blue;">'+d.totalProfit+'</span>' |
| | | }else{ |
| | | return '<span>'+d.totalProfit+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'agentUsed', title: '购买代理金额', |
| | | templet: function (d) { |
| | | if (d.agentUsed > 0) { |
| | | return '<span style="color:blue;">'+d.agentUsed+'</span>' |
| | | }else{ |
| | | return '<span>'+d.agentUsed+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'returnAgent', title: '收到返利', |
| | | templet: function (d) { |
| | | if (d.returnAgent > 0) { |
| | | return '<span style="color:blue;">'+d.returnAgent+'</span>' |
| | | }else{ |
| | | return '<span>'+d.returnAgent+'</span>' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {title: '操作', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeAgentReturn" shiro:hasPermission="user:update">返利详情</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeReturn" shiro:hasPermission="user:update">挖矿详情</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="seeOrder" shiro:hasPermission="user:update">订单详情</button>' |
| | | }, minWidth: 250,align:'center'}, |
| | | ]] |
| | | }); |
| | | } |