| | |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | if (layEvent === 'addCoin') { |
| | | febs.modal.open( '拨币', 'modules/member/addCoin/' + data.id, { |
| | | btn: ['提交', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#user-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | |
| | |
| | | {field: 'accountType', title: '账号类型', |
| | | templet: function (d) { |
| | | if (d.accountType === 2) { |
| | | return '<span style="color:green;">正常账号</span>' |
| | | return '<span style="color:green;">测试账号</span>' |
| | | } else if (d.accountType === 1) { |
| | | return '<span style="color:red;">测试账号</span>' |
| | | return '<span style="color:red;">正常账号</span>' |
| | | }else{ |
| | | return '' |
| | | } |
| | |
| | | templet: function (d) { |
| | | if (d.certifyStatus === 1) { |
| | | return '<a lay-event="edit" shiro:hasPermission="user:update">确认</a>' |
| | | +'<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>' |
| | | }else if(d.certifyStatus === 2){ |
| | | return '<a lay-event="see" shiro:hasPermission="user:update">' |
| | | +'<i class="layui-icon febs-edit-area febs-blue"></i></a>' |
| | | +'<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>' |
| | | }else { |
| | | return '' |
| | | return +'<a lay-event="addCoin" shiro:hasPermission="user:update">拨币</a>' |
| | | } |
| | | },minWidth: 200,align:'center'} |
| | | ]] |