feat:【MALL 商城】商城分佣提现,完成对微信转账(小程序)的对接

This commit is contained in:
YunaiV
2025-05-11 12:39:23 +08:00
parent 62d1f4f273
commit 5071816ea0
4 changed files with 68 additions and 3 deletions
+5 -1
View File
@@ -172,7 +172,7 @@
import BrokerageApi from '@/sheep/api/trade/brokerage';
import DictApi from '@/sheep/api/system/dict';
import SLayout from '@/sheep/components/s-layout/s-layout.vue';
import { goBindWeixin } from '@/sheep/platform/pay';
import { getWeixinPayChannelCode, goBindWeixin } from '@/sheep/platform/pay';
const headerBg = sheep.$url.css('/static/img/shop/user/withdraw_bg.png');
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
@@ -236,6 +236,10 @@
};
if (state.accountInfo.type === '5') {
data.userAccount = openid;
data.transferChannelCode = getWeixinPayChannelCode();
} else {
delete data.userAccount;
delete data.transferChannelCode;
}
let { code } = await BrokerageApi.createBrokerageWithdraw(data);
if (code !== 0) {