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 @@