diff --git a/pages/deposit/deposit.js b/pages/deposit/deposit.js index e7e822c..5c783f3 100644 --- a/pages/deposit/deposit.js +++ b/pages/deposit/deposit.js @@ -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( )