From 3113426d8f4d3c7d51502040f61b22e23dc6b1e9 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sat, 31 Oct 2026 13:55:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(seller):=20=E4=BC=98=E5=8C=96=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E9=A1=B5=E5=B8=83=E5=B1=80=E5=B9=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=8D=89=E7=A8=BF=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../seller/SellerListingDetailPage.tsx | 19 - .../features/seller/SellerListingFormPage.tsx | 369 ++++++++++++++---- frontend/src/styles/seller.css | 127 +++++- 3 files changed, 412 insertions(+), 103 deletions(-) diff --git a/frontend/src/features/seller/SellerListingDetailPage.tsx b/frontend/src/features/seller/SellerListingDetailPage.tsx index b9b99a1..cde3dbe 100644 --- a/frontend/src/features/seller/SellerListingDetailPage.tsx +++ b/frontend/src/features/seller/SellerListingDetailPage.tsx @@ -408,10 +408,6 @@ export function SellerListingDetailPage({ mobile = false }: { mobile?: boolean } 卖家到手价 {formatMoney(sellerPriceCent(listing))} -
- 买家挂牌价 - {formatMoney(listing.price_cent)} -
押金 {formatMoney(listing.deposit_amount_cent)} @@ -457,21 +453,6 @@ export function SellerListingDetailPage({ mobile = false }: { mobile?: boolean } {formatMoney(moneyCent(breakdown.consumable_price_cent, breakdown.consumable_price))}
-
- 买家比例 - {ratioText(breakdown.buyer_ratio_bps, breakdown.buyer_ratio)} -
-
- 平台加价 - - {formatMoney( - moneyCent( - breakdown.platform_markup_amount_cent, - breakdown.platform_markup_amount - ) - )} - -
diff --git a/frontend/src/features/seller/SellerListingFormPage.tsx b/frontend/src/features/seller/SellerListingFormPage.tsx index a1995a0..8061aa3 100644 --- a/frontend/src/features/seller/SellerListingFormPage.tsx +++ b/frontend/src/features/seller/SellerListingFormPage.tsx @@ -8,13 +8,11 @@ import { Button, Card, Checkbox, - Col, Divider, Empty, Image, Input, InputNumber, - Row, Segmented, Select, Space, @@ -72,7 +70,7 @@ import { type PublishSalePriceConfig, type PublishScreenshotSlot, } from './options' -import { defaultPublishForm, type PublishForm } from './types' +import { defaultPublishForm, type PublishDraft, type PublishForm } from './types' const MAX_SCREENSHOTS = 9 const SCAN_ONLY_MARK = '微信' @@ -164,20 +162,36 @@ function ChoiceField(props: { }) { const { label, required, value, options, placeholder, onChange } = props return ( -