26 lines
724 B
JavaScript
26 lines
724 B
JavaScript
var a = getApp();
|
|
|
|
Page({
|
|
data: {
|
|
disabled: !1,
|
|
zfb: "",
|
|
phone: "",
|
|
je: "",
|
|
error: ""
|
|
},
|
|
onLoad: function(a) {},
|
|
saveData: function(e) {
|
|
var t = this, o = e.detail.value;
|
|
"" !== o.zfb ? o.phone.length < 1 ? a.showError("手机号不能为空") : o.je.length < 1 ? a.showError("提现金额不能为空") : (t.setData({
|
|
disabled: !0
|
|
}), a._post_form("user/tx", o, function(e) {
|
|
a.showSuccess(e.msg, function() {
|
|
wx.navigateBack();
|
|
});
|
|
}, !1, function() {
|
|
t.setData({
|
|
disabled: !1
|
|
});
|
|
})) : a.showError("支福包帐号为空");
|
|
}
|
|
}); |