收款信息

This commit is contained in:
Jerry Yan 2020-08-22 21:20:35 +08:00
parent 657f9e2677
commit 2ca7186710

View File

@ -1,11 +1,26 @@
$.ajax({
url: qlgUrl('app/users/setting_recive'),
method: "GET",
dataType: 'JSON',
success(res) {
// TODO: some ajax
if (!res.status) return alert(res.msg)
document.getElementById("realname").value = res.data.realname || '';
document.getElementById("bank_name").value = res.data.bankName || '';
document.getElementById("bank_no").value = res.data.bankNo || '';
document.getElementById("alipay_recive").value = res.data.alipayRecive || '';
document.getElementById("wechat_recive").value = res.data.wechatRecive || '';
document.getElementById("alipayReciveCode").src = hyhImgUrl(res.data.alipayRecive);
document.getElementById("wechatReciveCode").src = hyhImgUrl(res.data.wechatRecive);
},
error(err){
console.warn(err);
alert('请求异常')
}
})
mui.plusReady(function(){
// TODO: some ajax
document.getElementById("realname").value = '';
document.getElementById("bank_name").value = '';
document.getElementById("bank_no").value = '';
document.getElementById("alipay_recive").value = '';
document.getElementById("wechat_recive").value = '';
$(".photos").on("tap", 'img', function() {
var _input = $(this).parent().parent().parent().prev()[0];
@ -27,6 +42,17 @@ mui.plusReady(function(){
alipayRecive,
wechatRecive,
}
console.log(data)
$.ajax({
url: qlgUrl('app/users/setting_recive'),
method: "POST",
data: data,
dataType: 'JSON',
success(res) {
return alert(res.msg)
},
error(err){
alert('请求异常')
}
})
})
})