Kaynağa Gözat

修改文件

柳建 11 ay önce
ebeveyn
işleme
649d8e3a6f
1 değiştirilmiş dosya ile 51 ekleme ve 1 silme
  1. 51 1
      public/assets/js/backend/greenroom/withdrawal.js

+ 51 - 1
public/assets/js/backend/greenroom/withdrawal.js

@@ -34,7 +34,57 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'admin.username', title: __('Admin.username'), operate: 'LIKE'},
                         {field: 'admin.nickname', title: __('Admin.nickname'), operate: 'LIKE'},
                         {field: 'admin.appname', title: __('Admin.appname'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
-                        {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
+
+
+
+
+                        {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate,
+
+
+                            buttons: [
+                                {
+                                    name: 'ajax',
+                                    text: __('同意'),
+                                    title: __('同意'),
+                                    classname: 'btn btn-xs btn-success btn-magic btn-ajax',
+                                    icon: 'fa fa-magic',
+                                    url: 'customer/customer/freecustomer',
+                                    confirm: '确定同意这次提现申请?',
+                                    success: function (data, ret) {
+                                        Layer.alert(ret.msg + ",返回数据:" + JSON.stringify(data));
+                                        //如果需要阻止成功提示,则必须使用return false;
+                                        //return false;
+                                    },
+                                    error: function (data, ret) {
+                                        console.log(data, ret);
+                                        Layer.alert(ret.msg);
+                                        return false;
+                                    }
+                                },
+                                {
+                                    name: 'ajax',
+                                    text: __('拒绝'),
+                                    title: __('拒绝'),
+                                    classname: 'btn btn-xs btn-success btn-magic btn-ajax',
+                                    icon: 'fa fa-magic',
+                                    url: 'customer/customer/freecustomer',
+                                    confirm: '确定拒绝这次提现申请?',
+                                    success: function (data, ret) {
+                                        Layer.alert(ret.msg + ",返回数据:" + JSON.stringify(data));
+                                        //如果需要阻止成功提示,则必须使用return false;
+                                        //return false;
+                                    },
+                                    error: function (data, ret) {
+                                        console.log(data, ret);
+                                        Layer.alert(ret.msg);
+                                        return false;
+                                    }
+                                }
+
+                            ],
+
+
+                            formatter: Table.api.formatter.operate}
                     ]
                 ]
             });