feat;微信支付

This commit is contained in:
2026-07-24 12:32:25 +08:00
parent 22a8f279f7
commit 618a7ee28e
2 changed files with 18 additions and 11 deletions
@@ -539,21 +539,28 @@ export default {
// } // }
// console.log("parmas-----", this.isCoupon); // console.log("parmas-----", this.isCoupon);
// if (this.isCoupon) {
// parmas["types"] = "1,2,3";
// parmas.isDeduction = true;
// }
// if (this.sed?.activedType == "seckill") { // if (this.sed?.activedType == "seckill") {
// parmas["types"] = "1,2,3"; // parmas["types"] = "1,2,3";
// } // }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
parmas["types"] = "1,3"; parmas["types"] = "1,3";
if (this.isCoupon) {
parmas["types"] = "1,3,5";
parmas.isDeduction = true;
}
// #endif // #endif
// #ifndef MP-WEIXIN // #ifndef MP-WEIXIN
parmas["types"] = "1,2,3"; parmas["types"] = "1,2,3";
if (this.isCoupon) {
parmas["types"] = "1,2,3,5";
parmas.isDeduction = true;
}
// #endif // #endif
const result = await getSupportPay(parmas); const result = await getSupportPay(parmas);
if (result && result.bizcode === 100) { if (result && result.bizcode === 100) {
const data = result.data || []; const data = result.data || [];
+1 -1
View File
@@ -9,7 +9,7 @@ import { feedback } from "@/api/payment.js";
export function appWxpayFun(alipay, orderId, orderNum) { export function appWxpayFun(alipay, orderId, orderNum) {
const type = alipay.type; const type = alipay.type;
const orderStr = alipay.orderStr; const orderStr = alipay.orderStr;
console.log("微信支付---", alipay,type); console.log("微信支付---", alipay, type);
if (type === "app") { if (type === "app") {
// app // app
const orderInfo = { const orderInfo = {