From b5ab00ab126deb341eeb471b9d28cd6198a74380 Mon Sep 17 00:00:00 2001 From: huangzhenbao <17818024429@163.com> Date: Tue, 19 May 2026 17:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=A6=96=E9=A1=B5=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E6=A0=8Fui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ges.consumer.2026-05-19T08-07-17-691Z.json | 461 ++++++++++++++++++ ...ges.consumer.2026-05-19T08-58-31-913Z.json | 461 ++++++++++++++++++ ...ges.consumer.2026-05-19T09-01-02-862Z.json | 461 ++++++++++++++++++ ...ges.consumer.2026-05-19T09-06-57-138Z.json | 461 ++++++++++++++++++ ...ges.consumer.2026-05-19T09-25-31-299Z.json | 461 ++++++++++++++++++ ...ges.consumer.2026-05-19T09-30-21-649Z.json | 461 ++++++++++++++++++ components/home/JdLikeHomeHeader.uvue | 57 +-- pages.consumer.json | 20 +- pages.full.json | 6 - pages.json | 20 +- pages/main/index.uvue | 344 +++++++------ pages/mall/consumer/category.uvue | 8 +- scripts/switch-pages.js | 1 - 13 files changed, 2956 insertions(+), 266 deletions(-) create mode 100644 .pages-backup/pages.consumer.2026-05-19T08-07-17-691Z.json create mode 100644 .pages-backup/pages.consumer.2026-05-19T08-58-31-913Z.json create mode 100644 .pages-backup/pages.consumer.2026-05-19T09-01-02-862Z.json create mode 100644 .pages-backup/pages.consumer.2026-05-19T09-06-57-138Z.json create mode 100644 .pages-backup/pages.consumer.2026-05-19T09-25-31-299Z.json create mode 100644 .pages-backup/pages.consumer.2026-05-19T09-30-21-649Z.json diff --git a/.pages-backup/pages.consumer.2026-05-19T08-07-17-691Z.json b/.pages-backup/pages.consumer.2026-05-19T08-07-17-691Z.json new file mode 100644 index 00000000..42330353 --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T08-07-17-691Z.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/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" + } + } + ], + "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-19T08-58-31-913Z.json b/.pages-backup/pages.consumer.2026-05-19T08-58-31-913Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T08-58-31-913Z.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-19T09-01-02-862Z.json b/.pages-backup/pages.consumer.2026-05-19T09-01-02-862Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T09-01-02-862Z.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-19T09-06-57-138Z.json b/.pages-backup/pages.consumer.2026-05-19T09-06-57-138Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T09-06-57-138Z.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-19T09-25-31-299Z.json b/.pages-backup/pages.consumer.2026-05-19T09-25-31-299Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T09-25-31-299Z.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-19T09-30-21-649Z.json b/.pages-backup/pages.consumer.2026-05-19T09-30-21-649Z.json new file mode 100644 index 00000000..60afb4ad --- /dev/null +++ b/.pages-backup/pages.consumer.2026-05-19T09-30-21-649Z.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/components/home/JdLikeHomeHeader.uvue b/components/home/JdLikeHomeHeader.uvue index 05b648f8..2b1d1cdf 100644 --- a/components/home/JdLikeHomeHeader.uvue +++ b/components/home/JdLikeHomeHeader.uvue @@ -6,7 +6,7 @@ :key="item.key" class="jd2-module-item" :class="isServiceModule ? 'jd2-module-item-service' : ''" - @click="emit('changeModule', item.key)" + @click="emit('change-module', item.key)" > {{ item.label }} @@ -34,18 +34,6 @@ - - - - {{ item.name }} - - - @@ -86,20 +74,11 @@ const props = defineProps({ placeholder: { type: String, default: '' - }, - categories: { - type: Array, - default: [] as Array - }, - activeCategory: { - type: String, - default: '' } }) const emit = defineEmits<{ - (e: 'changeModule', moduleKey: string): void - (e: 'changeCategory', categoryId: string): void + (e: 'change-module', moduleKey: string): void (e: 'update:searchKeyword', keyword: string): void (e: 'search', keyword: string): void (e: 'focusSearch'): void @@ -108,7 +87,6 @@ const emit = defineEmits<{ const headerStyle = computed((): string => `padding-top:${props.statusBarHeight}px;`) const capsuleStyle = computed((): string => props.capsuleRight > 0 ? `padding-right:${props.capsuleRight}px;` : '') const isServiceModule = computed((): boolean => props.activeModule == 'service') -const showCategoryBar = computed((): boolean => props.activeModule != 'service') function handleInput(event: UniInputInputEvent | UniInputConfirmEvent) { emit('update:searchKeyword', event.detail.value) @@ -128,6 +106,7 @@ function handleSearch() { background: #ffffff; padding-bottom: 10rpx; box-shadow: 0 4rpx 14rpx rgba(0, 0, 0, 0.05); + position: relative; } .jd2-header-service { @@ -260,34 +239,4 @@ function handleSearch() { color: #ffffff; } -.jd2-category-scroll { - height: 56rpx; - white-space: nowrap; - margin-top: 12rpx; - padding-left: 16rpx; - padding-right: 16rpx; - box-sizing: border-box; -} - -.jd2-category-row { - flex-direction: row; - align-items: center; - height: 56rpx; -} - -.jd2-category-item { - margin-right: 32rpx; - height: 56rpx; - justify-content: center; -} - -.jd2-category-text { - font-size: 28rpx; - color: #444444; -} - -.jd2-category-text-active { - color: #ff2d2f; - font-weight: 700; -} \ No newline at end of file diff --git a/pages.consumer.json b/pages.consumer.json index a4e9dcdb..60afb4ad 100644 --- a/pages.consumer.json +++ b/pages.consumer.json @@ -69,13 +69,6 @@ "navigationBarTitleText": "绑定邮箱" } }, - { - "path": "pages/main/category", - "style": { - "navigationBarTitleText": "分类", - "navigationStyle": "custom" - } - }, { "path": "pages/main/messages", "style": { @@ -96,6 +89,13 @@ "navigationBarTitleText": "我的", "navigationStyle": "custom" } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } } ], "subPackages": [ @@ -422,12 +422,6 @@ "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-active.png" }, - { - "pagePath": "pages/main/category", - "text": "分类", - "iconPath": "static/tabbar/category.png", - "selectedIconPath": "static/tabbar/category.png" - }, { "pagePath": "pages/main/messages", "text": "消息", diff --git a/pages.full.json b/pages.full.json index 029caf54..35f253cc 100644 --- a/pages.full.json +++ b/pages.full.json @@ -1903,12 +1903,6 @@ "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-active.png" }, - { - "pagePath": "pages/main/category", - "text": "分类", - "iconPath": "static/tabbar/category.png", - "selectedIconPath": "static/tabbar/category.png" - }, { "pagePath": "pages/main/messages", "text": "消息", diff --git a/pages.json b/pages.json index a4e9dcdb..60afb4ad 100644 --- a/pages.json +++ b/pages.json @@ -69,13 +69,6 @@ "navigationBarTitleText": "绑定邮箱" } }, - { - "path": "pages/main/category", - "style": { - "navigationBarTitleText": "分类", - "navigationStyle": "custom" - } - }, { "path": "pages/main/messages", "style": { @@ -96,6 +89,13 @@ "navigationBarTitleText": "我的", "navigationStyle": "custom" } + }, + { + "path": "pages/main/category", + "style": { + "navigationBarTitleText": "分类", + "navigationStyle": "custom" + } } ], "subPackages": [ @@ -422,12 +422,6 @@ "iconPath": "static/tabbar/home.png", "selectedIconPath": "static/tabbar/home-active.png" }, - { - "pagePath": "pages/main/category", - "text": "分类", - "iconPath": "static/tabbar/category.png", - "selectedIconPath": "static/tabbar/category.png" - }, { "pagePath": "pages/main/messages", "text": "消息", diff --git a/pages/main/index.uvue b/pages/main/index.uvue index 724c4688..d18e9a8a 100644 --- a/pages/main/index.uvue +++ b/pages/main/index.uvue @@ -9,17 +9,41 @@ :active-module="activeTopModule" :search-keyword="searchKeyword" :placeholder="headerSearchPlaceholder" - :categories="headerCategories" - :active-category="activeCategory" - @changeModule="handleTopModuleChange" + @change-module="handleTopModuleChange" @update:searchKeyword="handleSearchKeywordUpdate" @search="handleHeaderSearch" - @changeCategory="handleHeaderCategoryChange" @focusSearch="handleSearchFocus" > + + + + + + {{ getCategoryTabDisplayName(item.name) }} + + + + + + {{ showCategoryPanel ? '∧' : '∨' }} + + + - + + + + + + 全部分类 + + 收起 + + + + + + {{ item.name }} + + + @@ -105,7 +159,6 @@ const headerPlaceholderHeight = ref(128) const headerStyle = ref('') const searchRowStyle = ref('') const activeTopModule = ref('home') -const activeCategory = ref('recommend') const searchKeyword = ref('') type HeaderModuleItem = { @@ -118,10 +171,6 @@ const topModules: Array = [ { key: 'service', label: '服务' } ] -const headerCategories = computed((): Array => { - return categoryList.value -}) - const headerSearchPlaceholder = computed((): string => { if (activeTopModule.value == 'service') { return '居家护理 / 康复照护 / 血压计 / 助餐服务' @@ -293,21 +342,7 @@ function handleHeaderSearch(keyword: string) { function handleTopModuleChange(moduleKey: string) { activeTopModule.value = moduleKey - if (moduleKey == 'home') { - activeCategory.value = currentCategory.value - } else { - activeCategory.value = 'all' - } -} - -function handleHeaderCategoryChange(categoryId: string) { - activeCategory.value = categoryId - if (activeTopModule.value == 'home') { - const matchedItem = categoryList.value.find((item: CategoryItem): boolean => item.id == categoryId) - if (matchedItem != null) { - handleCategoryTabClick(matchedItem) - } - } + showCategoryPanel.value = false } function handleMainScrollToLower() { @@ -363,6 +398,9 @@ const handleKeywordChange = (e: any) => { } const toggleCategoryPanel = (): void => { + if (activeTopModule.value != 'home') { + return + } showCategoryPanel.value = !showCategoryPanel.value } @@ -442,29 +480,7 @@ function buildSimpleChannelCoverImages(startIndex: number): string[] { } function buildSimpleCategoryChannels(categoryId: string): SimpleCategoryChannel[] { - if (categoryId === 'recommend') { - return [] - } - return [ - { - id: 'rank', - title: '排行榜', - subtitle: '每日更新', - routeType: 'rank', - icon: '榜', - coverImages: buildSimpleChannelCoverImages(0), - categoryId - }, - { - id: 'quality', - title: '品质优选', - subtitle: '精选好货', - routeType: 'quality', - icon: '选', - coverImages: buildSimpleChannelCoverImages(2), - categoryId - } - ] + return [] } function applyChannelDisplay(categoryId: string): void { @@ -771,25 +787,14 @@ const onParentCategoryClick = async (category: Category): Promise => { // 如果没有二级分类,直接跳转到分类页 if (subCategories.value.length == 0) { - console.log('[onParentCategoryClick] 没有二级分类,直接跳转到分类页') - uni.setStorageSync('selectedCategory', category.id) - uni.switchTab({ - url: '/pages/main/category' - }) + console.log('[onParentCategoryClick] 没有二级分类,切换首页分类商品流') + void refreshHomeCategory({ id: category.id, name: category.name }) } } // 点击二级分类 const onSubCategoryClick = (category: Category): void => { - // 跳转到分类页面 - uni.setStorageSync('selectedCategory', category.id) - const timestamp = Date.now() - const randomParam = Math.random().toString(36).substring(2, 8) - const url = `/pages/main/category?categoryId=${category.id}&name=${encodeURIComponent(category.name)}×tamp=${timestamp}&random=${randomParam}` - - uni.switchTab({ - url: '/pages/main/category' - }) + void refreshHomeCategory({ id: category.id, name: category.name }) } // 获取品牌数据 @@ -876,6 +881,31 @@ function getCategoryLabelById(categoryId: string): string { return '精选' } +async function consumeSelectedCategoryFromStorage(): Promise { + if (activeTopModule.value != 'home' || categoryList.value.length == 0) { + return false + } + const savedCategoryId = uni.getStorageSync('selectedCategory') + if (savedCategoryId == null) { + return false + } + const nextCategoryId = String(savedCategoryId) + if (nextCategoryId === '') { + return false + } + uni.removeStorageSync('selectedCategory') + const matchedItem = categoryList.value.find((item: CategoryItem): boolean => item.id == nextCategoryId) + if (matchedItem != null) { + await refreshHomeCategory(matchedItem) + return true + } + await refreshHomeCategory({ + id: nextCategoryId, + name: getCategoryLabelById(nextCategoryId) + }) + return true +} + function formatChannelPrice(price: number): string { const rounded = Math.round(price) if (Math.abs(price - rounded) < 0.001) { @@ -1033,104 +1063,65 @@ async function loadCategoryGoods(categoryId: string): Promise { } } -// 分类标签栏交互 -function handleCategoryTabClick(item: CategoryItem): void { +async function refreshHomeCategory(item: CategoryItem): Promise { currentCategory.value = item.id + currentFeedCategoryId.value = item.id + currentPage.value = 1 + hotProducts.value = [] + hasMore.value = true + selectedSubCategoryId.value = '' + showCategoryPanel.value = false categoryScrollIntoView.value = 'cat-' + item.id - void (async (): Promise => { - currentFeedCategoryId.value = item.id - currentPage.value = 1 - hasMore.value = true - selectedSubCategoryId.value = '' - if (item.id === 'recommend') { - subCategories.value = [] - secondaryCategoryDisplay.value = buildSecondaryCategoryDisplay(item.id) - applyChannelDisplay(item.id) - try { - const result = await supabaseService.getSmartRecommendations(1, defaultLoadLimit) - failedProductImageIds.value = [] - setHotProducts(result.data) - hasMore.value = result.hasmore - } catch (error) { - console.error('加载热销商品失败:', error) - hotProducts.value = [] - hasMore.value = false - } - return - } - try { - const subData = await supabaseService.getSubCategories(item.id) - subCategories.value = subData - } catch (error) { - console.error('加载子分类数据失败:', error) - subCategories.value = [] - } + failedProductImageIds.value = [] + loading.value = true + + if (item.id === 'recommend') { + subCategories.value = [] secondaryCategoryDisplay.value = buildSecondaryCategoryDisplay(item.id) applyChannelDisplay(item.id) try { - loading.value = true - const result = await supabaseService.getProductsByCategory(item.id, 1, defaultLoadLimit) - failedProductImageIds.value = [] + const result = await supabaseService.getSmartRecommendations(1, defaultLoadLimit) setHotProducts(result.data) hasMore.value = result.hasmore } catch (error) { - console.error('分类商品加载失败', error) + console.error('加载推荐商品失败:', error) hotProducts.value = [] hasMore.value = false } finally { loading.value = false } - })() + return + } + + try { + const subData = await supabaseService.getSubCategories(item.id) + subCategories.value = subData + } catch (error) { + console.error('加载子分类数据失败:', error) + subCategories.value = [] + } + secondaryCategoryDisplay.value = buildSecondaryCategoryDisplay(item.id) + applyChannelDisplay(item.id) + try { + const result = await supabaseService.getProductsByCategory(item.id, 1, defaultLoadLimit) + setHotProducts(result.data) + hasMore.value = result.hasmore + } catch (error) { + console.error('分类商品加载失败', error) + hotProducts.value = [] + hasMore.value = false + } finally { + loading.value = false + } +} + +// 分类标签栏交互 +function handleCategoryTabClick(item: CategoryItem): void { + void refreshHomeCategory(item) } function selectCategoryFromPanel(item: CategoryItem): void { - currentCategory.value = item.id - showCategoryPanel.value = false - categoryScrollIntoView.value = 'cat-' + item.id - void (async (): Promise => { - currentFeedCategoryId.value = item.id - currentPage.value = 1 - hasMore.value = true - selectedSubCategoryId.value = '' - if (item.id === 'recommend') { - subCategories.value = [] - secondaryCategoryDisplay.value = buildSecondaryCategoryDisplay(item.id) - applyChannelDisplay(item.id) - try { - const result = await supabaseService.getSmartRecommendations(1, defaultLoadLimit) - failedProductImageIds.value = [] - setHotProducts(result.data) - hasMore.value = result.hasmore - } catch (error) { - console.error('加载热销商品失败:', error) - hotProducts.value = [] - hasMore.value = false - } - return - } - try { - const subData = await supabaseService.getSubCategories(item.id) - subCategories.value = subData - } catch (error) { - console.error('加载子分类数据失败:', error) - subCategories.value = [] - } - secondaryCategoryDisplay.value = buildSecondaryCategoryDisplay(item.id) - applyChannelDisplay(item.id) - try { - loading.value = true - const result = await supabaseService.getProductsByCategory(item.id, 1, defaultLoadLimit) - failedProductImageIds.value = [] - setHotProducts(result.data) - hasMore.value = result.hasmore - } catch (error) { - console.error('分类商品加载失败', error) - hotProducts.value = [] - hasMore.value = false - } finally { - loading.value = false - } - })() + void refreshHomeCategory(item) } const loadRecommendedProducts = async (limit: number): Promise => { @@ -1170,6 +1161,10 @@ const initData = async () => { await loadCategories() await loadBrands() await loadHotKeywords() + if (await consumeSelectedCategoryFromStorage()) { + await loadRecommendedProducts(defaultLoadLimit) + return + } await loadCategoryGoods(currentCategory.value) await loadRecommendedProducts(defaultLoadLimit) } @@ -1233,7 +1228,6 @@ const initPage = () => { statusBarHeight.value = systemInfo.statusBarHeight != null ? systemInfo.statusBarHeight : 20 const searchContentHeight = Math.round(68 * systemInfo.screenWidth / 750) const searchTopGap = Math.round(14 * systemInfo.screenWidth / 750) - const categoryTopGap = Math.round(12 * systemInfo.screenWidth / 750) const headerBottomPadding = Math.round(10 * systemInfo.screenWidth / 750) const moduleRowHeight = Math.round(62 * systemInfo.screenWidth / 750) const categoryRowHeight = Math.round(56 * systemInfo.screenWidth / 750) @@ -1251,24 +1245,23 @@ const initPage = () => { if (menuInfo != null && menuInfo.top > 0) { const navHeight = (menuInfo.top - statusBarHeight.value) * 2 + menuInfo.height navBarHeight.value = navHeight - - // 计算右边距避让 + const rightReserve = systemInfo.screenWidth - menuInfo.left + 8 navBarRight.value = rightReserve - const searchRowTotalH = statusBarHeight.value + Math.max(navHeight, moduleRowHeight) + searchTopGap + searchContentHeight + categoryTopGap + categoryRowHeight + headerBottomPadding - searchRowStyle.value = `padding-top:${statusBarHeight.value}px;height:${searchRowTotalH}px;padding-right:${rightReserve}px;` + const searchRowTotalH = statusBarHeight.value + Math.max(navHeight, moduleRowHeight) + searchTopGap + searchContentHeight + headerBottomPadding + searchRowStyle.value = `padding-right:${rightReserve}px;` navbarTotalHeight.value = searchRowTotalH } else { navBarHeight.value = 44 navBarRight.value = 0 - const searchRowTotalH = statusBarHeight.value + Math.max(44, moduleRowHeight) + searchTopGap + searchContentHeight + categoryTopGap + categoryRowHeight + headerBottomPadding - searchRowStyle.value = `padding-top:${statusBarHeight.value}px;height:${searchRowTotalH}px;` + const searchRowTotalH = statusBarHeight.value + Math.max(44, moduleRowHeight) + searchTopGap + searchContentHeight + headerBottomPadding + searchRowStyle.value = `` navbarTotalHeight.value = searchRowTotalH } headerStyle.value = `` categoryBarHeightPx.value = categoryRowHeight - headerPlaceholderHeight.value = navbarTotalHeight.value + headerPlaceholderHeight.value = navbarTotalHeight.value + categoryBarHeightPx.value const safeBottom = systemInfo.safeArea != null ? systemInfo.screenHeight - systemInfo.safeArea.bottom : 20 bottomSafeArea.value = safeBottom > 0 ? safeBottom : 20 @@ -1288,6 +1281,9 @@ onShow(() => { console.log('=== index页面onShow被调用 ===') console.log('主页重新显示,重置页面状态') startPlaceholderScroll() + if (categoryList.value.length > 0) { + void consumeSelectedCategoryFromStorage() + } // 重置导航栏显示状态 showNavbar.value = true @@ -1297,9 +1293,8 @@ onShow(() => { // 注意:这里不能直接操作scroll-view的滚动位置 // 但可以重置一些页面状态 - // 注意:这里不再清除selectedCategory - // 让分类页面在成功读取后自行清除 - // 这样可以确保分类页面能正确读取到传递的数据 + // 兼容旧分类桥接页:如果首页是从旧入口返回的,前面已经同步读取并清理 selectedCategory + // 这里不再额外处理,避免重复触发分类刷新 // 每次页面显示时尝试更新用户资料 if (!isFirstShow.value) { @@ -1384,24 +1379,18 @@ const switchCategory = (category: any) => { const categoryName = catObj.getString('name') ?? '' console.log('分类ID:', categoryId, '分类名称:', categoryName) - - // 使用Storage传递参数,确保switchTab后能被读取 - uni.setStorageSync('selectedCategory', categoryId) - - // 生成唯一的时间戳和随机参数,确保每次跳转都是新的页面 - const timestamp = Date.now() - const randomParam = Math.random().toString(36).substring(2, 8) - - // 构建带参数的URL,直接通过URL传递分类信息 - const url = `/pages/main/category?categoryId=${categoryId}&name=${encodeURIComponent(categoryName)}×tamp=${timestamp}&random=${randomParam}` - - uni.switchTab({ - url: '/pages/main/category', - success: () => { - // 通过 Storage 传递参数已在上面设置 - console.log('跳转分类页面成功,categoryId:', categoryId) - } - }) + if (categoryId === '') { + return + } + const matchedItem = categoryList.value.find((item: CategoryItem): boolean => item.id == categoryId) + if (matchedItem != null) { + void refreshHomeCategory(matchedItem) + return + } + void refreshHomeCategory({ + id: categoryId, + name: categoryName !== '' ? categoryName : getCategoryLabelById(categoryId) + }) } const switchBrand = (brand: Brand) => { @@ -1968,7 +1957,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders' color: #999999; line-height: 22rpx; height: 22rpx; - transform: translateY(-5rpx); + transform: translateY(-10rpx); } .category-panel-mask { @@ -2001,7 +1990,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders' flex-direction: row; align-items: center; justify-content: space-between; - height: 72rpx; + height: 64rpx; padding: 0 0 0 20rpx; box-sizing: border-box; border-bottom-width: 1rpx; @@ -2015,11 +2004,12 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders' font-weight: 700; color: #2f2f2f; line-height: 1; + transform: translateY(-6rpx); } .category-panel-close-btn { min-width: 96rpx; - height: 72rpx; + height: 64rpx; display: flex; flex-direction: row; align-items: center; @@ -2036,6 +2026,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders' color: #666666; font-weight: 600; line-height: 1; + transform: translateY(-6rpx); } .category-panel-close-arrow { @@ -2043,6 +2034,7 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders' color: #666666; margin-left: 6rpx; line-height: 1; + transform: translateY(-6rpx); } .category-panel-grid { diff --git a/pages/mall/consumer/category.uvue b/pages/mall/consumer/category.uvue index f3494221..b1bea6b2 100644 --- a/pages/mall/consumer/category.uvue +++ b/pages/mall/consumer/category.uvue @@ -5,9 +5,11 @@ diff --git a/scripts/switch-pages.js b/scripts/switch-pages.js index d8b60053..443a21b1 100644 --- a/scripts/switch-pages.js +++ b/scripts/switch-pages.js @@ -58,7 +58,6 @@ const targetConfigs = { orderedTopLevelPaths: [ "pages/main/index", ...consumerUserPages, - "pages/main/category", "pages/main/messages", "pages/main/cart", "pages/main/profile",