Commit e4960192 by 冷斌

fix bug

parent 4822416c
...@@ -79,16 +79,34 @@ ...@@ -79,16 +79,34 @@
chooseWay(index) { chooseWay(index) {
this.wayNum = index this.wayNum = index
}, },
sureWithdraw(){ sureWithdraw() {
if(this.withdraw_money){ if (this.withdraw_money) {
if(parseInt(this.withdraw_money) > parseInt(this.allow_money)){ if (parseInt(this.withdraw_money) > parseInt(this.allow_money)) {
layer.msg("不能大于可提现金额") layer.msg("不能大于可提现金额")
}else{ } else {
layer.msg("可以提现") let _this = this;
let url = _this.url('/api/public/?service=User.setCash');
$.ajax({
url: url,
dataType: "json",
data: {"accountid": _this.wayNum, "cashvote": _this.withdraw_money, "source": _this.source},
type: "POST",
success: function (data) {
console.log(data);
if (data.ret == 200) {
layer.msg('申请成功');
} else {
layer.msg(data.msg);
}
},
error: function (e) {
layer.msg(e.msg);
}
})
}
} else {
layer.msg("请输入提现金额")
} }
}else{
layer.msg("请输入提现金额")
}
} }
}, },
watch: { watch: {
......
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