购物车下单

This commit is contained in:
weiwei committed 2025-06-19 15:30:32 +08:00
1 parent f2dd10aefb
commit 7c083a9900
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ const submitPay = async () => {
if (isEmpty(cartStore.cart)) return uni.showToast({ title: "请至少购买一件商品", icon: "none" })
uni.showLoading({ title: "支付中...", mask: false })
const { data, code }: any = await payApi.createHardwareOrder({ carParentId: cartStore.cart[0].parentCarId, hardType: "SUPERMARKET" })
const { data, code }: any = await payApi.createSupermarketOrder({ carParentId: cartStore.cart[0].parentCarId, hardType: "SUPERMARKET" })
if (code != 0) throw new Error()
uni.showToast({ title: "支付成功", icon: "none" })
router.jump("/pages/tabbar/order")
+8
View File
@@ -25,6 +25,14 @@ export default {
params,
})
},
// 创建线上超市订单
createSupermarketOrder: (params) => {
return request({
url: "/hard/hard-order/app/create-supermarket-order",
method: "GET",
params,
})
},
// 创建二维码订单
createQrCodeOrder: (data): any => {
return request({