Commit bdbe8b75 by 冷斌

fix bug

parent 0edbc93a
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
} else { } else {
let _this = this; let _this = this;
let url = _this.url('/api/public/?service=User.setCash'); let url = _this.url('/api/public/?service=User.setCash');
let leftover = parseInt(this.allow_money) - parseInt(this.withdraw_money);
$.ajax({ $.ajax({
url: url, url: url,
dataType: "json", dataType: "json",
...@@ -94,7 +95,8 @@ ...@@ -94,7 +95,8 @@
success: function (data) { success: function (data) {
console.log(data); console.log(data);
if (data.ret == 200) { if (data.ret == 200) {
layer.msg('申请成功'); _this.allow_money = leftover;
layer.msg('提现成功');
} else { } else {
layer.msg(data.msg); layer.msg(data.msg);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment