Parcourir la source

保证金支付切换为汇付通

1410417013 il y a 7 mois
Parent
commit
4585ddb1bf
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      my/other/money.vue

+ 5 - 2
my/other/money.vue

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