|
@@ -251,6 +251,7 @@
|
|
|
openId: openId,
|
|
openId: openId,
|
|
|
type: 3
|
|
type: 3
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(data,'支付参数')
|
|
|
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(res => {
|
|
that.$Request.post('/shop/shopmoney/shopCashDeposit', data).then(res => {
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
@@ -258,13 +259,14 @@
|
|
|
that.earnestMoney = ''
|
|
that.earnestMoney = ''
|
|
|
uni.requestPayment({
|
|
uni.requestPayment({
|
|
|
provider: 'wxpay',
|
|
provider: 'wxpay',
|
|
|
|
|
+ appId:res.appId, //公众号名称,由商户传入
|
|
|
timeStamp: res.timeStamp,
|
|
timeStamp: res.timeStamp,
|
|
|
nonceStr: res.nonceStr,
|
|
nonceStr: res.nonceStr,
|
|
|
package: res.packageStr,
|
|
package: res.packageStr,
|
|
|
signType: res.signType,
|
|
signType: res.signType,
|
|
|
paySign: res.paySign,
|
|
paySign: res.paySign,
|
|
|
success: function(res) {
|
|
success: function(res) {
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+ console.log(res,'支付')
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '支付成功',
|
|
title: '支付成功',
|
|
|
icon: 'nones'
|
|
icon: 'nones'
|
|
@@ -276,6 +278,7 @@
|
|
|
// })
|
|
// })
|
|
|
},
|
|
},
|
|
|
fail: function(err) {
|
|
fail: function(err) {
|
|
|
|
|
+ console.log(err,'失败')
|
|
|
that.$queue.showToast('支付失败');
|
|
that.$queue.showToast('支付失败');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -363,7 +366,7 @@
|
|
|
}
|
|
}
|
|
|
WeixinJSBridge.invoke(
|
|
WeixinJSBridge.invoke(
|
|
|
'getBrandWCPayRequest', {
|
|
'getBrandWCPayRequest', {
|
|
|
- "appId": response.appid, //公众号名称,由商户传入
|
|
|
|
|
|
|
+ "appId": response.appId, //公众号名称,由商户传入
|
|
|
"timeStamp": response.timeStamp, //时间戳,自1970年以来的秒数
|
|
"timeStamp": response.timeStamp, //时间戳,自1970年以来的秒数
|
|
|
"nonceStr": response.nonceStr, //随机串
|
|
"nonceStr": response.nonceStr, //随机串
|
|
|
"package": response.packageStr,
|
|
"package": response.packageStr,
|