|
@@ -194,10 +194,19 @@ export function usePay(opt = {}) {
|
|
|
// 微信支付
|
|
// 微信支付
|
|
|
function wxPay(options) {
|
|
function wxPay(options) {
|
|
|
Object.assign(wxData, options);
|
|
Object.assign(wxData, options);
|
|
|
|
|
+ console.log('cccc', options)
|
|
|
try {
|
|
try {
|
|
|
uni.requestPayment({
|
|
uni.requestPayment({
|
|
|
provider: "wxpay",
|
|
provider: "wxpay",
|
|
|
- orderInfo: options,
|
|
|
|
|
|
|
+ orderInfo: {
|
|
|
|
|
+ "appid": options.appid,
|
|
|
|
|
+ "partnerid": options.partnerId,
|
|
|
|
|
+ "prepayid": options.prepayId,
|
|
|
|
|
+ "package": options.packageVal,
|
|
|
|
|
+ "noncestr": options.nonceStr,
|
|
|
|
|
+ "timestamp": options.timestamp,
|
|
|
|
|
+ "sign": options.sign ,
|
|
|
|
|
+ },
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '订单支付中...',
|
|
title: '订单支付中...',
|