diff --git a/pages/order_package/order_submit/order_submit.vue b/pages/order_package/order_submit/order_submit.vue
index d1def93..2c46efd 100644
--- a/pages/order_package/order_submit/order_submit.vue
+++ b/pages/order_package/order_submit/order_submit.vue
@@ -60,7 +60,7 @@
¥{{
pItem.totalPrice
- }}
+ }}
每件到手价¥{{ pItem.unitPrice }}
@@ -84,7 +84,7 @@
¥{{
pItem.totalPrice
- }}
+ }}
每件到手价¥{{ pItem.unitPrice }}
@@ -108,7 +108,7 @@
运费{{
getValue(PRODUCT_DELIVERY_TIME, addItem.deliveryTime)
- }}
+ }}
{{ orderInfo.postage ? "¥" + orderInfo.postage : "包邮" }}
@@ -539,21 +539,28 @@ export default {
// }
// console.log("parmas-----", this.isCoupon);
- // if (this.isCoupon) {
- // parmas["types"] = "1,2,3";
- // parmas.isDeduction = true;
- // }
+
// if (this.sed?.activedType == "seckill") {
// parmas["types"] = "1,2,3";
// }
// #ifdef MP-WEIXIN
parmas["types"] = "1,3";
+ if (this.isCoupon) {
+ parmas["types"] = "1,3,5";
+ parmas.isDeduction = true;
+ }
// #endif
// #ifndef MP-WEIXIN
parmas["types"] = "1,2,3";
+ if (this.isCoupon) {
+ parmas["types"] = "1,2,3,5";
+ parmas.isDeduction = true;
+ }
// #endif
+
+
const result = await getSupportPay(parmas);
if (result && result.bizcode === 100) {
const data = result.data || [];
diff --git a/utils/payUtils.js b/utils/payUtils.js
index dff47d8..4b728ac 100644
--- a/utils/payUtils.js
+++ b/utils/payUtils.js
@@ -9,7 +9,7 @@ import { feedback } from "@/api/payment.js";
export function appWxpayFun(alipay, orderId, orderNum) {
const type = alipay.type;
const orderStr = alipay.orderStr;
- console.log("微信支付---", alipay,type);
+ console.log("微信支付---", alipay, type);
if (type === "app") {
// app
const orderInfo = {
@@ -44,10 +44,10 @@ export function appWxpayFun(alipay, orderId, orderNum) {
signType: "RSA",
paySign: alipay.sign, // 签名,这里用的 MD5/RSA 签名
};
-
- console.log("微信小程序支付---", orderInfo);
+
+ console.log("微信小程序支付---", orderInfo);
uni.requestPayment({
- ...orderInfo,
+ ...orderInfo,
success: function (res) {
console.log("success:" + res);
payFeedbackFun(orderId, orderNum, 1);