From 8ec53f9d3d35ee07862aa84fb6e6805f402cd2c5 Mon Sep 17 00:00:00 2001
From: yml2213
Date: Wed, 16 Sep 2026 12:49:21 +0800
Subject: [PATCH] =?UTF-8?q?style(frontend):=20=E4=BF=AE=E5=A4=8D=20prettie?=
=?UTF-8?q?r=20=E6=A0=BC=E5=BC=8F=E9=97=A8=E7=A6=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
三个本分支改动的文件未过 prettier --check,导致 npm run check 与部署门禁红灯。
按项目风格重新排版后台分销站点页、移动端发布页与定价计算 composable,不改动任何逻辑。
验证:npx prettier --check . 通过;npm run check(format + eslint --max-warnings=0 + vue-tsc)通过;vitest 7 文件 / 32 用例通过。
---
.../admin/views/AdminDistributionSitesView.vue | 11 +++++++++--
.../seller/views/MobileSellerListingCreateView.vue | 3 ++-
.../src/shared/composables/usePricingCalculator.ts | 5 ++++-
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/frontend/src/features/admin/views/AdminDistributionSitesView.vue b/frontend/src/features/admin/views/AdminDistributionSitesView.vue
index e891b09..290cf47 100644
--- a/frontend/src/features/admin/views/AdminDistributionSitesView.vue
+++ b/frontend/src/features/admin/views/AdminDistributionSitesView.vue
@@ -348,7 +348,10 @@ onMounted(() => {
-
+
{{
Number(row.receive_ratio_delta || 0) > 0
? `-${Number(row.receive_ratio_delta).toFixed(1)} 点`
@@ -599,7 +602,11 @@ onMounted(() => {
取消
-
+
保存设置
diff --git a/frontend/src/features/seller/views/MobileSellerListingCreateView.vue b/frontend/src/features/seller/views/MobileSellerListingCreateView.vue
index 1572957..6b77770 100644
--- a/frontend/src/features/seller/views/MobileSellerListingCreateView.vue
+++ b/frontend/src/features/seller/views/MobileSellerListingCreateView.vue
@@ -702,7 +702,8 @@ const screenshotGuides: Record = {
本站可下调收号比例换取更高利润,但不能高于主站比例。当前按站点配置计算。
- {{ saleRatioRangeText }}{{ isDistribution ? '。' : ',比例越高出租速度越快,自行选择。' }}
+ {{ saleRatioRangeText
+ }}{{ isDistribution ? '。' : ',比例越高出租速度越快,自行选择。' }}