添加支付宝微信验证

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 wechat=e.detail.value.wechat;
var zhifubao=e.detail.value.zhifubao;
// console.log(money,wechat,zhifubao)
if(wechat== "" && zhifubao == ""){
wx.showToast({
@ -83,14 +84,25 @@ Page({
});
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.request({
url:"User/withdrawals",
urldata:{
user_id:id,
money,
wechat,
zhifubao
...xx
}
}).then((res)=>{
// console.log( )