diff --git a/.pages-backup/pages.consumer.2026-05-21T04-00-37-252Z.json b/.pages-backup/pages.consumer.2026-05-21T04-00-37-252Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-21T04-00-37-252Z.json @@ -0,0 +1,461 @@ +{ + "pages": [ + { + "path": "pages/main/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/center", + "style": { + "navigationBarTitleText": "用户中心" + } + }, + { + "path": "pages/user/profile", + "style": { + "navigationBarTitleText": "个人资料" + } + }, + { + "path": "pages/user/change-password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "pages/user/bind-phone", + "style": { + "navigationBarTitleText": "绑定手机" + } + }, + { + "path": "pages/user/bind-email", + "style": { + "navigationBarTitleText": "绑定邮箱" + } + }, + { + "path": "pages/main/messages", + "style": { + "navigationBarTitleText": "消息", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/main/cart", + "style": { + "navigationBarTitleText": "购物车", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } + } + ], + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "edit-profile", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "withdraw", + "style": { + "navigationBarTitleText": "余额提现" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "channel-detail", + "style": { + "navigationBarTitleText": "频道详情", + "navigationStyle": "custom" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address", + "style": { + "navigationBarTitleText": "地址" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "收银台" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "我的订单", + "enablePullDownRefresh": true + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "chat_new", + "style": { + "navigationBarTitleText": "客服聊天(新版)" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + }, + { + "path": "subscription/followed-shops", + "style": { + "navigationBarTitleText": "关注店铺" + } + }, + { + "path": "points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "points/signin", + "style": { + "navigationBarTitleText": "签到" + } + }, + { + "path": "points/exchange", + "style": { + "navigationBarTitleText": "积分兑换" + } + }, + { + "path": "points/exchange-records", + "style": { + "navigationBarTitleText": "兑换记录" + } + }, + { + "path": "red-packets/index", + "style": { + "navigationBarTitleText": "我的红包" + } + }, + { + "path": "bank-cards/index", + "style": { + "navigationBarTitleText": "银行卡管理" + } + }, + { + "path": "bank-cards/add", + "style": { + "navigationBarTitleText": "添加银行卡" + } + }, + { + "path": "home-service/index", + "style": { + "navigationBarTitleText": "居家上门服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/apply", + "style": { + "navigationBarTitleText": "提交服务申请", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/service-detail", + "style": { + "navigationBarTitleText": "预约服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/order-detail", + "style": { + "navigationBarTitleText": "服务单详情", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/feedback", + "style": { + "navigationBarTitleText": "验收反馈", + "navigationStyle": "custom" + } + }, + { + "path": "bank-cards/verify", + "style": { + "navigationBarTitleText": "银行卡验证" + } + }, + { + "path": "balance/index", + "style": { + "navigationBarTitleText": "余额" + } + }, + { + "path": "my-reviews", + "style": { + "navigationBarTitleText": "我的评价" + } + }, + { + "path": "message-detail", + "style": { + "navigationBarTitleText": "消息详情" + } + }, + { + "path": "member/index", + "style": { + "navigationBarTitleText": "会员中心" + } + }, + { + "path": "product-reviews", + "style": { + "navigationBarTitleText": "商品评价" + } + } + ] + } + ], + "tabBar": { + "color": "#999999", + "selectedColor": "#ff5000", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/main/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-active.png" + }, + { + "pagePath": "pages/main/messages", + "text": "消息", + "iconPath": "static/tabbar/message.png", + "selectedIconPath": "static/tabbar/message.png" + }, + { + "pagePath": "pages/main/cart", + "text": "购物车", + "iconPath": "static/tabbar/cart.png", + "selectedIconPath": "static/tabbar/cart.png" + }, + { + "pagePath": "pages/main/profile", + "text": "我的", + "iconPath": "static/tabbar/user.png", + "selectedIconPath": "static/tabbar/user.png" + } + ] + }, + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" + }, + "condition": { + "current": 0, + "list": [ + { + "name": "consumer端", + "path": "pages/main/index", + "query": "role=consumer" + } + ] + } +} diff --git a/.pages-backup/pages.consumer.2026-05-25T01-22-40-895Z.json b/.pages-backup/pages.consumer.2026-05-25T01-22-40-895Z.json new file mode 100644 index 00000000..6a72c27f --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-25T01-22-40-895Z.json @@ -0,0 +1,1952 @@ +{ + "pages": [ + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/address/address-edit", + "style": { + "navigationBarTitleText": "服务地址" + } + }, + { + "path": "pages/address/address-list", + "style": { + "navigationBarTitleText": "选择服务地址" + } + }, + { + "path": "pages/address/address-map-select", + "style": { + "navigationBarTitleText": "地图选点" + } + }, + { + "path": "pages/mall/admin/homePage/index", + "style": { + "navigationBarTitleText": "管理后台", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/admin/userCenter/index", + "style": { + "navigationBarTitleText": "个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/center", + "style": { + "navigationBarTitleText": "用户中心" + } + }, + { + "path": "pages/user/profile", + "style": { + "navigationBarTitleText": "个人资料" + } + }, + { + "path": "pages/user/change-password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "pages/user/bind-phone", + "style": { + "navigationBarTitleText": "绑定手机" + } + }, + { + "path": "pages/user/bind-email", + "style": { + "navigationBarTitleText": "绑定邮箱" + } + }, + { + "path": "pages/main/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/messages", + "style": { + "navigationBarTitleText": "消息", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/main/cart", + "style": { + "navigationBarTitleText": "购物车", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/messages", + "style": { + "navigationBarTitleText": "消息", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/orders", + "style": { + "navigationBarTitleText": "订单", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/growth", + "style": { + "navigationBarTitleText": "成长", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/order-detail", + "style": { + "navigationBarTitleText": "订单详情", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/products", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/product-detail", + "style": { + "navigationBarTitleText": "商品详情", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/mall/merchant/product-edit", + "style": { + "navigationBarTitleText": "编辑商品", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/reviews", + "style": { + "navigationBarTitleText": "评价管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/inventory", + "style": { + "navigationBarTitleText": "库存管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/shop-edit", + "style": { + "navigationBarTitleText": "店铺设置", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/promotions", + "style": { + "navigationBarTitleText": "营销活动", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/statistics", + "style": { + "navigationBarTitleText": "数据统计", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/finance", + "style": { + "navigationBarTitleText": "财务结算", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/members", + "style": { + "navigationBarTitleText": "会员管理", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/merchant/exclusive-discounts", + "style": { + "navigationBarTitleText": "专属折扣", + "navigationStyle": "custom" + } + } + ], + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "edit-profile", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "withdraw", + "style": { + "navigationBarTitleText": "余额提现" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "channel-detail", + "style": { + "navigationBarTitleText": "频道详情", + "navigationStyle": "custom" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address", + "style": { + "navigationBarTitleText": "地址" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "收银台" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundColor": "#f5f5f5" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "chat_new", + "style": { + "navigationBarTitleText": "客服聊天(新版)" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + }, + { + "path": "subscription/followed-shops", + "style": { + "navigationBarTitleText": "关注店铺" + } + }, + { + "path": "points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "points/signin", + "style": { + "navigationBarTitleText": "签到" + } + }, + { + "path": "points/exchange", + "style": { + "navigationBarTitleText": "积分兑换" + } + }, + { + "path": "points/exchange-records", + "style": { + "navigationBarTitleText": "兑换记录" + } + }, + { + "path": "red-packets/index", + "style": { + "navigationBarTitleText": "我的红包" + } + }, + { + "path": "bank-cards/index", + "style": { + "navigationBarTitleText": "银行卡管理" + } + }, + { + "path": "bank-cards/add", + "style": { + "navigationBarTitleText": "添加银行卡" + } + }, + { + "path": "home-service/index", + "style": { + "navigationBarTitleText": "居家上门服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/apply", + "style": { + "navigationBarTitleText": "提交服务申请", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/service-detail", + "style": { + "navigationBarTitleText": "预约服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/order-detail", + "style": { + "navigationBarTitleText": "服务单详情", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/feedback", + "style": { + "navigationBarTitleText": "验收反馈", + "navigationStyle": "custom" + } + }, + { + "path": "bank-cards/verify", + "style": { + "navigationBarTitleText": "银行卡验证" + } + }, + { + "path": "balance/index", + "style": { + "navigationBarTitleText": "余额" + } + }, + { + "path": "my-reviews", + "style": { + "navigationBarTitleText": "我的评价" + } + }, + { + "path": "message-detail", + "style": { + "navigationBarTitleText": "消息详情" + } + }, + { + "path": "member/index", + "style": { + "navigationBarTitleText": "会员中心" + } + }, + { + "path": "product-reviews", + "style": { + "navigationBarTitleText": "商品评价" + } + } + ] + }, + { + "root": "pages/mall/delivery", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "配送中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情页", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "配送个人中心", + "navigationStyle": "custom" + } + }, + { + "path": "order-history", + "style": { + "navigationBarTitleText": "历史记录", + "navigationStyle": "custom" + } + }, + { + "path": "all", + "style": { + "navigationBarTitleText": "待接取任务", + "navigationStyle": "custom" + } + }, + { + "path": "earnings", + "style": { + "navigationBarTitleText": "收入明细", + "navigationStyle": "custom" + } + }, + { + "path": "tasks", + "style": { + "navigationBarTitleText": "全部任务", + "navigationStyle": "custom" + } + }, + { + "path": "task-detail", + "style": { + "navigationBarTitleText": "任务详情", + "navigationStyle": "custom" + } + }, + { + "path": "profile-edit", + "style": { + "navigationBarTitleText": "编辑个人资料", + "navigationStyle": "custom" + } + }, + { + "path": "ratings", + "style": { + "navigationBarTitleText": "评价", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle", + "style": { + "navigationBarTitleText": "车辆管理", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-add", + "style": { + "navigationBarTitleText": "添加车辆", + "navigationStyle": "custom" + } + }, + { + "path": "vehicle-edit", + "style": { + "navigationBarTitleText": "编辑车辆", + "navigationStyle": "custom" + } + }, + { + "path": "help-center", + "style": { + "navigationBarTitleText": "帮助中心", + "navigationStyle": "custom" + } + }, + { + "path": "about", + "style": { + "navigationBarTitleText": "关于我们", + "navigationStyle": "custom" + } + }, + { + "path": "feedback", + "style": { + "navigationBarTitleText": "意见反馈", + "navigationStyle": "custom" + } + }, + { + "path": "test", + "style": { + "navigationBarTitleText": "test", + "navigationStyle": "custom" + } + }, + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置", + "navigationStyle": "custom" + } + }, + { + "path": "test/index", + "style": { + "navigationBarTitleText": "配送模块测试索引", + "navigationStyle": "custom" + } + }, + { + "path": "test/merchant-order-list", + "style": { + "navigationBarTitleText": "商家发货管理", + "navigationStyle": "custom" + } + }, + { + "path": "test/merchant-order-detail", + "style": { + "navigationBarTitleText": "订单物流详情", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-tracking-query", + "style": { + "navigationBarTitleText": "轨迹排障查询", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-webhook-logs", + "style": { + "navigationBarTitleText": "Webhook日志", + "navigationStyle": "custom" + } + }, + { + "path": "test/api-simulator", + "style": { + "navigationBarTitleText": "第三方接口模拟器", + "navigationStyle": "custom" + } + }, + { + "path": "test/platform-config-center", + "style": { + "navigationBarTitleText": "配送配置中心", + "navigationStyle": "custom" + } + }, + { + "path": "test/consumer-logistics-detail", + "style": { + "navigationBarTitleText": "用户查快递", + "navigationStyle": "custom" + } + }, + { + "path": "test/consumer-order-list", + "style": { + "navigationBarTitleText": "我的快递", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/analytics", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "数据分析", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "数据分析个人中心" + } + }, + { + "path": "sales-report", + "style": { + "navigationBarTitleText": "销售报表" + } + }, + { + "path": "user-analysis", + "style": { + "navigationBarTitleText": "用户分析" + } + }, + { + "path": "product-insights", + "style": { + "navigationBarTitleText": "商品洞察" + } + }, + { + "path": "delivery-analysis", + "style": { + "navigationBarTitleText": "配送效率分析" + } + }, + { + "path": "coupon-analysis", + "style": { + "navigationBarTitleText": "优惠券效果分析" + } + }, + { + "path": "market-trends", + "style": { + "navigationBarTitleText": "市场趋势" + } + }, + { + "path": "custom-report", + "style": { + "navigationBarTitleText": "自定义报表" + } + }, + { + "path": "report-detail", + "style": { + "navigationBarTitleText": "报表详情", + "enablePullDownRefresh": false + } + }, + { + "path": "data-detail", + "style": { + "navigationBarTitleText": "数据分析详情", + "enablePullDownRefresh": false + } + }, + { + "path": "insight-detail", + "style": { + "navigationBarTitleText": "数据洞察详情", + "enablePullDownRefresh": false + } + } + ] + }, + { + "root": "pages/mall/admin/order", + "pages": [ + { + "path": "order-management/index", + "style": { + "navigationBarTitleText": "订单管理", + "navigationStyle": "custom" + } + }, + { + "path": "order-statistics/index", + "style": { + "navigationBarTitleText": "订单统计", + "navigationStyle": "custom" + } + }, + { + "path": "order-configuration/index", + "style": { + "navigationBarTitleText": "订单配置", + "navigationStyle": "custom" + } + }, + { + "path": "aftersales-order/index", + "style": { + "navigationBarTitleText": "售后订单", + "navigationStyle": "custom" + } + }, + { + "path": "write-off-records/index", + "style": { + "navigationBarTitleText": "核销记录", + "navigationStyle": "custom" + } + }, + { + "path": "cashier-order/index", + "style": { + "navigationBarTitleText": "收銀台订单", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/product", + "pages": [ + { + "path": "product-management/index", + "style": { + "navigationBarTitleText": "商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "product-statistics/index", + "style": { + "navigationBarTitleText": "商品统计", + "navigationStyle": "custom" + } + }, + { + "path": "classification/index", + "style": { + "navigationBarTitleText": "商品分类", + "navigationStyle": "custom" + } + }, + { + "path": "reviews/index", + "style": { + "navigationBarTitleText": "商品评分", + "navigationStyle": "custom" + } + }, + { + "path": "specifications/index", + "style": { + "navigationBarTitleText": "商品规格", + "navigationStyle": "custom" + } + }, + { + "path": "parameters/index", + "style": { + "navigationBarTitleText": "商品参数", + "navigationStyle": "custom" + } + }, + { + "path": "labels/index", + "style": { + "navigationBarTitleText": "商品标签", + "navigationStyle": "custom" + } + }, + { + "path": "protection/index", + "style": { + "navigationBarTitleText": "商品保障", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/user", + "pages": [ + { + "path": "management/index", + "style": { + "navigationBarTitleText": "用户管理", + "navigationStyle": "custom" + } + }, + { + "path": "statistics/index", + "style": { + "navigationBarTitleText": "用户统计", + "navigationStyle": "custom" + } + }, + { + "path": "grouping/index", + "style": { + "navigationBarTitleText": "用户分组", + "navigationStyle": "custom" + } + }, + { + "path": "label/index", + "style": { + "navigationBarTitleText": "用户标签", + "navigationStyle": "custom" + } + }, + { + "path": "level/index", + "style": { + "navigationBarTitleText": "用户等级", + "navigationStyle": "custom" + } + }, + { + "path": "config/index", + "style": { + "navigationBarTitleText": "用户配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/subscription", + "pages": [ + { + "path": "plan-management", + "style": { + "navigationBarTitleText": "订阅方案管理" + } + }, + { + "path": "user-subscriptions", + "style": { + "navigationBarTitleText": "用户订阅管理" + } + } + ] + }, + { + "root": "pages/mall/admin/distribution", + "pages": [ + { + "path": "setting/index", + "style": { + "navigationBarTitleText": "分销设置", + "navigationStyle": "custom" + } + }, + { + "path": "distributor-management/index", + "style": { + "navigationBarTitleText": "分销员管理", + "navigationStyle": "custom" + } + }, + { + "path": "level/index", + "style": { + "navigationBarTitleText": "分销等级管理", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/business-division-list/index", + "style": { + "navigationBarTitleText": "事业部列表", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/agent-list/index", + "style": { + "navigationBarTitleText": "代理商列表", + "navigationStyle": "custom" + } + }, + { + "path": "business-division/agent-application/index", + "style": { + "navigationBarTitleText": "代理商申请", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/marketing", + "pages": [ + { + "path": "coupon/coupon-list/index", + "style": { + "navigationBarTitleText": "优惠券列表", + "navigationStyle": "custom" + } + }, + { + "path": "coupon/claim-record/index", + "style": { + "navigationBarTitleText": "用户领取记录", + "navigationStyle": "custom" + } + }, + { + "path": "points/statistics/index", + "style": { + "navigationBarTitleText": "积分统计", + "navigationStyle": "custom" + } + }, + { + "path": "points/products/index", + "style": { + "navigationBarTitleText": "积分商品", + "navigationStyle": "custom" + } + }, + { + "path": "points/orders/index", + "style": { + "navigationBarTitleText": "积分订单", + "navigationStyle": "custom" + } + }, + { + "path": "points/record/index", + "style": { + "navigationBarTitleText": "积分记录", + "navigationStyle": "custom" + } + }, + { + "path": "points/config/index", + "style": { + "navigationBarTitleText": "积分配置", + "navigationStyle": "custom" + } + }, + { + "path": "lottery/list/index", + "style": { + "navigationBarTitleText": "抽奖列表", + "navigationStyle": "custom" + } + }, + { + "path": "lottery/configuration/index", + "style": { + "navigationBarTitleText": "抽奖配置", + "navigationStyle": "custom" + } + }, + { + "path": "combination/products/index", + "style": { + "navigationBarTitleText": "拼团商品", + "navigationStyle": "custom" + } + }, + { + "path": "combination/list/index", + "style": { + "navigationBarTitleText": "拼团列表", + "navigationStyle": "custom" + } + }, + { + "path": "combination/index", + "style": { + "navigationBarTitleText": "拼团活动", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/list/index", + "style": { + "navigationBarTitleText": "秒杀列表", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/products/index", + "style": { + "navigationBarTitleText": "秒杀商品", + "navigationStyle": "custom" + } + }, + { + "path": "seckill/config/index", + "style": { + "navigationBarTitleText": "秒杀配置", + "navigationStyle": "custom" + } + }, + { + "path": "member/type/index", + "style": { + "navigationBarTitleText": "会员类型", + "navigationStyle": "custom" + } + }, + { + "path": "member/right/index", + "style": { + "navigationBarTitleText": "会员权益", + "navigationStyle": "custom" + } + }, + { + "path": "member/kami-membership/index", + "style": { + "navigationBarTitleText": "卡密会员", + "navigationStyle": "custom" + } + }, + { + "path": "member/record/index", + "style": { + "navigationBarTitleText": "会员记录", + "navigationStyle": "custom" + } + }, + { + "path": "member/config/index", + "style": { + "navigationBarTitleText": "会员配置", + "navigationStyle": "custom" + } + }, + { + "path": "live/live-management/index", + "style": { + "navigationBarTitleText": "直播間管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/products-management/index", + "style": { + "navigationBarTitleText": "直播商品管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/streamer-management/index", + "style": { + "navigationBarTitleText": "主播管理", + "navigationStyle": "custom" + } + }, + { + "path": "live/index", + "style": { + "navigationBarTitleText": "直播首页", + "navigationStyle": "custom" + } + }, + { + "path": "recharge/amount-setting/index", + "style": { + "navigationBarTitleText": "充値额度设置", + "navigationStyle": "custom" + } + }, + { + "path": "recharge/config/index", + "style": { + "navigationBarTitleText": "充値配置", + "navigationStyle": "custom" + } + }, + { + "path": "checkin/config/index", + "style": { + "navigationBarTitleText": "签到配置", + "navigationStyle": "custom" + } + }, + { + "path": "checkin/reward/index", + "style": { + "navigationBarTitleText": "签到奖励", + "navigationStyle": "custom" + } + }, + { + "path": "bargain/list/index", + "style": { + "navigationBarTitleText": "砍价列表", + "navigationStyle": "custom" + } + }, + { + "path": "bargain/products/index", + "style": { + "navigationBarTitleText": "砍价商品", + "navigationStyle": "custom" + } + }, + { + "path": "newcomer/index", + "style": { + "navigationBarTitleText": "新人礼包", + "navigationStyle": "custom" + } + }, + { + "path": "marketing-statistics/index", + "style": { + "navigationBarTitleText": "营销统计", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/maintain", + "pages": [ + { + "path": "dev-tools/database/index", + "style": { + "navigationBarTitleText": "数据库管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/file/index", + "style": { + "navigationBarTitleText": "文件管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/interface/index", + "style": { + "navigationBarTitleText": "接口管理", + "navigationStyle": "custom" + } + }, + { + "path": "dev-tools/data-dictionary/index", + "style": { + "navigationBarTitleText": "数据字典", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/category/index", + "style": { + "navigationBarTitleText": "配置分类", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/combination-data/index", + "style": { + "navigationBarTitleText": "组合数据", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/cron-job/index", + "style": { + "navigationBarTitleText": "定时任务", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/permission/index", + "style": { + "navigationBarTitleText": "权限配置", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/module-config/index", + "style": { + "navigationBarTitleText": "模块配置", + "navigationStyle": "custom" + } + }, + { + "path": "dev-config/custom-event/index", + "style": { + "navigationBarTitleText": "自定义事件", + "navigationStyle": "custom" + } + }, + { + "path": "security/refresh-cache/index", + "style": { + "navigationBarTitleText": "刷新缓存", + "navigationStyle": "custom" + } + }, + { + "path": "security/system-log/index", + "style": { + "navigationBarTitleText": "系统日志", + "navigationStyle": "custom" + } + }, + { + "path": "security/online-upgrade/index", + "style": { + "navigationBarTitleText": "在线升级", + "navigationStyle": "custom" + } + }, + { + "path": "data/logistics/index", + "style": { + "navigationBarTitleText": "物流数据", + "navigationStyle": "custom" + } + }, + { + "path": "data/city-data/index", + "style": { + "navigationBarTitleText": "城市数据", + "navigationStyle": "custom" + } + }, + { + "path": "data/clear/index", + "style": { + "navigationBarTitleText": "清除数据", + "navigationStyle": "custom" + } + }, + { + "path": "api/account/index", + "style": { + "navigationBarTitleText": "API账号", + "navigationStyle": "custom" + } + }, + { + "path": "lang/list/index", + "style": { + "navigationBarTitleText": "语言列表", + "navigationStyle": "custom" + } + }, + { + "path": "lang/detail/index", + "style": { + "navigationBarTitleText": "语言详情", + "navigationStyle": "custom" + } + }, + { + "path": "lang/region/index", + "style": { + "navigationBarTitleText": "语言地区", + "navigationStyle": "custom" + } + }, + { + "path": "lang/config/index", + "style": { + "navigationBarTitleText": "语言配置", + "navigationStyle": "custom" + } + }, + { + "path": "sys/info/index", + "style": { + "navigationBarTitleText": "系统信息", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/setting", + "pages": [ + { + "path": "message/index", + "style": { + "navigationBarTitleText": "消息管理", + "navigationStyle": "custom" + } + }, + { + "path": "agreement/index", + "style": { + "navigationBarTitleText": "协议设置", + "navigationStyle": "custom" + } + }, + { + "path": "receipt/index", + "style": { + "navigationBarTitleText": "小票配置", + "navigationStyle": "custom" + } + }, + { + "path": "auth/admin-management/index", + "style": { + "navigationBarTitleText": "管理员管理", + "navigationStyle": "custom" + } + }, + { + "path": "auth/role-management/index", + "style": { + "navigationBarTitleText": "角色管理", + "navigationStyle": "custom" + } + }, + { + "path": "auth/menu-management/index", + "style": { + "navigationBarTitleText": "菜单管理", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/management/index", + "style": { + "navigationBarTitleText": "配送员管理", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/station/index", + "style": { + "navigationBarTitleText": "提货点", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/verifier/index", + "style": { + "navigationBarTitleText": "核销员", + "navigationStyle": "custom" + } + }, + { + "path": "delivery/setting/template/index", + "style": { + "navigationBarTitleText": "运费模板", + "navigationStyle": "custom" + } + }, + { + "path": "interface/onepass/index", + "style": { + "navigationBarTitleText": "一号通账户", + "navigationStyle": "custom" + } + }, + { + "path": "interface/onepass/config/index", + "style": { + "navigationBarTitleText": "一号通配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/storage/index", + "style": { + "navigationBarTitleText": "系统存储配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/collect/index", + "style": { + "navigationBarTitleText": "商品采集配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/logistics/index", + "style": { + "navigationBarTitleText": "物流查询配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/e-sheet/index", + "style": { + "navigationBarTitleText": "电子面单配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/sms/index", + "style": { + "navigationBarTitleText": "短信功能配置", + "navigationStyle": "custom" + } + }, + { + "path": "interface/payment/index", + "style": { + "navigationBarTitleText": "商城支付配置", + "navigationStyle": "custom" + } + }, + { + "path": "system/index", + "style": { + "navigationBarTitleText": "系统配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/app", + "pages": [ + { + "path": "wechat/menu/index", + "style": { + "navigationBarTitleText": "微信菜单", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/management/index", + "style": { + "navigationBarTitleText": "图文管理", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/follow/index", + "style": { + "navigationBarTitleText": "微信关注回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/keyword/index", + "style": { + "navigationBarTitleText": "关键字回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/reply/invalid/index", + "style": { + "navigationBarTitleText": "无效关键词回复", + "navigationStyle": "custom" + } + }, + { + "path": "wechat/config/index", + "style": { + "navigationBarTitleText": "公众号配置", + "navigationStyle": "custom" + } + }, + { + "path": "routine/download/index", + "style": { + "navigationBarTitleText": "小程序下载", + "navigationStyle": "custom" + } + }, + { + "path": "routine/config/index", + "style": { + "navigationBarTitleText": "小程序配置", + "navigationStyle": "custom" + } + }, + { + "path": "mobile/config/index", + "style": { + "navigationBarTitleText": "APP配置", + "navigationStyle": "custom" + } + }, + { + "path": "mobile/version/index", + "style": { + "navigationBarTitleText": "版本管理", + "navigationStyle": "custom" + } + }, + { + "path": "pc/design/index", + "style": { + "navigationBarTitleText": "PC端装修", + "navigationStyle": "custom" + } + }, + { + "path": "pc/config/index", + "style": { + "navigationBarTitleText": "PC端配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/kefu", + "pages": [ + { + "path": "list/index", + "style": { + "navigationBarTitleText": "客服列表", + "navigationStyle": "custom" + } + }, + { + "path": "rhetoric/index", + "style": { + "navigationBarTitleText": "话术管理", + "navigationStyle": "custom" + } + }, + { + "path": "user-message/index", + "style": { + "navigationBarTitleText": "用户消息", + "navigationStyle": "custom" + } + }, + { + "path": "auto-reply/index", + "style": { + "navigationBarTitleText": "自动回复", + "navigationStyle": "custom" + } + }, + { + "path": "config/index", + "style": { + "navigationBarTitleText": "客服配置", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/decoration", + "pages": [ + { + "path": "homepage-decoration/index", + "style": { + "navigationBarTitleText": "首页装修", + "navigationStyle": "custom" + } + }, + { + "path": "product-category/index", + "style": { + "navigationBarTitleText": "商品分类装修", + "navigationStyle": "custom" + } + }, + { + "path": "personal-center/index", + "style": { + "navigationBarTitleText": "个人中心装修", + "navigationStyle": "custom" + } + }, + { + "path": "data-config/index", + "style": { + "navigationBarTitleText": "数据配置", + "navigationStyle": "custom" + } + }, + { + "path": "theme-style/index", + "style": { + "navigationBarTitleText": "主题风格", + "navigationStyle": "custom" + } + }, + { + "path": "material-management/index", + "style": { + "navigationBarTitleText": "素材管理", + "navigationStyle": "custom" + } + }, + { + "path": "link-management/index", + "style": { + "navigationBarTitleText": "链接管理", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/finance", + "pages": [ + { + "path": "transaction-statistics/index", + "style": { + "navigationBarTitleText": "交易统计", + "navigationStyle": "custom" + } + }, + { + "path": "finance-operations/request/index", + "style": { + "navigationBarTitleText": "提现申请", + "navigationStyle": "custom" + } + }, + { + "path": "finance-operations/management/index", + "style": { + "navigationBarTitleText": "发票管理", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/recharge-record/index", + "style": { + "navigationBarTitleText": "充值记录", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/flow/index", + "style": { + "navigationBarTitleText": "资金流水", + "navigationStyle": "custom" + } + }, + { + "path": "finance-record/billing-record/index", + "style": { + "navigationBarTitleText": "账单记录", + "navigationStyle": "custom" + } + }, + { + "path": "commission-record/index", + "style": { + "navigationBarTitleText": "佣金记录", + "navigationStyle": "custom" + } + }, + { + "path": "balance-record/statistics/index", + "style": { + "navigationBarTitleText": "余额统计", + "navigationStyle": "custom" + } + }, + { + "path": "balance-record/record/index", + "style": { + "navigationBarTitleText": "余额记录", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/cms", + "pages": [ + { + "path": "article/index", + "style": { + "navigationBarTitleText": "文章管理", + "navigationStyle": "custom" + } + }, + { + "path": "category/index", + "style": { + "navigationBarTitleText": "文章分类", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/admin/shop", + "pages": [ + { + "path": "shop-manage", + "style": { + "navigationBarTitleText": "店铺列表", + "navigationStyle": "custom" + } + }, + { + "path": "manage", + "style": { + "navigationBarTitleText": "店铺管理", + "navigationStyle": "custom" + } + }, + { + "path": "create", + "style": { + "navigationBarTitleText": "创建店铺", + "navigationStyle": "custom" + } + } + ] + }, + { + "root": "pages/mall/service", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "客服工作台", + "navigationStyle": "custom" + } + }, + { + "path": "profile", + "style": { + "navigationBarTitleText": "客服个人中心" + } + }, + { + "path": "ticket-detail", + "style": { + "navigationBarTitleText": "工单详情", + "enablePullDownRefresh": false + } + } + ] + } + ], + "tabBar": { + "color": "#999999", + "selectedColor": "#ff5000", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/main/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-active.png" + }, + { + "pagePath": "pages/main/messages", + "text": "消息", + "iconPath": "static/tabbar/message.png", + "selectedIconPath": "static/tabbar/message.png" + }, + { + "pagePath": "pages/main/cart", + "text": "购物车", + "iconPath": "static/tabbar/cart.png", + "selectedIconPath": "static/tabbar/cart.png" + }, + { + "pagePath": "pages/main/profile", + "text": "我的", + "iconPath": "static/tabbar/user.png", + "selectedIconPath": "static/tabbar/user.png" + } + ] + }, + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" + } +} diff --git a/.pages-backup/pages.consumer.2026-05-25T03-16-26-126Z.json b/.pages-backup/pages.consumer.2026-05-25T03-16-26-126Z.json new file mode 100644 index 00000000..b2ea96e6 --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-25T03-16-26-126Z.json @@ -0,0 +1,464 @@ +{ + "pages": [ + { + "path": "pages/main/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/user/boot", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "用户登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/user/register", + "style": { + "navigationBarTitleText": "注册" + } + }, + { + "path": "pages/user/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码" + } + }, + { + "path": "pages/user/terms", + "style": { + "navigationBarTitleText": "用户协议与隐私政策" + } + }, + { + "path": "pages/user/center", + "style": { + "navigationBarTitleText": "用户中心" + } + }, + { + "path": "pages/user/profile", + "style": { + "navigationBarTitleText": "个人资料" + } + }, + { + "path": "pages/user/change-password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "pages/user/bind-phone", + "style": { + "navigationBarTitleText": "绑定手机" + } + }, + { + "path": "pages/user/bind-email", + "style": { + "navigationBarTitleText": "绑定邮箱" + } + }, + { + "path": "pages/main/messages", + "style": { + "navigationBarTitleText": "消息", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/main/cart", + "style": { + "navigationBarTitleText": "购物车", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/profile", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } + } + ], + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "edit-profile", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "withdraw", + "style": { + "navigationBarTitleText": "余额提现" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "channel-detail", + "style": { + "navigationBarTitleText": "频道详情", + "navigationStyle": "custom" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address", + "style": { + "navigationBarTitleText": "地址" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundColor": "#f5f5f5" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "chat_new", + "style": { + "navigationBarTitleText": "客服聊天(新版)" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + }, + { + "path": "subscription/followed-shops", + "style": { + "navigationBarTitleText": "关注店铺" + } + }, + { + "path": "points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "points/signin", + "style": { + "navigationBarTitleText": "签到" + } + }, + { + "path": "points/exchange", + "style": { + "navigationBarTitleText": "积分兑换" + } + }, + { + "path": "points/exchange-records", + "style": { + "navigationBarTitleText": "兑换记录" + } + }, + { + "path": "red-packets/index", + "style": { + "navigationBarTitleText": "我的红包" + } + }, + { + "path": "bank-cards/index", + "style": { + "navigationBarTitleText": "银行卡管理" + } + }, + { + "path": "bank-cards/add", + "style": { + "navigationBarTitleText": "添加银行卡" + } + }, + { + "path": "home-service/index", + "style": { + "navigationBarTitleText": "居家上门服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/apply", + "style": { + "navigationBarTitleText": "提交服务申请", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/service-detail", + "style": { + "navigationBarTitleText": "预约服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/order-detail", + "style": { + "navigationBarTitleText": "服务单详情", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/feedback", + "style": { + "navigationBarTitleText": "验收反馈", + "navigationStyle": "custom" + } + }, + { + "path": "bank-cards/verify", + "style": { + "navigationBarTitleText": "银行卡验证" + } + }, + { + "path": "balance/index", + "style": { + "navigationBarTitleText": "余额" + } + }, + { + "path": "my-reviews", + "style": { + "navigationBarTitleText": "我的评价" + } + }, + { + "path": "message-detail", + "style": { + "navigationBarTitleText": "消息详情" + } + }, + { + "path": "member/index", + "style": { + "navigationBarTitleText": "会员中心" + } + }, + { + "path": "product-reviews", + "style": { + "navigationBarTitleText": "商品评价" + } + } + ] + } + ], + "tabBar": { + "color": "#999999", + "selectedColor": "#ff5000", + "backgroundColor": "#ffffff", + "borderStyle": "black", + "list": [ + { + "pagePath": "pages/main/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-active.png" + }, + { + "pagePath": "pages/main/messages", + "text": "消息", + "iconPath": "static/tabbar/message.png", + "selectedIconPath": "static/tabbar/message.png" + }, + { + "pagePath": "pages/main/cart", + "text": "购物车", + "iconPath": "static/tabbar/cart.png", + "selectedIconPath": "static/tabbar/cart.png" + }, + { + "pagePath": "pages/main/profile", + "text": "我的", + "iconPath": "static/tabbar/user.png", + "selectedIconPath": "static/tabbar/user.png" + } + ] + }, + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "mall", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F8F8F8" + }, + "condition": { + "current": 0, + "list": [ + { + "name": "consumer端", + "path": "pages/main/index", + "query": "role=consumer" + } + ] + } +} diff --git a/components/home/HomeMallContent.uvue b/components/home/HomeMallContent.uvue index f400063f..5a1375a4 100644 --- a/components/home/HomeMallContent.uvue +++ b/components/home/HomeMallContent.uvue @@ -52,13 +52,13 @@ :key="product.id + '-' + pIndex" class="hmall-recommend-product" > - - {{ product.shortName }} + + {{ getChannelProductTitle(product) }} - {{ product.tag }} - ¥{{ formatChannelPrice(product.price) }} + {{ getChannelProductTag(product) }} + ¥{{ formatChannelPrice(getChannelSalePrice(product)) }} - ¥{{ formatChannelPrice(product.marketPrice) }} + ¥{{ formatChannelPrice(getChannelMarketPrice(product)) }} @@ -167,6 +167,7 @@ import type { Category, Product } from '@/utils/supabaseService.uts' import type { MarketingChannel, ChannelProduct, SimpleCategoryChannel } from '@/utils/mockChannelData.uts' const failedProductImageIds = ref([]) +const failedChannelImageIds = ref([]) type SecondaryCategoryPage = { id: string @@ -266,9 +267,50 @@ function getCategoryDisplayIcon(category: Category): string { } function getChannelProductImage(product: ChannelProduct): string { + if (failedChannelImageIds.value.indexOf(product.id) != -1) { + return '/static/images/default.png' + } return product.image != '' ? product.image : '/static/images/default.png' } +function handleChannelProductImageError(productId: string): void { + if (productId == '') { + return + } + if (failedChannelImageIds.value.indexOf(productId) == -1) { + failedChannelImageIds.value.push(productId) + } +} + +function getChannelProductTitle(product: ChannelProduct): string { + if (product.shortName != null && product.shortName != '') { + return product.shortName + } + if (product.name != null && product.name != '') { + return product.name + } + return '商品补充中' +} + +function getChannelProductTag(product: ChannelProduct): string { + if (product.tag != null && product.tag != '') { + return product.tag + } + return '活动价' +} + +function getChannelSalePrice(product: ChannelProduct): number { + return product.price > 0 ? product.price : 0 +} + +function getChannelMarketPrice(product: ChannelProduct): number { + return product.marketPrice > 0 ? product.marketPrice : 0 +} + +function showChannelMarketPrice(product: ChannelProduct): boolean { + return getChannelMarketPrice(product) > getChannelSalePrice(product) +} + function formatChannelPrice(price: number): string { const rounded = Math.round(price) if (Math.abs(price - rounded) < 0.001) { diff --git a/components/mall/GuessYouLike/GuessYouLike.uvue b/components/mall/GuessYouLike/GuessYouLike.uvue new file mode 100644 index 00000000..5f08343b --- /dev/null +++ b/components/mall/GuessYouLike/GuessYouLike.uvue @@ -0,0 +1,363 @@ + + + + + diff --git a/mall_sql/migrations/20260522_hss_service_catalog.sql b/mall_sql/migrations/20260522_hss_service_catalog.sql new file mode 100644 index 00000000..9e8fb25c --- /dev/null +++ b/mall_sql/migrations/20260522_hss_service_catalog.sql @@ -0,0 +1,114 @@ +BEGIN; + +CREATE TABLE IF NOT EXISTS public.hss_service_catalog ( + id TEXT PRIMARY KEY, + name TEXT NOT NULL, + category TEXT NOT NULL DEFAULT '', + price NUMERIC(10, 2) NOT NULL DEFAULT 0, + duration_text TEXT NOT NULL DEFAULT '', + summary TEXT NOT NULL DEFAULT '', + tags_json JSONB NOT NULL DEFAULT '[]'::jsonb, + suitable_for TEXT NOT NULL DEFAULT '', + sort_no INTEGER NOT NULL DEFAULT 0, + status SMALLINT NOT NULL DEFAULT 1, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT now(), + deleted_at TIMESTAMPTZ +); + +CREATE INDEX IF NOT EXISTS idx_hss_service_catalog_status_sort + ON public.hss_service_catalog(status, sort_no) + WHERE deleted_at IS NULL; + +CREATE INDEX IF NOT EXISTS idx_hss_service_catalog_category + ON public.hss_service_catalog(category) + WHERE deleted_at IS NULL; + +CREATE OR REPLACE FUNCTION public.tg_hss_service_catalog_updated_at() +RETURNS trigger +LANGUAGE plpgsql +AS $$ +BEGIN + NEW.updated_at = now(); + RETURN NEW; +END; +$$; + +DROP TRIGGER IF EXISTS trg_hss_service_catalog_updated_at ON public.hss_service_catalog; +CREATE TRIGGER trg_hss_service_catalog_updated_at +BEFORE UPDATE ON public.hss_service_catalog +FOR EACH ROW +EXECUTE FUNCTION public.tg_hss_service_catalog_updated_at(); + +ALTER TABLE public.hss_service_catalog ENABLE ROW LEVEL SECURITY; + +DROP POLICY IF EXISTS hss_service_catalog_public_select ON public.hss_service_catalog; +CREATE POLICY hss_service_catalog_public_select + ON public.hss_service_catalog + FOR SELECT + USING (deleted_at IS NULL AND status = 1); + +INSERT INTO public.hss_service_catalog ( + id, + name, + category, + price, + duration_text, + summary, + tags_json, + suitable_for, + sort_no, + status +) VALUES + ( + 'svc-001', + '基础上门护理', + '日常照护', + 168, + '约 2 小时', + '覆盖生命体征监测、基础照护、风险提醒。', + '["适老化", "护理员上门", "支持家属陪同"]'::jsonb, + '行动不便、术后恢复、慢病随访老人', + 10, + 1 + ), + ( + 'svc-002', + '康复训练指导', + '康复支持', + 260, + '约 3 小时', + '提供肢体训练、步态练习和居家康复建议。', + '["康复师", "步骤清晰", "可连续预约"]'::jsonb, + '卒中恢复、术后康复、失能半失能老人', + 20, + 1 + ), + ( + 'svc-003', + '慢病健康随访', + '健康管理', + 128, + '约 90 分钟', + '完成血压血糖监测、用药核对与健康宣教。', + '["随访", "慢病", "可生成记录"]'::jsonb, + '高血压、糖尿病等长期管理老人', + 30, + 1 + ) +ON CONFLICT (id) DO UPDATE SET + name = EXCLUDED.name, + category = EXCLUDED.category, + price = EXCLUDED.price, + duration_text = EXCLUDED.duration_text, + summary = EXCLUDED.summary, + tags_json = EXCLUDED.tags_json, + suitable_for = EXCLUDED.suitable_for, + sort_no = EXCLUDED.sort_no, + status = EXCLUDED.status, + deleted_at = NULL, + updated_at = now(); + +COMMENT ON TABLE public.hss_service_catalog IS '居家上门服务目录表'; + +COMMIT; \ No newline at end of file diff --git a/mall_sql/migrations/20260522_hss_service_mvp_p0.sql b/mall_sql/migrations/20260522_hss_service_mvp_p0.sql new file mode 100644 index 00000000..72a0166f --- /dev/null +++ b/mall_sql/migrations/20260522_hss_service_mvp_p0.sql @@ -0,0 +1,274 @@ +BEGIN; + +ALTER TABLE public.ml_user_addresses + ADD COLUMN IF NOT EXISTS latitude DOUBLE PRECISION, + ADD COLUMN IF NOT EXISTS longitude DOUBLE PRECISION, + ADD COLUMN IF NOT EXISTS coordinate_type TEXT NOT NULL DEFAULT 'gcj02'; + +CREATE TABLE IF NOT EXISTS public.hss_service_orders ( + id TEXT PRIMARY KEY, + order_no TEXT NOT NULL UNIQUE, + user_id UUID NOT NULL, + service_id TEXT NOT NULL, + service_name TEXT NOT NULL, + service_snapshot_json JSONB NOT NULL DEFAULT '{}'::jsonb, + service_address_id UUID, + address_snapshot_json JSONB NOT NULL DEFAULT '{}'::jsonb, + recipient_name TEXT NOT NULL DEFAULT '', + recipient_phone TEXT NOT NULL DEFAULT '', + contact_name TEXT NOT NULL DEFAULT '', + contact_phone TEXT NOT NULL DEFAULT '', + appointment_time TIMESTAMPTZ, + remark TEXT NOT NULL DEFAULT '', + status TEXT NOT NULL DEFAULT 'created', + current_assignment_id TEXT NOT NULL DEFAULT '', + current_staff_id UUID, + accepted_at TIMESTAMPTZ, + departed_at TIMESTAMPTZ, + arrived_at TIMESTAMPTZ, + service_started_at TIMESTAMPTZ, + completed_at TIMESTAMPTZ, + pending_acceptance_at TIMESTAMPTZ, + accepted_by_user_at TIMESTAMPTZ, + reviewed_at TIMESTAMPTZ, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT now(), + deleted_at TIMESTAMPTZ, + deleted_by UUID, + CONSTRAINT chk_hss_service_orders_status CHECK ( + status IN ( + 'created', 'paid', 'assigned', 'accepted', 'rejected', 'departed', 'arrived', + 'in_service', 'completed', 'pending_acceptance', 'accepted_by_user', + 'reviewed', 'settled', 'cancelled', 'exception' + ) + ) +); + +CREATE TABLE IF NOT EXISTS public.hss_service_assignments ( + id TEXT PRIMARY KEY, + order_id TEXT NOT NULL REFERENCES public.hss_service_orders(id) ON DELETE CASCADE, + staff_id UUID NOT NULL REFERENCES public.ml_delivery_staff(id) ON DELETE RESTRICT, + station_id UUID REFERENCES public.ml_delivery_stations(id) ON DELETE SET NULL, + status TEXT NOT NULL DEFAULT 'assigned', + assigned_at TIMESTAMPTZ NOT NULL DEFAULT now(), + accepted_at TIMESTAMPTZ, + rejected_at TIMESTAMPTZ, + reject_reason TEXT NOT NULL DEFAULT '', + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT now(), + CONSTRAINT chk_hss_service_assignments_status CHECK ( + status IN ('assigned', 'accepted', 'rejected', 'departed', 'arrived', 'in_service', 'pending_acceptance', 'completed', 'cancelled', 'exception') + ) +); + +CREATE TABLE IF NOT EXISTS public.hss_service_execution_records ( + id TEXT PRIMARY KEY, + order_id TEXT NOT NULL REFERENCES public.hss_service_orders(id) ON DELETE CASCADE, + assignment_id TEXT NOT NULL REFERENCES public.hss_service_assignments(id) ON DELETE CASCADE, + checkin_time TIMESTAMPTZ, + checkin_latitude DOUBLE PRECISION, + checkin_longitude DOUBLE PRECISION, + checkin_address TEXT NOT NULL DEFAULT '', + service_started_at TIMESTAMPTZ, + service_finished_at TIMESTAMPTZ, + actual_duration_minutes INTEGER NOT NULL DEFAULT 0, + service_items_json JSONB NOT NULL DEFAULT '[]'::jsonb, + summary TEXT NOT NULL DEFAULT '', + remark TEXT NOT NULL DEFAULT '', + track_points_json JSONB NOT NULL DEFAULT '[]'::jsonb, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE TABLE IF NOT EXISTS public.hss_service_evidence_files ( + id TEXT PRIMARY KEY, + order_id TEXT NOT NULL REFERENCES public.hss_service_orders(id) ON DELETE CASCADE, + execution_record_id TEXT REFERENCES public.hss_service_execution_records(id) ON DELETE CASCADE, + phase TEXT NOT NULL DEFAULT 'service', + file_type TEXT NOT NULL DEFAULT 'image', + storage_path TEXT NOT NULL DEFAULT '', + file_url TEXT NOT NULL DEFAULT '', + latitude DOUBLE PRECISION, + longitude DOUBLE PRECISION, + captured_at TIMESTAMPTZ, + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE TABLE IF NOT EXISTS public.hss_service_order_status_logs ( + id TEXT PRIMARY KEY, + order_id TEXT NOT NULL REFERENCES public.hss_service_orders(id) ON DELETE CASCADE, + from_status TEXT NOT NULL DEFAULT '', + to_status TEXT NOT NULL, + operator_id UUID, + operator_role TEXT NOT NULL DEFAULT '', + remark TEXT NOT NULL DEFAULT '', + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE TABLE IF NOT EXISTS public.hss_service_reviews ( + id TEXT PRIMARY KEY, + order_id TEXT NOT NULL REFERENCES public.hss_service_orders(id) ON DELETE CASCADE, + user_id UUID NOT NULL, + rating INTEGER NOT NULL DEFAULT 5, + tags_json JSONB NOT NULL DEFAULT '[]'::jsonb, + content TEXT NOT NULL DEFAULT '', + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE INDEX IF NOT EXISTS idx_hss_service_orders_user_status + ON public.hss_service_orders(user_id, status) + WHERE deleted_at IS NULL; + +CREATE INDEX IF NOT EXISTS idx_hss_service_orders_staff_status + ON public.hss_service_orders(current_staff_id, status) + WHERE deleted_at IS NULL; + +CREATE INDEX IF NOT EXISTS idx_hss_service_assignments_staff_status + ON public.hss_service_assignments(staff_id, status); + +CREATE INDEX IF NOT EXISTS idx_hss_service_execution_records_order + ON public.hss_service_execution_records(order_id); + +CREATE INDEX IF NOT EXISTS idx_hss_service_evidence_files_order + ON public.hss_service_evidence_files(order_id); + +CREATE INDEX IF NOT EXISTS idx_hss_service_logs_order_created + ON public.hss_service_order_status_logs(order_id, created_at DESC); + +CREATE INDEX IF NOT EXISTS idx_hss_service_reviews_order + ON public.hss_service_reviews(order_id); + +CREATE OR REPLACE FUNCTION public.tg_hss_set_updated_at() +RETURNS trigger +LANGUAGE plpgsql +AS $$ +BEGIN + NEW.updated_at = now(); + RETURN NEW; +END; +$$; + +DROP TRIGGER IF EXISTS trg_hss_service_orders_updated_at ON public.hss_service_orders; +CREATE TRIGGER trg_hss_service_orders_updated_at +BEFORE UPDATE ON public.hss_service_orders +FOR EACH ROW +EXECUTE FUNCTION public.tg_hss_set_updated_at(); + +DROP TRIGGER IF EXISTS trg_hss_service_assignments_updated_at ON public.hss_service_assignments; +CREATE TRIGGER trg_hss_service_assignments_updated_at +BEFORE UPDATE ON public.hss_service_assignments +FOR EACH ROW +EXECUTE FUNCTION public.tg_hss_set_updated_at(); + +DROP TRIGGER IF EXISTS trg_hss_service_execution_records_updated_at ON public.hss_service_execution_records; +CREATE TRIGGER trg_hss_service_execution_records_updated_at +BEFORE UPDATE ON public.hss_service_execution_records +FOR EACH ROW +EXECUTE FUNCTION public.tg_hss_set_updated_at(); + +ALTER TABLE public.hss_service_orders ENABLE ROW LEVEL SECURITY; +ALTER TABLE public.hss_service_assignments ENABLE ROW LEVEL SECURITY; +ALTER TABLE public.hss_service_execution_records ENABLE ROW LEVEL SECURITY; +ALTER TABLE public.hss_service_evidence_files ENABLE ROW LEVEL SECURITY; +ALTER TABLE public.hss_service_order_status_logs ENABLE ROW LEVEL SECURITY; +ALTER TABLE public.hss_service_reviews ENABLE ROW LEVEL SECURITY; + +DROP POLICY IF EXISTS hss_service_orders_user_select ON public.hss_service_orders; +CREATE POLICY hss_service_orders_user_select + ON public.hss_service_orders + FOR SELECT + TO authenticated + USING ( + deleted_at IS NULL AND ( + user_id IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) + OR current_staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL) + ) + ); + +DROP POLICY IF EXISTS hss_service_orders_user_insert ON public.hss_service_orders; +CREATE POLICY hss_service_orders_user_insert + ON public.hss_service_orders + FOR INSERT + TO authenticated + WITH CHECK (user_id IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid())); + +DROP POLICY IF EXISTS hss_service_orders_user_update ON public.hss_service_orders; +CREATE POLICY hss_service_orders_user_update + ON public.hss_service_orders + FOR UPDATE + TO authenticated + USING ( + deleted_at IS NULL AND ( + user_id IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) + OR current_staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL) + ) + ) + WITH CHECK ( + deleted_at IS NULL AND ( + user_id IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) + OR current_staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL) + ) + ); + +DROP POLICY IF EXISTS hss_service_assignments_staff_select ON public.hss_service_assignments; +CREATE POLICY hss_service_assignments_staff_select + ON public.hss_service_assignments + FOR SELECT + TO authenticated + USING (staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_assignments_staff_update ON public.hss_service_assignments; +CREATE POLICY hss_service_assignments_staff_update + ON public.hss_service_assignments + FOR UPDATE + TO authenticated + USING (staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL)) + WITH CHECK (staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_assignments_staff_insert ON public.hss_service_assignments; +CREATE POLICY hss_service_assignments_staff_insert + ON public.hss_service_assignments + FOR INSERT + TO authenticated + WITH CHECK (staff_id IN (SELECT id FROM public.ml_delivery_staff WHERE uid IN (SELECT id FROM public.ak_users WHERE auth_id = auth.uid()) AND deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_execution_records_order_access ON public.hss_service_execution_records; +CREATE POLICY hss_service_execution_records_order_access + ON public.hss_service_execution_records + FOR ALL + TO authenticated + USING (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)) + WITH CHECK (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_evidence_files_order_access ON public.hss_service_evidence_files; +CREATE POLICY hss_service_evidence_files_order_access + ON public.hss_service_evidence_files + FOR ALL + TO authenticated + USING (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)) + WITH CHECK (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_order_status_logs_order_access ON public.hss_service_order_status_logs; +CREATE POLICY hss_service_order_status_logs_order_access + ON public.hss_service_order_status_logs + FOR ALL + TO authenticated + USING (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)) + WITH CHECK (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)); + +DROP POLICY IF EXISTS hss_service_reviews_order_access ON public.hss_service_reviews; +CREATE POLICY hss_service_reviews_order_access + ON public.hss_service_reviews + FOR ALL + TO authenticated + USING (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)) + WITH CHECK (order_id IN (SELECT id FROM public.hss_service_orders WHERE deleted_at IS NULL)); + +COMMENT ON TABLE public.hss_service_orders IS '居家上门服务订单主表'; +COMMENT ON TABLE public.hss_service_assignments IS '居家上门服务派单表'; +COMMENT ON TABLE public.hss_service_execution_records IS '居家上门服务执行记录表'; +COMMENT ON TABLE public.hss_service_evidence_files IS '居家上门服务证据文件表'; +COMMENT ON TABLE public.hss_service_order_status_logs IS '居家上门服务状态日志表'; +COMMENT ON TABLE public.hss_service_reviews IS '居家上门服务评价表'; + +COMMIT; \ No newline at end of file diff --git a/mall_sql/migrations/20260525_consumer_order_soft_delete.sql b/mall_sql/migrations/20260525_consumer_order_soft_delete.sql new file mode 100644 index 00000000..d8f250e4 --- /dev/null +++ b/mall_sql/migrations/20260525_consumer_order_soft_delete.sql @@ -0,0 +1,17 @@ +BEGIN; + +ALTER TABLE public.ml_orders + ADD COLUMN IF NOT EXISTS cancelled_at TIMESTAMPTZ NULL, + ADD COLUMN IF NOT EXISTS consumer_deleted_at TIMESTAMPTZ NULL; + +COMMENT ON COLUMN public.ml_orders.cancelled_at IS '订单取消时间,包含用户取消与支付超时取消'; +COMMENT ON COLUMN public.ml_orders.consumer_deleted_at IS '消费者侧软删除时间,仅影响消费者订单列表展示'; + +CREATE INDEX IF NOT EXISTS idx_ml_orders_consumer_deleted_at +ON public.ml_orders(user_id, consumer_deleted_at, created_at DESC); + +CREATE INDEX IF NOT EXISTS idx_ml_orders_consumer_visible +ON public.ml_orders(user_id, created_at DESC) +WHERE consumer_deleted_at IS NULL; + +COMMIT; \ No newline at end of file diff --git a/mall_sql/migrations/20260525_hss_service_order_payment_fields.sql b/mall_sql/migrations/20260525_hss_service_order_payment_fields.sql new file mode 100644 index 00000000..874c5544 --- /dev/null +++ b/mall_sql/migrations/20260525_hss_service_order_payment_fields.sql @@ -0,0 +1,35 @@ +BEGIN; + +ALTER TABLE public.hss_service_orders + ADD COLUMN IF NOT EXISTS payment_status SMALLINT NOT NULL DEFAULT 1; + +ALTER TABLE public.hss_service_orders + ADD COLUMN IF NOT EXISTS pay_expire_at TIMESTAMPTZ; + +ALTER TABLE public.hss_service_orders + ADD COLUMN IF NOT EXISTS cancel_reason TEXT NOT NULL DEFAULT ''; + +ALTER TABLE public.hss_service_orders + ADD COLUMN IF NOT EXISTS cancelled_at TIMESTAMPTZ; + +ALTER TABLE public.hss_service_orders + ADD COLUMN IF NOT EXISTS consumer_deleted_at TIMESTAMPTZ; + +CREATE INDEX IF NOT EXISTS idx_hss_service_orders_user_visible +ON public.hss_service_orders(user_id, created_at DESC) +WHERE consumer_deleted_at IS NULL; + +UPDATE public.hss_service_orders +SET pay_expire_at = created_at + INTERVAL '10 minutes' +WHERE pay_expire_at IS NULL + AND status = 'created' + AND payment_status = 1; + +ALTER TABLE public.ml_orders + ADD COLUMN IF NOT EXISTS pay_expire_at TIMESTAMPTZ, + ADD COLUMN IF NOT EXISTS payment_status SMALLINT NOT NULL DEFAULT 1, + ADD COLUMN IF NOT EXISTS cancel_reason TEXT NOT NULL DEFAULT '', + ADD COLUMN IF NOT EXISTS cancelled_at TIMESTAMPTZ, + ADD COLUMN IF NOT EXISTS consumer_deleted_at TIMESTAMPTZ; + +COMMIT; diff --git a/mall_sql/migrations/20260525_order_timeout_status.sql b/mall_sql/migrations/20260525_order_timeout_status.sql new file mode 100644 index 00000000..b0bd62bc --- /dev/null +++ b/mall_sql/migrations/20260525_order_timeout_status.sql @@ -0,0 +1,77 @@ +BEGIN; + +ALTER TABLE public.ml_orders + ADD COLUMN IF NOT EXISTS pay_expire_at TIMESTAMPTZ; + +ALTER TABLE public.ml_orders + DROP CONSTRAINT IF EXISTS chk_ml_order_status; + +ALTER TABLE public.ml_orders + DROP CONSTRAINT IF EXISTS chk_ml_payment_status; + +ALTER TABLE public.ml_orders + ADD CONSTRAINT chk_ml_order_status CHECK (order_status IN (1,2,3,4,5,6,7,8)); + +ALTER TABLE public.ml_orders + ADD CONSTRAINT chk_ml_payment_status CHECK (payment_status IN (1,2,3,4,5)); + +COMMENT ON COLUMN public.ml_orders.pay_expire_at IS '支付截止时间,超过后订单进入已超时'; + +UPDATE public.ml_orders +SET pay_expire_at = created_at + INTERVAL '10 minutes' +WHERE pay_expire_at IS NULL + AND order_status = 1 + AND payment_status = 1; + +UPDATE public.ml_orders +SET order_status = 8, + payment_status = 5, + cancel_reason = CASE + WHEN cancel_reason IS NULL OR cancel_reason = '' THEN '支付超时自动关闭' + ELSE cancel_reason + END, + updated_at = NOW() +WHERE order_status = 1 + AND payment_status = 1 + AND pay_expire_at IS NOT NULL + AND pay_expire_at <= NOW(); + +CREATE INDEX IF NOT EXISTS idx_ml_orders_pay_expire_at +ON public.ml_orders(pay_expire_at); + +DROP VIEW IF EXISTS public.ml_orders_detail_view; + +CREATE VIEW public.ml_orders_detail_view AS +SELECT + o.*, + u.username as customer_name, + u.phone as customer_phone, + m.username as merchant_name, + s.shop_name, + CASE + WHEN o.order_status = 1 THEN '待付款' + WHEN o.order_status = 2 THEN '待发货' + WHEN o.order_status = 3 THEN '待收货' + WHEN o.order_status = 4 THEN '已完成' + WHEN o.order_status = 5 THEN '已取消' + WHEN o.order_status = 6 THEN '退款中' + WHEN o.order_status = 7 THEN '已退款' + WHEN o.order_status = 8 THEN '已超时' + ELSE '未知' + END as order_status_name, + CASE + WHEN o.payment_status = 1 THEN '未付款' + WHEN o.payment_status = 2 THEN '已付款' + WHEN o.payment_status = 3 THEN '部分退款' + WHEN o.payment_status = 4 THEN '全额退款' + WHEN o.payment_status = 5 THEN '已关闭' + ELSE '未知' + END as payment_status_name +FROM public.ml_orders o +LEFT JOIN public.ak_users u ON o.user_id = u.id +LEFT JOIN public.ak_users m ON o.merchant_id = m.id +LEFT JOIN public.ml_shops s ON o.merchant_id = s.merchant_id; + +COMMENT ON VIEW public.ml_orders_detail_view IS '订单详情视图'; + +COMMIT; \ No newline at end of file diff --git a/manifest.json b/manifest.json index 64972729..5b4d93a8 100644 --- a/manifest.json +++ b/manifest.json @@ -47,7 +47,13 @@ "optimization": { "subPackages": true }, - "lazyCodeLoading": "requiredComponents" + "lazyCodeLoading": "requiredComponents", + "requiredPrivateInfos": ["getLocation", "chooseLocation"], + "permission": { + "scope.userLocation": { + "desc": "用于获取您的服务地址,方便服务人员上门服务" + } + } }, "mp-alipay": { "appid": "", diff --git a/pages.consumer.json b/pages.consumer.json index 60afb4ad..b2ea96e6 100644 --- a/pages.consumer.json +++ b/pages.consumer.json @@ -198,7 +198,8 @@ { "path": "payment", "style": { - "navigationBarTitleText": "收银台" + "navigationBarTitleText": "", + "navigationStyle": "custom" } }, { @@ -211,8 +212,10 @@ { "path": "orders", "style": { - "navigationBarTitleText": "我的订单", - "enablePullDownRefresh": true + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundColor": "#f5f5f5" } }, { diff --git a/pages.full.json b/pages.full.json index 35f253cc..d24edc4c 100644 --- a/pages.full.json +++ b/pages.full.json @@ -1,4 +1,4 @@ -{ +{ "pages": [ { "path": "pages/user/boot", @@ -13,6 +13,24 @@ "navigationStyle": "custom" } }, + { + "path": "pages/address/address-edit", + "style": { + "navigationBarTitleText": "服务地址" + } + }, + { + "path": "pages/address/address-list", + "style": { + "navigationBarTitleText": "选择服务地址" + } + }, + { + "path": "pages/address/address-map-select", + "style": { + "navigationBarTitleText": "地图选点" + } + }, { "path": "pages/mall/admin/homePage/index", "style": { @@ -338,7 +356,8 @@ { "path": "payment", "style": { - "navigationBarTitleText": "收银台" + "navigationBarTitleText": "", + "navigationStyle": "custom" } }, { @@ -351,8 +370,10 @@ { "path": "orders", "style": { - "navigationBarTitleText": "我的订单", - "enablePullDownRefresh": true + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundColor": "#f5f5f5" } }, { diff --git a/pages.json b/pages.json index 7d0d4a37..27210a93 100644 --- a/pages.json +++ b/pages.json @@ -71,13 +71,321 @@ } } ], - "subPackages": [], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "delivery", - "navigationBarBackgroundColor": "#FFFFFF", - "backgroundColor": "#F3F7F9" - }, + "subPackages": [ + { + "root": "pages/mall/consumer", + "pages": [ + { + "path": "settings", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "edit-profile", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, + { + "path": "wallet", + "style": { + "navigationBarTitleText": "我的钱包" + } + }, + { + "path": "withdraw", + "style": { + "navigationBarTitleText": "余额提现" + } + }, + { + "path": "search", + "style": { + "navigationBarTitleText": "搜索", + "navigationStyle": "custom" + } + }, + { + "path": "product-detail", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "channel-detail", + "style": { + "navigationBarTitleText": "频道详情", + "navigationStyle": "custom" + } + }, + { + "path": "shop-detail", + "style": { + "navigationBarTitleText": "店铺详情" + } + }, + { + "path": "coupons", + "style": { + "navigationBarTitleText": "我的优惠券" + } + }, + { + "path": "favorites", + "style": { + "navigationBarTitleText": "我的收藏" + } + }, + { + "path": "footprint", + "style": { + "navigationBarTitleText": "我的足迹" + } + }, + { + "path": "address", + "style": { + "navigationBarTitleText": "地址" + } + }, + { + "path": "address-list", + "style": { + "navigationBarTitleText": "收货地址" + } + }, + { + "path": "address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } + }, + { + "path": "checkout", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "payment", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, + { + "path": "payment-success", + "style": { + "navigationBarTitleText": "支付成功", + "navigationStyle": "custom" + } + }, + { + "path": "orders", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "enablePullDownRefresh": true, + "backgroundColor": "#f5f5f5" + } + }, + { + "path": "order-detail", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "logistics", + "style": { + "navigationBarTitleText": "物流详情" + } + }, + { + "path": "review", + "style": { + "navigationBarTitleText": "评价晒单" + } + }, + { + "path": "refund", + "style": { + "navigationBarTitleText": "退款/售后" + } + }, + { + "path": "apply-refund", + "style": { + "navigationBarTitleText": "申请售后" + } + }, + { + "path": "refund-review", + "style": { + "navigationBarTitleText": "服务评价" + } + }, + { + "path": "chat", + "style": { + "navigationBarTitleText": "客服聊天", + "navigationStyle": "custom" + } + }, + { + "path": "chat_new", + "style": { + "navigationBarTitleText": "客服聊天(新版)" + } + }, + { + "path": "subscription/plan-list", + "style": { + "navigationBarTitleText": "软件订阅" + } + }, + { + "path": "subscription/plan-detail", + "style": { + "navigationBarTitleText": "订阅详情" + } + }, + { + "path": "subscription/subscribe-checkout", + "style": { + "navigationBarTitleText": "确认订阅" + } + }, + { + "path": "subscription/my-subscriptions", + "style": { + "navigationBarTitleText": "我的订阅" + } + }, + { + "path": "subscription/followed-shops", + "style": { + "navigationBarTitleText": "关注店铺" + } + }, + { + "path": "points/index", + "style": { + "navigationBarTitleText": "积分管理" + } + }, + { + "path": "points/signin", + "style": { + "navigationBarTitleText": "签到" + } + }, + { + "path": "points/exchange", + "style": { + "navigationBarTitleText": "积分兑换" + } + }, + { + "path": "points/exchange-records", + "style": { + "navigationBarTitleText": "兑换记录" + } + }, + { + "path": "red-packets/index", + "style": { + "navigationBarTitleText": "我的红包" + } + }, + { + "path": "bank-cards/index", + "style": { + "navigationBarTitleText": "银行卡管理" + } + }, + { + "path": "bank-cards/add", + "style": { + "navigationBarTitleText": "添加银行卡" + } + }, + { + "path": "home-service/index", + "style": { + "navigationBarTitleText": "居家上门服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/apply", + "style": { + "navigationBarTitleText": "提交服务申请", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/service-detail", + "style": { + "navigationBarTitleText": "预约服务", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/order-detail", + "style": { + "navigationBarTitleText": "服务单详情", + "navigationStyle": "custom" + } + }, + { + "path": "home-service/feedback", + "style": { + "navigationBarTitleText": "验收反馈", + "navigationStyle": "custom" + } + }, + { + "path": "bank-cards/verify", + "style": { + "navigationBarTitleText": "银行卡验证" + } + }, + { + "path": "balance/index", + "style": { + "navigationBarTitleText": "余额" + } + }, + { + "path": "my-reviews", + "style": { + "navigationBarTitleText": "我的评价" + } + }, + { + "path": "message-detail", + "style": { + "navigationBarTitleText": "消息详情" + } + }, + { + "path": "member/index", + "style": { + "navigationBarTitleText": "会员中心" + } + }, + { + "path": "product-reviews", + "style": { + "navigationBarTitleText": "商品评价" + } + } + ] + } + ], "tabBar": { "color": "#6B7280", "selectedColor": "#0F766E", diff --git a/pages/address/address-edit.uvue b/pages/address/address-edit.uvue new file mode 100644 index 00000000..1f7dcb24 --- /dev/null +++ b/pages/address/address-edit.uvue @@ -0,0 +1,636 @@ + + + + + \ No newline at end of file diff --git a/pages/address/address-list.uvue b/pages/address/address-list.uvue new file mode 100644 index 00000000..cf3dc652 --- /dev/null +++ b/pages/address/address-list.uvue @@ -0,0 +1,390 @@ + + + + + \ No newline at end of file diff --git a/pages/address/address-map-select.uvue b/pages/address/address-map-select.uvue new file mode 100644 index 00000000..536bf80b --- /dev/null +++ b/pages/address/address-map-select.uvue @@ -0,0 +1,289 @@ + + + + + \ No newline at end of file diff --git a/pages/main/cart-search/cart-search.uvue b/pages/main/cart-search/cart-search.uvue index 3ff27cc1..7b1baca0 100644 --- a/pages/main/cart-search/cart-search.uvue +++ b/pages/main/cart-search/cart-search.uvue @@ -1,35 +1,35 @@ -