|
|
@@ -81,7 +81,7 @@
|
|
|
<img style="cursor: pointer" lay-event='open_image' src="{{d.avatar}}">
|
|
|
</script>
|
|
|
<script type="text/html" id="image">
|
|
|
- <img style="cursor: pointer" lay-event='open_image' src="{{d.image}}">
|
|
|
+ <img style="cursor: pointer" lay-event='open_images' src="{{d.image}}">
|
|
|
</script>
|
|
|
<script type="text/html" id="status">
|
|
|
{{# if(d.status == 0){ }}
|
|
|
@@ -89,7 +89,7 @@
|
|
|
待审核
|
|
|
</button>
|
|
|
{{# } else if(d.status > 0) { }}
|
|
|
- <button type="button" name="status" class="layui-btn-xs layui-btn-disabled" id="">
|
|
|
+ <button type="button" name="status" class="layui-btn-xs layui-btn" id="">
|
|
|
通过
|
|
|
</button>
|
|
|
{{# } else if(d.status < 0) { }}
|
|
|
@@ -101,6 +101,7 @@
|
|
|
|
|
|
<script type="text/html" id="act">
|
|
|
<button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='tg'>通过</button>
|
|
|
+ <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='jj'>拒绝</button>
|
|
|
|
|
|
</script>
|
|
|
</div>
|
|
|
@@ -120,9 +121,9 @@
|
|
|
{field: 'nickname', title: '用户昵称'},
|
|
|
{field: 'money', title: '充值金额'},
|
|
|
{field: 'image', title: '充值截图',templet:'#image'},
|
|
|
- {field: 'status', title: '充值截图',templet:'#status'},
|
|
|
+ {field: 'status', title: '充值状态',templet:'#status'},
|
|
|
{field: 'create_time', title: '时间'},
|
|
|
- {field: 'right', title: '操作',toolbar:'#act',width:'5%'},
|
|
|
+ {field: 'right', title: '操作',toolbar:'#act',width:'10%'},
|
|
|
];
|
|
|
});
|
|
|
layList.date({elem:'#start_time',theme:'#393D49',type:'datetime'});
|
|
|
@@ -147,6 +148,18 @@
|
|
|
content: '<img src="'+data.avatar+'" style="display: block;width: 100%;" />'
|
|
|
});
|
|
|
break;
|
|
|
+ case 'open_images':
|
|
|
+ if($eb)
|
|
|
+ $eb.openImage(data.image);
|
|
|
+ else
|
|
|
+ layList.layer.open({
|
|
|
+ type: 1,
|
|
|
+ title: false,
|
|
|
+ closeBtn: 0,
|
|
|
+ shadeClose: true,
|
|
|
+ content: '<img src="'+data.avatar+'" style="display: block;width: 100%;" />'
|
|
|
+ });
|
|
|
+ break;
|
|
|
case 'refund':
|
|
|
$eb.createModalFrame('退款',layList.U({a:'edit',q:{id:data.id}}),{h:'300',w:'500'});
|
|
|
break;
|
|
|
@@ -167,7 +180,6 @@
|
|
|
break;
|
|
|
case 'tg':
|
|
|
var url =layList.U({a:'tg',p:{id:data.id}});
|
|
|
- if (data.paid) return layList.msg('已支付的记录无法删除!');
|
|
|
$eb.$swal('delete',function(){
|
|
|
$eb.axios.get(url).then(function(res){
|
|
|
if(res.status == 200 && res.data.code == 200) {
|
|
|
@@ -179,6 +191,19 @@
|
|
|
});
|
|
|
},{'title':'您确定通过吗?','text':'请谨慎操作!','confirm':'是的,通过'})
|
|
|
break;
|
|
|
+ case 'jj':
|
|
|
+ var url =layList.U({a:'jj',p:{id:data.id}});
|
|
|
+ $eb.$swal('delete',function(){
|
|
|
+ $eb.axios.get(url).then(function(res){
|
|
|
+ if(res.status == 200 && res.data.code == 200) {
|
|
|
+ $eb.$swal('success',res.data.msg);
|
|
|
+ }else
|
|
|
+ return Promise.reject(res.data.msg || '失败')
|
|
|
+ }).catch(function(err){
|
|
|
+ $eb.$swal('error',err);
|
|
|
+ });
|
|
|
+ },{'title':'您确定拒绝吗?','text':'请谨慎操作!','confirm':'是的,拒绝'})
|
|
|
+ break;
|
|
|
}
|
|
|
});
|
|
|
require(['vue'],function(Vue) {
|