| | |
| | | </script> |
| | | |
| | | |
| | | <script type="text/html" id="optContainer"> |
| | | |
| | | </script> |
| | | |
| | | <script type="text/html" id="statusContainer"> |
| | | <div class="layui-btn-container"> |
| | | {{# if(d.status==0){ }} |
| | |
| | | <img src="{{d.}}"/> |
| | | <input type="checkbox" name="sex" value="{{d.id}}" lay-skin="switch" lay-text="女|男" lay-filter="sexDemo" {{ d.id== |
| | | 10003 ? 'checked': ''}} > |
| | | </script> |
| | | |
| | | <script type="text/html" id="optContainer"> |
| | | <div class="layui-btn-container"> |
| | | <a class="layui-btn {{d.state==0?'':'layui-btn-disabled'}}" title="通过" onclick="app.passExtract({{d.state}},{{d.id}})" |
| | | href="javascript:;"> |
| | | 通过 |
| | | </a> |
| | | |
| | | <a class="layui-btn layui-btn-danger" title="去处理" onclick="xadmin.open('处理提现记录', 'extract_process.html?id= {{d.id}}', null, null, true)" |
| | | href="javascript:;"> |
| | | 去处理 |
| | | </a> |
| | | </div> |
| | | </script> |
| | | |
| | | <script> |
| | |
| | | toolbar: "#toolbar", |
| | | totalRow: true, |
| | | cols: [[{type: 'checkbox', title: "ID"}, |
| | | |
| | | {field: 'id', width: 80, sort: false, title: "ID"}, |
| | | {field: 'money', width: 80, sort: false, title: "提现金额"}, |
| | | { |
| | | field: 'user', width: 80, sort: false, title: "用户ID", templet: function (res) { |
| | | |
| | | return res.user.id; |
| | | } |
| | | }, |
| | | {field: 'money', width: 80, sort: false, title: "提现金额"}, |
| | | |
| | | {field: 'type', width: 80, sort: false, title: "付款渠道"}, |
| | | {field: 'name', width: 80, sort: false, title: "姓名(支付宝)"}, |
| | | {field: 'account', width: 120, sort: false, title: "账号/OpenId"}, |
| | |
| | | {field: 'reason', width: 200, sort: false, title: "原因"}, |
| | | {field: 'successTime', width: 150, sort: false, title: "通过时间"}, |
| | | {field: 'createTime', width: 150, sort: false, title: "创建时间"}, |
| | | {fixed: 'right', width: 150, title: "操作", toolbar: '#optContainer'} |
| | | ]], |
| | | page: true, |
| | | parseData: function (res) { //res 即为原始返回的数据 |
| | |
| | | curr: 1 //重新从第 1 页开始 |
| | | } |
| | | }); |
| | | }, |
| | | passExtract: function (state,id) { |
| | | if(state!=0){ |
| | | return; |
| | | } |
| | | layer.confirm('是否通过提现申请?', {icon: 3, title: '提示'}, function (index) { |
| | | layer.close(index); |
| | | //确定 |
| | | ksapp.post('/admin/api/money/extract/passExtract', {id: id}, function (res) { |
| | | if (res.code == 0) { |
| | | layer.msg("成功"); |
| | | } else if (res.code == 50002) { |
| | | app.openVerifyDialog(); |
| | | } else { |
| | | layer.msg(res.msg); |
| | | } |
| | | }, function (res) { |
| | | }); |
| | | }); |
| | | }, |
| | | openVerifyDialog: function () { |
| | | xadmin.open('邮件验证', 'extract_email_code.html', 350, 160); |
| | | } |
| | | } |
| | | }); |