From 15b878f2a4fc2f90c1a76fea3710134ece5914fb Mon Sep 17 00:00:00 2001 From: jacy <18049821889@163.com> Date: Mon, 27 Jul 2026 22:40:57 +0800 Subject: [PATCH] fix(admin,mini-user): product on-sale tag, store coords inputs, home UX Co-authored-by: Cursor --- apps/admin-web/src/pages/ProductsPage.tsx | 4 ++- apps/admin-web/src/pages/StoresPage.tsx | 33 +++++++++++++---------- apps/mini-user/src/pages/home/index.tsx | 2 +- apps/mini-user/src/styles/home.css | 4 +-- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/apps/admin-web/src/pages/ProductsPage.tsx b/apps/admin-web/src/pages/ProductsPage.tsx index 98d4d0f..6ec892e 100644 --- a/apps/admin-web/src/pages/ProductsPage.tsx +++ b/apps/admin-web/src/pages/ProductsPage.tsx @@ -271,7 +271,9 @@ export default function ProductsPage() { { title: '规格', dataIndex: 'spec', width: 120, ellipsis: true }, { title: '售价', dataIndex: 'price', width: 80, render: (v) => `¥${v}` }, { title: '权益额', dataIndex: 'benefitAmount', width: 80, render: (v) => `¥${v}` }, - { title: '状态', dataIndex: 'status', width: 80, render: (s) => {PRODUCT_STATUS_LABELS[s] || s} }, + { title: '状态', dataIndex: 'status', width: 80, render: (s) => ( + {PRODUCT_STATUS_LABELS[s] || s} + ) }, { title: '现场取货', dataIndex: 'allowOnSitePickup', diff --git a/apps/admin-web/src/pages/StoresPage.tsx b/apps/admin-web/src/pages/StoresPage.tsx index 38182a4..fbd7215 100644 --- a/apps/admin-web/src/pages/StoresPage.tsx +++ b/apps/admin-web/src/pages/StoresPage.tsx @@ -329,8 +329,6 @@ export default function StoresPage() { const selectedRegionCodes = Form.useWatch('regionCodes', createForm); const selectedCityId = Form.useWatch('cityId', createForm); const selectedCategoryParentId = Form.useWatch('categoryParentId', createForm); - const watchedLat = Form.useWatch('latitude', createForm); - const watchedLng = Form.useWatch('longitude', createForm); const categoryParentOptions = useMemo( () => @@ -866,12 +864,24 @@ export default function StoresPage() { - - + + + + + + + +