廖雁生 1 year ago
parent
commit
3f71c1a72f
1 changed files with 9 additions and 1 deletions
  1. 9 1
      toktok-wx-applet/pages/beerBoxPayment/beerBoxPayment.js

+ 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)