diff --git a/src/common/apis/shop/type.ts b/src/common/apis/shop/type.ts index da2b66f..91fbbc6 100644 --- a/src/common/apis/shop/type.ts +++ b/src/common/apis/shop/type.ts @@ -56,6 +56,8 @@ export interface SubmitOrderRequestData { openid: string; /** 系统用户ID */ userid: string; + /** 汇邦云用户ID */ + ab98UserId: number; /** 企业ID */ corpid: string; /** 支付类型 wechat:微信 balance:余额 */ diff --git a/src/pages/product/components/checkout.vue b/src/pages/product/components/checkout.vue index a9b8ad0..5e46bc1 100644 --- a/src/pages/product/components/checkout.vue +++ b/src/pages/product/components/checkout.vue @@ -179,6 +179,7 @@ async function handleSubmit() { const requestData: SubmitOrderRequestData = { openid: openid.value, userid: wxStore.userid, + ab98UserId: wxStore.ab98User?.ab98UserId || 0, corpid: wxStore.corpid, goodsList: goodsListToSend, // <<<<<< 使用动态生成的 goodsListToSend // 根据选中的支付方式value获取对应的类型