|
|
@@ -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 () {
|