廖雁生 1 rok pred
rodič
commit
3f71c1a72f

+ 9 - 1
toktok-wx-applet/pages/beerBoxPayment/beerBoxPayment.js

@@ -111,7 +111,15 @@ Page({
     request.postData(
       'app/pay/wxpay/program/unified',{orderId: orderId},
       res => {
-        console.log(res)
+        wx.requestPayment({
+          timeStamp: res.data.data.timeStamp,
+          nonceStr: res.data.data.nonceStr,
+          package: res.data.data.packageVal,
+          signType: 'RSA',
+          paySign: res.data.data.paySign,
+          success (res) { },
+          fail (res) { }
+        })
       },
       res => {
         console.log(res)