添加支付宝微信验证

This commit is contained in:
pplokijuhyg 2020-01-02 08:40:37 +08:00
parent c0907aaa5c
commit 4152f5ffb6

View File

@ -74,6 +74,7 @@ Page({
var money=e.detail.value.money; var money=e.detail.value.money;
var wechat=e.detail.value.wechat; var wechat=e.detail.value.wechat;
var zhifubao=e.detail.value.zhifubao; var zhifubao=e.detail.value.zhifubao;
// console.log(money,wechat,zhifubao) // console.log(money,wechat,zhifubao)
if(wechat== "" && zhifubao == ""){ if(wechat== "" && zhifubao == ""){
wx.showToast({ wx.showToast({
@ -83,14 +84,25 @@ Page({
}); });
return ; return ;
} }
let xx = {}
if(wechat == ""){
xx.zhifubao = zhifubao
}else{
xx.wechat = wechat
}
if(wechat && zhifubao){
xx.zhifubao = zhifubao
xx.wechat = wechat
}
bin.getuserid().then((id)=>{ bin.getuserid().then((id)=>{
bin.request({ bin.request({
url:"User/withdrawals", url:"User/withdrawals",
urldata:{ urldata:{
user_id:id, user_id:id,
money, money,
wechat, ...xx
zhifubao
} }
}).then((res)=>{ }).then((res)=>{
// console.log( ) // console.log( )