From 4152f5ffb687d6d376dbcd9ed822674b260bc6ef Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Thu, 2 Jan 2020 08:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deposit/deposit.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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( )