import { renderFaIcon, schemaPage, customPage } from './helpers' export const shopSection = { key: 'shop', label: '商城&商品', icon: renderFaIcon('fas fa-shopping-cart'), route: '/shop', children: [ customPage({ key: 'shop-products', name: 'ShopProducts', label: '商品管理', route: '/shop/products', component: 'ShopProducts', title: '商品管理', desc: '管理所有商品的上架、编辑和库存。', canonicalDomain: 'shop', section: 'products', }), customPage({ key: 'shop-orders', name: 'ShopOrders', label: '订单管理', route: '/shop/orders', component: 'ShopOrders', title: '订单管理', desc: '查看和管理所有交易订单。', canonicalDomain: 'shop', section: 'orders', }), customPage({ key: 'shop-withdrawals', name: 'ShopWithdrawals', label: '提现管理', route: '/shop/withdrawals', component: 'ShopWithdrawals', title: '提现管理', desc: '审核和管理创作者提现申请。', canonicalDomain: 'shop', section: 'withdrawals', }), customPage({ key: 'shop-coupons', name: 'ShopCoupons', label: '优惠券', route: '/shop/coupons', component: 'ShopCoupons', title: '优惠券', desc: '创建和管理优惠券。', canonicalDomain: 'shop', section: 'coupons', }), customPage({ key: 'shop-after-sale', name: 'ShopAfterSale', label: '售后管理', route: '/shop/after-sale', component: 'ShopAfterSale', title: '售后管理', desc: '管理退款、换货等售后工单。', canonicalDomain: 'shop', section: 'after-sale', }), customPage({ key: 'shop-shipping', name: 'ShopShipping', label: '物流管理', route: '/shop/shipping', component: 'ShopShipping', title: '物流管理', desc: '管理订单发货、物流单号和发货状态。', canonicalDomain: 'shop', section: 'shipping', }), schemaPage({ key: 'shop-basic', name: 'ShopBasic', label: '商城基础', route: '/shop/basic', title: '商城基础', desc: '商城总开关、首页链接、面包屑和 URL 别名设置。', canonicalDomain: 'shop', section: 'basic', }), schemaPage({ key: 'shop-list', name: 'ShopList', label: '商品列表', route: '/shop/list', title: '商品列表', desc: '商品列表排序、分页、卡片样式和销量显示配置。', canonicalDomain: 'shop', section: 'list', }), schemaPage({ key: 'shop-contact', name: 'ShopContact', label: '客服配置', route: '/shop/contact', title: '客服配置', desc: '商品详情页客服按钮和联系方式配置。', canonicalDomain: 'shop', section: 'contact', }), schemaPage({ key: 'shop-single', name: 'ShopSingle', label: '商品详情', route: '/shop/single', title: '商品详情', desc: '商品详情页布局、相关推荐和底部内容设置。', canonicalDomain: 'shop', section: 'single', }), schemaPage({ key: 'shop-product-defaults', name: 'ShopProductDefaults', label: '商品默认参数', route: '/shop/product-defaults', title: '商品默认参数', desc: '主题级商品参数默认值,作为参数继承链的根。', canonicalDomain: 'shop', section: 'product-defaults', }), schemaPage({ key: 'shop-shipping-config', name: 'ShopShippingConfig', label: '物流配置', route: '/shop/shipping-config', title: '物流配置', desc: '快递查询接口、物流公司列表和收货地址设置。', canonicalDomain: 'shop', section: 'shipping-config', }), schemaPage({ key: 'shop-timing', name: 'ShopTiming', label: '时效与售后原因', route: '/shop/timing', title: '时效与售后原因', desc: '确认收货、评价、退货时效和售后原因配置。', canonicalDomain: 'shop', section: 'timing', }), customPage({ key: 'shop-dashboard', name: 'ShopDashboard', label: '商城概览', route: '/shop', component: 'ShopDashboard', title: '商城概览', desc: '商品管理、订单系统、库存管理等电商功能概览。', canonicalDomain: 'shop', section: 'dashboard', }), ], }