From a093ca4766e379ff849f1cc12bd1418b7a8d5ced Mon Sep 17 00:00:00 2001
From: aaron <>
Date: Fri, 14 Mar 2025 08:47:40 +0800
Subject: [PATCH] update
---
src/views/community/CommunityList.vue | 31 +++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/src/views/community/CommunityList.vue b/src/views/community/CommunityList.vue
index b8f4306..98c88a2 100644
--- a/src/views/community/CommunityList.vue
+++ b/src/views/community/CommunityList.vue
@@ -45,6 +45,9 @@
超 {{ record.extra_package_threshold }} 件,加收 {{ record.extra_package_price }} 元/件
+
+ 多驿站费:{{ record.more_station_price || 0 }} 元/站
+
@@ -236,6 +239,22 @@
/>
超过临界数后,每件商品额外收取的费用
+
+
+
+ 订单包含多个驿站时,每增加一个驿站额外收取的费用
+
@@ -864,7 +883,8 @@ export default defineComponent({
const deliveryPriceForm = ref({
base_price: 0,
extra_package_threshold: 1,
- extra_package_price: 0
+ extra_package_price: 0,
+ more_station_price: 0
})
const currentCommunityId = ref(null)
@@ -874,7 +894,8 @@ export default defineComponent({
deliveryPriceForm.value = {
base_price: record.base_price || 0,
extra_package_threshold: record.extra_package_threshold || 1,
- extra_package_price: record.extra_package_price || 0
+ extra_package_price: record.extra_package_price || 0,
+ more_station_price: record.more_station_price || 0
}
deliveryPriceModalVisible.value = true
}
@@ -886,7 +907,8 @@ export default defineComponent({
const res = await request.put(`/api/community/${currentCommunityId.value}`, {
base_price: deliveryPriceForm.value.base_price,
extra_package_threshold: deliveryPriceForm.value.extra_package_threshold,
- extra_package_price: deliveryPriceForm.value.extra_package_price
+ extra_package_price: deliveryPriceForm.value.extra_package_price,
+ more_station_price: deliveryPriceForm.value.more_station_price
})
if (res.code === 200) {
@@ -911,7 +933,8 @@ export default defineComponent({
deliveryPriceForm.value = {
base_price: 0,
extra_package_threshold: 1,
- extra_package_price: 0
+ extra_package_price: 0,
+ more_station_price: 0
}
}