diff --git a/src/pages/prosperity-shop/goods-detail.vue b/src/pages/prosperity-shop/goods-detail.vue
index 3212ce2..85154cf 100644
--- a/src/pages/prosperity-shop/goods-detail.vue
+++ b/src/pages/prosperity-shop/goods-detail.vue
@@ -57,7 +57,7 @@
-
+
diff --git a/src/pages/prosperity-shop/settlement.vue b/src/pages/prosperity-shop/settlement.vue
index 37a1cf3..004413c 100644
--- a/src/pages/prosperity-shop/settlement.vue
+++ b/src/pages/prosperity-shop/settlement.vue
@@ -6,16 +6,21 @@
- 请选择自提点
-
-
- 请选择自提点
+ 请选择自提点
+
+
+
+
+ {{ curPickup.name }}
+ {{ curPickup.phone }}
+
+
+ 请选择自提点
- {{ 0 || "请选择自提点" }}
+ 请选择自提点
-
配送订单较多时,配送时间可能波动
@@ -35,7 +40,7 @@
- 你尚未选择任何商品
+ 你尚未选择任何商品
@@ -45,22 +50,99 @@
¥ {{ hooks.useMoney(totPrice) }}
共{{ totalCount }}件
- 提交订单
+ 提交订单
+
+
+
+
+
+
+
+
+
+
+
+ {{ v.name }}
+ {{ v.phone }}
+
+ {{ item.title }}:
+ {{ item.startTime }} ~
+ {{ item.endTime }}
+
+
+
+ 地址:{{ v.detailAddress }}
+
+
+ {{ v.introduction }}
+
+ 展开
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/prosperity-shop/shop-detail.vue b/src/pages/prosperity-shop/shop-detail.vue
index eb7c978..abe1e2b 100644
--- a/src/pages/prosperity-shop/shop-detail.vue
+++ b/src/pages/prosperity-shop/shop-detail.vue
@@ -85,7 +85,7 @@
-
+
diff --git a/src/pages/prosperity-shop/use-cart-buy.ts b/src/pages/prosperity-shop/use-cart-buy.ts
index 795388d..3196e13 100644
--- a/src/pages/prosperity-shop/use-cart-buy.ts
+++ b/src/pages/prosperity-shop/use-cart-buy.ts
@@ -45,12 +45,12 @@ export default function useCartBuy() {
await cartStore.removeProductCount(productId, merchantId)
}
- const goSettlement = () => {
- uni.navigateTo({ url: "/pages/prosperity-shop/settlement" })
+ const goSettlement = (mchId: string) => {
+ uni.navigateTo({ url: `/pages/prosperity-shop/settlement?mchId=${mchId}` })
}
// 点击提交订单
- const doBuy = async () => {
+ const doBuy = async (pickUpId: string) => {
if (isEmpty(cartList.value)) return uni.showToast({ title: "请至少购买一件商品", icon: "none" })
uni.showModal({
title: "提示",
@@ -58,18 +58,18 @@ export default function useCartBuy() {
confirmColor: "#0094ff",
success: async (res) => {
if (!res.confirm) return
- submitPay()
+ submitPay(pickUpId)
},
})
}
// 确认提交订单
- const submitPay = async () => {
+ const submitPay = async (pickUpId: string) => {
try {
uni.showLoading({ title: "支付中...", mask: false })
const { code, msg }: any = await orderApi.appCreateFarmerReserveOrder({
- carParentId: cartStore.cartList[0].parentCarId,
- hardType: "FARMER",
+ carParentId: cartList.value[0].parentCarId,
+ pickUpId,
})
if (code != 0) throw new Error(msg)
uni.showToast({ title: "支付成功", icon: "none" })
diff --git a/src/sheep/api/act-cancel.ts b/src/sheep/api/act-cancel.ts
index 8cffd52..185d1b6 100644
--- a/src/sheep/api/act-cancel.ts
+++ b/src/sheep/api/act-cancel.ts
@@ -3,7 +3,6 @@ import request from "@/sheep/utils/request"
export default {
/**
* app领取优惠券
- * 不用传参数
*/
appGet: (data: any) =>
request({