|
@@ -86,7 +86,7 @@ Page({
|
|
|
"paymentCashAmount": salePrice,
|
|
|
"paymentCouponAmount": 0,
|
|
|
"shopId": shopId,
|
|
|
- "opneId": app.globalData.userInfo?.liteOpenid,
|
|
|
+ "openId": app.globalData.userInfo?.liteOpenid,
|
|
|
"goodsInfos": [{
|
|
|
"goodsId": id,
|
|
|
"goodsNum": 1,
|
|
@@ -100,6 +100,20 @@ Page({
|
|
|
if (data.code === 200) {
|
|
|
const { paymentConfig, paymentType, orderNo } = data.data
|
|
|
this.onExecutePay(paymentConfig, paymentType, orderNo)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
this.onPayError()
|
|
|
}
|
|
@@ -113,11 +127,13 @@ Page({
|
|
|
success: async (wxres: any) => {
|
|
|
const res = await api_executePayment({
|
|
|
merOrderNo: paymentConfig.merOrderNo,
|
|
|
- paymentChannel: this.data.paymentChannel || 'wx_lite',
|
|
|
+ paymentChannel: this.data.paymentChannel || 'wx_lite',
|
|
|
paymentType,
|
|
|
userId: app.globalData.userInfo?.id,
|
|
|
code: wxres.code,
|
|
|
wxMiniAppId: app.globalData.appId
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
wx.hideLoading()
|
|
|
if(res.data.code === 200) {
|