Commit 9aaa3b90 authored by GuanHua's avatar GuanHua

fix: 判断交易规则接口添加参数

parent e6d719e0
......@@ -392,11 +392,12 @@ const CommodityDetail = (props) => {
postFn = PublicApi.postSearchShopPurchaseSaveOrUpdatePurchase
break;
}
const userInfo = getAuth() || {}
const directParam: any = {
productId: selectCommodityId,
memberId,
shopId
shopId: storeId,
memberRoleId: userInfo.memberRoleId
}
PublicApi.postOrderDirectPayment(directParam).then(res => {
if (res.code === 1000) {
......
......@@ -393,7 +393,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
* @param ids
*/
const deleteListItems = (ids: number[]) => {
console.log(ids, "ids")
const newOrderList = JSON.parse(JSON.stringify(orderList))
const result = []
for (const item of newOrderList) {
......@@ -607,7 +606,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
setConfirmLoading(false)
if (res.code === 1000) {
message.destroy()
PublicApi.postOrderDirectPayment({ productId: productIds[0], memberId: selectItem.memberId }).then(res => {
param.productId = productIds[0]
param.productIds = undefined
PublicApi.postOrderDirectPayment(param).then(res => {
if (res.code === 1000) {
message.destroy()
const sessionKey = `${selectItem.id}${new Date().getTime()}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment