From 58b34666bd719286abf4fc431a63dfaa0312f5a0 Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Mon, 30 Mar 2026 15:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=A3=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/Config.vue | 35 +++++++++++++++++++++++++++++ miniapp/manifest.json | 2 +- miniapp/pages/delivery/delivery.vue | 18 ++++++++++----- miniapp/pages/food/food-order.vue | 18 ++++++++++----- miniapp/pages/help/help.vue | 21 ++++++++++++----- miniapp/pages/pickup/pickup.vue | 18 ++++++++++----- miniapp/pages/purchase/purchase.vue | 19 +++++++++++----- miniapp/utils/api.js | 5 +++++ miniapp/utils/request.js | 4 ++-- server/Endpoints/ConfigEndpoints.cs | 13 +++++++++++ server/Endpoints/OrderEndpoints.cs | 11 ++++++--- server/Services/WxPayService.cs | 10 +++++---- server/appsettings.json | 5 ++--- 13 files changed, 140 insertions(+), 39 deletions(-) diff --git a/admin/src/views/Config.vue b/admin/src/views/Config.vue index 378ca29..245fd59 100644 --- a/admin/src/views/Config.vue +++ b/admin/src/views/Config.vue @@ -124,6 +124,22 @@ + + + + + + + + + 小程序下单页的跑腿佣金最低金额,修改后提示文字自动更新 + + + 保存 + + + + @@ -184,6 +200,7 @@ const commissionRules = ref([]) // 系统配置 const configs = reactive({ qrcode: '', agreement: '', privacy: '', runner_agreement: '', withdrawal_guide: '' }) const freezeDays = ref(1) +const minCommission = ref(1.0) // 页面顶图配置 const pageBannerList = [ @@ -257,6 +274,23 @@ async function saveFreezeDays() { } } +async function fetchMinCommission() { + try { + const res = await request.get('/admin/config/min_commission') + if (res?.value) minCommission.value = parseFloat(res.value) || 1.0 + } catch (e) {} +} + +async function saveMinCommission() { + saving.value = true + try { + await request.put('/admin/config/min_commission', { value: String(minCommission.value) }) + ElMessage.success('最低佣金保存成功') + } finally { + saving.value = false + } +} + async function fetchPageBanners() { for (const item of pageBannerList) { try { @@ -287,6 +321,7 @@ onMounted(async () => { fetchConfig('runner_agreement'), fetchConfig('withdrawal_guide'), fetchFreezeDays(), + fetchMinCommission(), fetchPageBanners() ]) }) diff --git a/miniapp/manifest.json b/miniapp/manifest.json index 95cae1d..9a7f355 100644 --- a/miniapp/manifest.json +++ b/miniapp/manifest.json @@ -1,5 +1,5 @@ { - "name" : "miniapp", + "name" : "校园跑腿侠", "appid" : "__UNI__F1854F8", "description" : "", "versionName" : "1.0.0", diff --git a/miniapp/pages/delivery/delivery.vue b/miniapp/pages/delivery/delivery.vue index bce0a22..366e767 100644 --- a/miniapp/pages/delivery/delivery.vue +++ b/miniapp/pages/delivery/delivery.vue @@ -63,7 +63,7 @@ 6.跑腿佣金 - + 佣金先由平台保管,接单方完成订单后才会收到佣金 @@ -79,7 +79,7 @@