/** * 个人中心菜单数据 + 黑红双色矢量图标(移植自原型 profile-icons.js 风格) * 图标:深灰 #333 主线条 + 红 #FF2B21 点缀,viewBox 28,输出为 data URI 供 使用 */ // 主线条:黑灰描边,圆角端点 const S = 'fill="none" stroke="#333" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"' // 点缀线条:红色描边 const R = 'fill="none" stroke="#FF2B21" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"' /** 包裹为完整 svg 并转 data URI(小程序 image 可直接渲染) */ const icon = (inner) => 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(`${inner}`) // ===== 图标表 ===== export const ICONS = { // 待付款:钱包 + 红¥ pay: icon(`¥`), // 待发货:箱子 + 红盖 ship: icon(``), // 已取消:圆 + 红叉 cancel: icon(``), // 待评价:气泡 + 红三点 comment: icon(``), // 售后:圆 + 红回退箭头 refund: icon(``), // 我的订单:清单 + 红勾选行 orders: icon(``), // 团购订单:拼单双人(一黑一红)+ 底框 groupOrder: icon(``), // 收货地址:定位 + 红中心点 address: icon(``), // 购物车:红车轮 cart: icon(``), // 服务订单:清单 + 红钟表 serviceOrder: icon(``), // 月账单:日历 + 红¥ monthlyBill: icon(`¥`), // 家政合同:折角文件 + 红签名行 contract: icon(``), // 附近门店:店铺 + 红门 shop: icon(``), // 支付记录:单据 + 红¥ records: icon(`¥`), // 临停缴费:P 牌 + 红¥ parkFee: icon(`P¥`), // 停车订单:单据 + 红 P parkOrder: icon(`P`), // 车辆管理:汽车 + 红车轮 carManage: icon(``), // 商家入驻:店铺 + 红加号 merchant: icon(``), // 商家端:店铺 + 红店员 merchantSide: icon(``), // 物业端:高楼 + 红窗 propertySide: icon(``), // 师傅端:人 + 红扳手 workerSide: icon(``), // 目录行:好物袋 / 到家房 / 功能四宫格 bag: icon(``), home: icon(``), grid: icon(``) } // ===== 我的订单:五状态格(tab 对应订单页 categoryList 索引:0全部/1待付款/2待发货/3已取消/4待评价/6售后) ===== export const ORDER_TABS = [ { label: '待付款', icon: ICONS.pay, tab: 1 }, { label: '待发货', icon: ICONS.ship, tab: 2 }, { label: '已取消', icon: ICONS.cancel, tab: 3 }, { label: '待评价', icon: ICONS.comment, tab: 4 }, { label: '售后', icon: ICONS.refund, tab: 6 } ] // ===== 服务目录分组(点击目录行弹抽屉并定位到分组;items 沿用原各区块跳转) ===== export const MENU_GROUPS = [ { key: 'goods', title: '我的好物', icon: ICONS.bag, items: [ { name: '我的订单', icon: ICONS.orders, url: '/packages/myOrders/index/index' }, { name: '团购订单', icon: ICONS.groupOrder, url: '/packages/myOrders/groupOrders/index' }, { name: '收货地址', icon: ICONS.address, url: '/packages/shop/address/index' }, { name: '购物车', icon: ICONS.cart, url: '/packages/shopCar/index/index' } ] }, { key: 'daojia', title: '我的到家', icon: ICONS.home, items: [ { name: '服务订单', icon: ICONS.serviceOrder, url: '/packages/homeService/myOrders/index' }, { name: '月账单', icon: ICONS.monthlyBill, url: '/packages/homeService/myMonthlyBills/index' }, { name: '家政合同', icon: ICONS.contract, url: '/packages/homeService/myContracts/index' } ] }, { key: 'store', title: '门店服务', icon: ICONS.shop, items: [ { name: '附近门店', icon: ICONS.shop, url: '/packages/localLife/index/index' }, { name: '支付记录', icon: ICONS.records, url: '/packages/localLife/payInfo/index' } ] }, { key: 'park', title: '智慧停车', icon: ICONS.carManage, items: [ { name: '临停缴费', icon: ICONS.parkFee, url: '/packages/park/temporaryOrder/index' }, { name: '停车订单', icon: ICONS.parkOrder, url: '/packages/park/parkOrder/index' }, { name: '车辆管理', icon: ICONS.carManage, url: '/packages/park/index/index' } ] }, { key: 'enter', title: '好店入驻', icon: ICONS.merchant, items: [ { name: '商家入驻', icon: ICONS.merchant, url: '/packages/shopEnter/choose/index' } ] } ] // ===== 功能服务(放最后;isShow 由登录态动态刷新,图标按端映射) ===== export const FUNC_GROUP_META = { key: 'func', title: '功能服务', icon: ICONS.grid } export const FUNC_ICONS = { 商家端: ICONS.merchantSide, 物业端: ICONS.propertySide, 师傅端: ICONS.workerSide }