|
@@ -169,15 +169,16 @@ Page({
|
|
async goPay() {
|
|
async goPay() {
|
|
// console.log(wx.getStorageSync('loginInfo').openId)
|
|
// console.log(wx.getStorageSync('loginInfo').openId)
|
|
var _self = this;
|
|
var _self = this;
|
|
- let result = await WelfareMall.getOrderParams(_self.data.orderInfo.orderSn,wx.getStorageSync('loginInfo').openId);
|
|
|
|
|
|
+ let result = await WelfareMall.getOrderParams(_self.data.orderInfo.orderSn,wx.getStorageSync('loginInfo').openId,true);
|
|
// console.log(result);
|
|
// console.log(result);
|
|
let res = result.data
|
|
let res = result.data
|
|
- wx.requestPayment({
|
|
|
|
|
|
+ wx.requestOrderPayment({
|
|
timeStamp: res.wxPrePayVo.timeStamp,
|
|
timeStamp: res.wxPrePayVo.timeStamp,
|
|
package: res.wxPrePayVo.pack,
|
|
package: res.wxPrePayVo.pack,
|
|
nonceStr: res.wxPrePayVo.nonceStr,
|
|
nonceStr: res.wxPrePayVo.nonceStr,
|
|
signType: res.wxPrePayVo.signType,
|
|
signType: res.wxPrePayVo.signType,
|
|
paySign: res.wxPrePayVo.paySign,
|
|
paySign: res.wxPrePayVo.paySign,
|
|
|
|
+ orderInfo:res.orderInfo,
|
|
success: function (res) {
|
|
success: function (res) {
|
|
//支付成功,跳转领取成功页面
|
|
//支付成功,跳转领取成功页面
|
|
_self.setData({
|
|
_self.setData({
|