From ad2f52c037e8a82a6f497e083fe8ab6795ade8c1 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Thu, 25 Dec 2025 17:17:45 +0800 Subject: [PATCH] feat(web): add pricing menu --- web/src/store/menu.json | 40 +++++++++++++++++++++++++++++++++ web/src/views/Pricing/index.tsx | 4 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/web/src/store/menu.json b/web/src/store/menu.json index ce6486ad..a8232531 100644 --- a/web/src/store/menu.json +++ b/web/src/store/menu.json @@ -26,6 +26,46 @@ "sort": 0, "subs": [] }, + { + "id": 6, + "parent": 0, + "code": "pricing", + "label": "收费管理", + "i18nKey": "menu.pricing", + "path": "/pricing", + "enable": true, + "display": true, + "level": 1, + "sort": 0, + "subs": [ + { + "id": 61, + "parent": 6, + "code": "order", + "label": "订单支付", + "i18nKey": "menu.orderPayment", + "path": "/order-pay", + "enable": true, + "display": false, + "level": 1, + "sort": 0, + "subs": [] + }, + { + "id": 62, + "parent": 6, + "code": "orderHistory", + "label": "订单记录", + "i18nKey": "menu.orderHistory", + "path": "/orders", + "enable": true, + "display": false, + "level": 1, + "sort": 0, + "subs": [] + } + ] + }, { "id": 3, "parent": 0, diff --git a/web/src/views/Pricing/index.tsx b/web/src/views/Pricing/index.tsx index 076754a8..7c8df588 100644 --- a/web/src/views/Pricing/index.tsx +++ b/web/src/views/Pricing/index.tsx @@ -202,7 +202,7 @@ const PricingView: React.FC = () => { {/* Price */}
{typeof item.priceObj.price !== 'undefined' ? ( -
+
¥ {item.priceObj.price.toLocaleString()} @@ -212,7 +212,7 @@ const PricingView: React.FC = () => {
) : ( -
+
{t(item.priceObj.time)}
)}