|
|
@@ -170,6 +170,7 @@
|
|
|
|
|
|
<script>
|
|
|
import wx from 'weixin-js-sdk';
|
|
|
+import { h5Url } from '@/common/config.js';
|
|
|
import { getPointOrderInfo, productOrderCancel, productOrderPay } from '@/api/pointOrder'
|
|
|
import { getInfo, getSignature } from '@/api/index.js';
|
|
|
|
|
|
@@ -303,14 +304,14 @@ export default {
|
|
|
// appId: uni.getAppBaseInfo().host.appId, // 公众号ID
|
|
|
timestamp: this.wxconfig.timestamp, // 时间戳,自1970年以来的秒数
|
|
|
nonceStr: this.wxconfig.nonceStr, // 随机串
|
|
|
- signature: this.wxconfig.sign, // 微信签名方式
|
|
|
+ signature: this.wxconfig.signature, // 微信签名方式
|
|
|
jsApiList: ['getBrandWCPayRequest']
|
|
|
});
|
|
|
var vm = this
|
|
|
wx.invoke('getBrandWCPayRequest',
|
|
|
// 下面参数内容都是后台返回的
|
|
|
{
|
|
|
- 'appId': payConfig.appid, // 公众号名称,由商户传入
|
|
|
+ 'appId': payConfig.appId, // 公众号名称,由商户传入
|
|
|
'timeStamp': payConfig.timeStamp, // 时间戳
|
|
|
'nonceStr': payConfig.nonceStr, // 随机串
|
|
|
'package': payConfig.package, // 预支付id
|