afa 6 mesi fa
parent
commit
f02f952a3a

+ 1 - 1
application/admin/view/offline/offline_withdraw/approve.html

@@ -35,7 +35,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">手续费:</label>
         <div class="col-xs-12 col-sm-2">
-            <label class="control-label col-xs-12 col-sm-2">{$row.fee}</label>
+            <label class="control-label col-xs-12 col-sm-8">{$row.fee}</label>
         </div>
     </div>
     <div class="form-group">

+ 19 - 1
public/assets/js/backend/offline/offline_withdraw.js

@@ -103,7 +103,25 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
             Controller.api.bindevent();
         },
         approve: function () {
-            Controller.api.bindevent();
+            Form.api.bindevent($("form[role=form]"), function () {
+            }, function () {
+            }, function (success, error) {
+                    layer.confirm('请先仔细确认提现数据!', {
+                        btn: ['确定', '取消'] //按钮
+                    }, function (index) {
+                        Form.api.submit($("form[role=form]"), function (data, ret) {
+                            //如果我们需要在提交表单成功后做跳转,可以在此使用location.href="链接";进行跳转
+                            setTimeout(function () {
+                                parent.Layer.close(parent.Layer.getFrameIndex(window.name));
+                                //刷新页面
+                                window.parent.location.reload();
+                            }, 1000);
+                        });
+                        Layer.close(index);
+                    }, function () {
+                    });
+                    return false;
+            });
         },
         api: {
             bindevent: function () {