Merge #58 into develop_web from feature/20251219_zy
feat(web): add pricing menu * feature/20251219_zy: (1 commits) feat(web): add pricing menu Signed-off-by: zhaoying <zhaoying@redbearai.com> Merged-by: zhaoying <zhaoying@redbearai.com> CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/58
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -202,7 +202,7 @@ const PricingView: React.FC = () => {
|
||||
{/* Price */}
|
||||
<div className="rb:mb-5">
|
||||
{typeof item.priceObj.price !== 'undefined' ? (
|
||||
<div className="rb:flex rb:items-baseline">
|
||||
<div className="rb:flex rb:items-baseline rb:h-16">
|
||||
<span className="rb:text-[16px] rb:text-[#5B6167] rb:font-regular rb:mr-1 rb:mb-1">¥</span>
|
||||
<span className="rb:text-[40px] rb:font-extrabold">
|
||||
{item.priceObj.price.toLocaleString()}
|
||||
@@ -212,7 +212,7 @@ const PricingView: React.FC = () => {
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<div className="rb:text-2xl rb:font-bold rb:text-gray-900">
|
||||
<div className="rb:text-[28px] rb:h-16 rb:pb-1 rb:font-extrabold rb:flex rb:items-end">
|
||||
{t(item.priceObj.time)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user