This commit is contained in:
dzc committed 2026-04-13 18:13:23 +08:00
1 parent 163930d64c
commit 6540edd5d1
4 files changed
+12 -6

No files matched your search

@@ -59,7 +59,8 @@ const doContainer = () => {
共{{ props.totCount }}件
</view>
</view>
<view class="flex items-center second-text-20 gap-5rpx">
<view v-if="takeOutSetting?.userTakeOutAmt > 0 || totalTakeOutPrice > 0"
class="flex items-center second-text-20 gap-5rpx">
<view class="font-size-22rpx">
另需配送费余¥{{ hooks.useMoney(takeOutSetting?.userTakeOutAmt ?? 0) }}
</view>
@@ -6,14 +6,16 @@ import { filePath } from "@@/utils/file"
export type Props = {
mchName: string
carList: any
takeOutSetting?: any
}
const props = withDefaults(defineProps<Props>(), {
mchName: "未知商户",
carList: [],
takeOutSetting: {},
})
const totalProductPrice = computed(() => {
return props.carList.reduce((pre, cur) => pre + cur.productCount, 0)
return props.carList.reduce((pre, cur) => pre + Number(cur.totalPrice), 0)
})
</script>
@@ -55,9 +57,11 @@ const totalProductPrice = computed(() => {
<view class="price-item-label">商品总价</view>
<view class="price-item-price">¥{{ hooks.useMoney(totalProductPrice) }}</view>
</view>
<view class="price-item">
<view v-if="takeOutSetting?.userTakeOutAmt > 0" class="price-item">
<view class="price-item-label">配送费</view>
<view class="price-item-price">¥{{ hooks.useMoney(100) }}</view>
<view class="price-item-price">
¥{{ hooks.useMoney(takeOutSetting?.userTakeOutAmt ?? 0) }}
</view>
</view>
</view>
</view>
+2 -1
View File
@@ -97,7 +97,8 @@
</view>
</view>
<view class="h-20rpx" />
<confirm-car-list :mch-name="state.mchDetail?.name ?? '未知商户'" :car-list="state.cartList" />
<confirm-car-list :take-out-setting="state?.parentCar?.takeOutSettingJson"
:mch-name="state.mchDetail?.name ?? '未知商户'" :car-list="state.cartList" />
<template #main-bottom>
<view class="z-200 p-x-30rpx p-y-30rpx bg-white">
<view class="flex items-center justify-between">
+1 -1
View File
@@ -41,7 +41,7 @@ export default {
*/
getOrCreateTakeOut: (params: any): Promise<any> =>
request({
url: "wallet/wallet-manage/get-or-create-take-out",
url: "wallet/wallet-manage/app/get-or-create-take-out",
method: "GET",
params: params,
}),