import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages' export default defineUniPages({ globalStyle: { navigationStyle: 'default', navigationBarTitleText: '宠屋', navigationBarBackgroundColor: '#f8f8f8', navigationBarTextStyle: 'black', backgroundColor: '#FFFFFF', 'app-plus': { bounce: 'none', }, }, easycom: { autoscan: true, custom: { '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue', '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue', '^s-(.*)': '@/modules/mall/sheep/components/s-$1/s-$1.vue', '^su-(.*)': '@/modules/mall/sheep/ui/su-$1/su-$1.vue', // components 所有的组件自动映射到页面 }, }, subPackages: [ { "root": "modules/mall", "pages": [ { "path": "index/index", "aliasPath": "/mall", "style": { "navigationBarTitleText": "宠物商城", "enablePullDownRefresh": true }, "meta": { "auth": false, "sync": true, "title": "宠物商城", "group": "商城" } }, { "path": "index/user", "style": { "navigationBarTitleText": "个人中心", "enablePullDownRefresh": true }, "meta": { "sync": true, "title": "个人中心", "group": "商城" } }, { "path": "index/category", "style": { "navigationBarTitleText": "商品分类" }, "meta": { "sync": true, "title": "商品分类", "group": "商城" } }, { "path": "index/cart", "style": { "navigationBarTitleText": "购物车" }, "meta": { "sync": true, "title": "购物车", "group": "商城" } }, { "path": "index/login", "style": { "navigationBarTitleText": "登录" } }, { "path": "index/search", "style": { "navigationBarTitleText": "搜索" }, "meta": { "sync": true, "title": "搜索", "group": "商城" } }, { "path": "index/page", "style": { "navigationBarTitleText": "" }, "meta": { "auth": false, "sync": true, "title": "自定义页面", "group": "商城" } }, { "path": "goods/index", "style": { "navigationBarTitleText": "商品详情" }, "meta": { "sync": true, "title": "普通商品", "group": "商品" } }, { "path": "goods/groupon", "style": { "navigationBarTitleText": "拼团商品" }, "meta": { "sync": true, "title": "拼团商品", "group": "商品" } }, { "path": "goods/seckill", "style": { "navigationBarTitleText": "秒杀商品" }, "meta": { "sync": true, "title": "秒杀商品", "group": "商品" } }, { "path": "goods/list", "style": { "navigationBarTitleText": "商品列表" }, "meta": { "sync": true, "title": "商品列表", "group": "商品" } }, { "path": "goods/comment/add", "style": { "navigationBarTitleText": "评价商品" }, "meta": { "auth": true } }, { "path": "goods/comment/list", "style": { "navigationBarTitleText": "商品评价" } }, { "path": "order/detail", "style": { "navigationBarTitleText": "订单详情" }, "meta": { "auth": true, "title": "订单详情" } }, { "path": "order/confirm", "style": { "navigationBarTitleText": "确认订单" }, "meta": { "auth": true, "title": "确认订单" } }, { "path": "order/list", "style": { "navigationBarTitleText": "我的订单", "enablePullDownRefresh": true }, "meta": { "auth": true, "sync": true, "title": "用户订单", "group": "订单中心" } }, { "path": "order/aftersale/apply", "style": { "navigationBarTitleText": "申请售后" }, "meta": { "auth": true, "title": "申请售后" } }, { "path": "order/aftersale/return-delivery", "style": { "navigationBarTitleText": "退货物流" }, "meta": { "auth": true, "title": "退货物流" } }, { "path": "order/aftersale/list", "style": { "navigationBarTitleText": "售后列表" }, "meta": { "auth": true, "sync": true, "title": "售后订单", "group": "订单中心" } }, { "path": "order/aftersale/detail", "style": { "navigationBarTitleText": "售后详情" }, "meta": { "auth": true, "title": "售后详情" } }, { "path": "order/aftersale/log", "style": { "navigationBarTitleText": "售后进度" }, "meta": { "auth": true, "title": "售后进度" } }, { "path": "order/express/log", "style": { "navigationBarTitleText": "物流轨迹" }, "meta": { "auth": true, "title": "物流轨迹" } }, { "path": "user/info", "style": { "navigationBarTitleText": "我的信息" }, "meta": { "auth": true, "sync": true, "title": "用户信息", "group": "用户中心" } }, { "path": "user/goods-collect", "style": { "navigationBarTitleText": "我的收藏" }, "meta": { "auth": true, "sync": true, "title": "商品收藏", "group": "用户中心" } }, { "path": "user/goods-log", "style": { "navigationBarTitleText": "我的足迹" }, "meta": { "auth": true, "sync": true, "title": "浏览记录", "group": "用户中心" } }, { "path": "user/address/list", "style": { "navigationBarTitleText": "收货地址" }, "meta": { "auth": true, "sync": true, "title": "地址管理", "group": "用户中心" } }, { "path": "user/address/edit", "style": { "navigationBarTitleText": "编辑地址" }, "meta": { "auth": true, "title": "编辑地址" } }, { "path": "user/goods_details_store/index", "style": { "navigationBarTitleText": "自提门店" }, "meta": { "auth": true, "sync": true, "title": "地址管理", "group": "用户中心" } }, { "path": "user/wallet/money", "style": { "navigationBarTitleText": "我的余额" }, "meta": { "auth": true, "sync": true, "title": "用户余额", "group": "用户中心" } }, { "path": "user/wallet/score", "style": { "navigationBarTitleText": "我的积分" }, "meta": { "auth": true, "sync": true, "title": "用户积分", "group": "用户中心" } }, { "path": "commission/index", "style": { "navigationBarTitleText": "分销" }, "meta": { "auth": true, "sync": true, "title": "分销中心", "group": "分销商城" } }, { "path": "commission/wallet", "style": { "navigationBarTitleText": "我的佣金" }, "meta": { "auth": true, "sync": true, "title": "用户佣金", "group": "分销中心" } }, { "path": "commission/goods", "style": { "navigationBarTitleText": "推广商品" }, "meta": { "auth": true, "sync": true, "title": "推广商品", "group": "分销商城" } }, { "path": "commission/order", "style": { "navigationBarTitleText": "分销订单" }, "meta": { "auth": true, "sync": true, "title": "分销订单", "group": "分销商城" } }, { "path": "commission/team", "style": { "navigationBarTitleText": "我的团队" }, "meta": { "auth": true, "sync": true, "title": "我的团队", "group": "分销商城" } }, { "path": "commission/promoter", "style": { "navigationBarTitleText": "推广人排行榜" }, "meta": { "auth": true, "sync": true, "title": "推广人排行榜", "group": "分销商城" } }, { "path": "commission/commission-ranking", "style": { "navigationBarTitleText": "佣金排行榜" }, "meta": { "auth": true, "sync": true, "title": "佣金排行榜", "group": "分销商城" } }, { "path": "commission/withdraw", "style": { "navigationBarTitleText": "申请提现" }, "meta": { "auth": true, "sync": true, "title": "申请提现", "group": "分销商城" } }, { "path": "app/sign", "style": { "navigationBarTitleText": "签到中心" }, "meta": { "auth": true, "sync": true, "title": "签到中心", "group": "应用" } }, { "path": "public/setting", "style": { "navigationBarTitleText": "系统设置" }, "meta": { "sync": true, "title": "系统设置", "group": "通用" } }, { "path": "public/richtext", "style": { "navigationBarTitleText": "富文本" }, "meta": { "sync": true, "title": "富文本", "group": "通用" } }, { "path": "public/faq", "style": { "navigationBarTitleText": "常见问题" }, "meta": { "sync": true, "title": "常见问题", "group": "通用" } }, { "path": "public/error", "style": { "navigationBarTitleText": "错误页面" } }, { "path": "public/webview", "style": { "navigationBarTitleText": "" } }, { "path": "coupon/list", "style": { "navigationBarTitleText": "领券中心" }, "meta": { "sync": true, "title": "领券中心", "group": "优惠券" } }, { "path": "coupon/detail", "style": { "navigationBarTitleText": "优惠券" }, "meta": { "auth": false, "sync": true, "title": "优惠券详情", "group": "优惠券" } }, { "path": "chat/index", "style": { "navigationBarTitleText": "客服" }, "meta": { "auth": true, "sync": true, "title": "客服", "group": "客服" } }, { "path": "pay/index", "style": { "navigationBarTitleText": "收银台" } }, { "path": "pay/result", "style": { "navigationBarTitleText": "支付结果" } }, { "path": "pay/recharge", "style": { "navigationBarTitleText": "充值余额" }, "meta": { "auth": true, "sync": true, "title": "充值余额", "group": "支付" } }, { "path": "pay/recharge-log", "style": { "navigationBarTitleText": "充值记录" }, "meta": { "auth": true, "sync": true, "title": "充值记录", "group": "支付" } }, { "path": "activity/groupon/detail", "style": { "navigationBarTitleText": "拼团详情" } }, { "path": "activity/groupon/order", "style": { "navigationBarTitleText": "我的拼团", "enablePullDownRefresh": true }, "meta": { "auth": true, "sync": true, "title": "拼团订单", "group": "营销活动" } }, { "path": "activity/index", "style": { "navigationBarTitleText": "营销商品" }, "meta": { "sync": true, "title": "营销商品", "group": "营销活动" } }, { "path": "activity/groupon/list", "style": { "navigationBarTitleText": "拼团活动" }, "meta": { "sync": true, "title": "拼团活动", "group": "营销活动" } }, { "path": "activity/seckill/list", "style": { "navigationBarTitleText": "秒杀活动" }, "meta": { "sync": true, "title": "秒杀活动", "group": "营销活动" } } ] }, ], tabBar: { color: '#999999', selectedColor: '#000000', backgroundColor: '#F8F8F8', borderStyle: 'black', height: '50px', fontSize: '10px', iconWidth: '24px', spacing: '3px', list: [ { pagePath: 'pages/index/index', }, { pagePath: 'pages/index/404', }, ], }, })