From cd0da0324b5930a965deedf42e2b1b4d89c622ad Mon Sep 17 00:00:00 2001 From: YuanWen Date: Thu, 5 Nov 2026 16:52:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=92=8C=E5=B8=88=E5=82=85=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=8F=8A=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增用户消息中心组件 UserMessageView - 新增师傅消息中心组件 MasterMessageView - 新增用户订单列表组件 UserOrdersView - 重构订单列表页,复用独立组件 - 新增系统工具 getWindowInfoSafe 兼容多端系统信息获取 - 重构 TabBar 组件,支持单母页模式和事件回调 - 优化消息跳转逻辑,支持角色自适应 Tab 切换 --- yjyf-app/components/GoodsPickerDrawer.vue | 8 +- yjyf-app/components/YjyfMasterTabBar.vue | 56 +- yjyf-app/components/YjyfNavBar.vue | 3 +- yjyf-app/components/YjyfTabBar.vue | 107 +- yjyf-app/components/master/MasterHallView.vue | 720 +++++++++++ .../components/master/MasterMessageView.vue | 111 ++ .../components/master/MasterOrdersView.vue | 469 +++++++ .../components/master/MasterWorkbenchView.vue | 332 +++++ yjyf-app/components/user/UserHomeView.vue | 1002 +++++++++++++++ yjyf-app/components/user/UserMessageView.vue | 109 ++ yjyf-app/components/user/UserMineView.vue | 820 ++++++++++++ yjyf-app/components/user/UserOrdersView.vue | 160 +++ yjyf-app/pages/category/category.vue | 3 +- yjyf-app/pages/index/index.vue | 1113 ++--------------- yjyf-app/pages/login/login.vue | 5 +- yjyf-app/pages/master/hall.vue | 782 ++---------- yjyf-app/pages/master/orders.vue | 477 +------ yjyf-app/pages/master/workbench.vue | 327 +---- yjyf-app/pages/message/message.vue | 12 +- yjyf-app/pages/mine/mine.vue | 819 +----------- yjyf-app/pages/order/list.vue | 158 +-- yjyf-app/pages/order/quick.vue | 3 +- yjyf-app/utils/system.js | 30 + 23 files changed, 4088 insertions(+), 3538 deletions(-) create mode 100644 yjyf-app/components/master/MasterHallView.vue create mode 100644 yjyf-app/components/master/MasterMessageView.vue create mode 100644 yjyf-app/components/master/MasterOrdersView.vue create mode 100644 yjyf-app/components/master/MasterWorkbenchView.vue create mode 100644 yjyf-app/components/user/UserHomeView.vue create mode 100644 yjyf-app/components/user/UserMessageView.vue create mode 100644 yjyf-app/components/user/UserMineView.vue create mode 100644 yjyf-app/components/user/UserOrdersView.vue create mode 100644 yjyf-app/utils/system.js diff --git a/yjyf-app/components/GoodsPickerDrawer.vue b/yjyf-app/components/GoodsPickerDrawer.vue index 30dac2b..eccefe2 100644 --- a/yjyf-app/components/GoodsPickerDrawer.vue +++ b/yjyf-app/components/GoodsPickerDrawer.vue @@ -77,7 +77,8 @@ 找不到商品? - 点这里下单 > + 点这里下单 + @@ -524,6 +525,11 @@ color: #F0710D; font-weight: 500; } + .dcl-arrow { + width: 24rpx; + height: 24rpx; + margin-left: 4rpx; + } .clickable-hover:active { opacity: 0.75; diff --git a/yjyf-app/components/YjyfMasterTabBar.vue b/yjyf-app/components/YjyfMasterTabBar.vue index 43f9671..da88c11 100644 --- a/yjyf-app/components/YjyfMasterTabBar.vue +++ b/yjyf-app/components/YjyfMasterTabBar.vue @@ -2,26 +2,26 @@ - - + + 首页 - - + + 订单 - - + + 消息 - - + + 我的 @@ -32,13 +32,27 @@ diff --git a/yjyf-app/components/YjyfNavBar.vue b/yjyf-app/components/YjyfNavBar.vue index 7c9ade5..f679339 100644 --- a/yjyf-app/components/YjyfNavBar.vue +++ b/yjyf-app/components/YjyfNavBar.vue @@ -67,6 +67,7 @@ @@ -150,36 +167,40 @@ height: 128rpx; margin-left: -64rpx; border-radius: 50%; + background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; - background: linear-gradient(180deg, #FFB65E 0%, #EE7412 100%); - box-shadow: 0 10rpx 26rpx rgba(238, 116, 18, 0.45); + box-shadow: 0 10rpx 28rpx rgba(240, 113, 13, 0.45); + border: 8rpx solid #ffffff; + box-sizing: border-box; + transition: transform 0.15s ease, box-shadow 0.15s ease; } - .fab.active { - box-shadow: 0 10rpx 32rpx rgba(238, 116, 18, 0.65), 0 0 0 6rpx rgba(255, 182, 94, 0.35); - transform: scale(1.03); + .fab:active { + transform: scale(0.94); + box-shadow: 0 4rpx 16rpx rgba(240, 113, 13, 0.35); } .fab-icon { - width: 44rpx; - height: 44rpx; - flex-shrink: 0; + width: 52rpx; + height: 52rpx; } .fab-txt { - margin-top: 4rpx; - font-size: 22rpx; - line-height: 1.2; + font-size: 20rpx; + font-weight: 600; color: #ffffff; + line-height: 1; + margin-top: 4rpx; + letter-spacing: 0.5rpx; } - /* 底部安全区占位 */ .tabbar-placeholder { - width: 100%; - height: calc(120rpx + constant(safe-area-inset-bottom)); - height: calc(120rpx + env(safe-area-inset-bottom)); + height: 112rpx; + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); + box-sizing: content-box !important; } diff --git a/yjyf-app/components/master/MasterHallView.vue b/yjyf-app/components/master/MasterHallView.vue new file mode 100644 index 0000000..30922c3 --- /dev/null +++ b/yjyf-app/components/master/MasterHallView.vue @@ -0,0 +1,720 @@ + + + + + diff --git a/yjyf-app/components/master/MasterMessageView.vue b/yjyf-app/components/master/MasterMessageView.vue new file mode 100644 index 0000000..4828f62 --- /dev/null +++ b/yjyf-app/components/master/MasterMessageView.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/yjyf-app/components/master/MasterOrdersView.vue b/yjyf-app/components/master/MasterOrdersView.vue new file mode 100644 index 0000000..ddbb785 --- /dev/null +++ b/yjyf-app/components/master/MasterOrdersView.vue @@ -0,0 +1,469 @@ + + + + + diff --git a/yjyf-app/components/master/MasterWorkbenchView.vue b/yjyf-app/components/master/MasterWorkbenchView.vue new file mode 100644 index 0000000..28e30f6 --- /dev/null +++ b/yjyf-app/components/master/MasterWorkbenchView.vue @@ -0,0 +1,332 @@ + + + + + diff --git a/yjyf-app/components/user/UserHomeView.vue b/yjyf-app/components/user/UserHomeView.vue new file mode 100644 index 0000000..9856ba2 --- /dev/null +++ b/yjyf-app/components/user/UserHomeView.vue @@ -0,0 +1,1002 @@ + + + + + diff --git a/yjyf-app/components/user/UserMessageView.vue b/yjyf-app/components/user/UserMessageView.vue new file mode 100644 index 0000000..0e5696f --- /dev/null +++ b/yjyf-app/components/user/UserMessageView.vue @@ -0,0 +1,109 @@ + + + + + diff --git a/yjyf-app/components/user/UserMineView.vue b/yjyf-app/components/user/UserMineView.vue new file mode 100644 index 0000000..4a1623e --- /dev/null +++ b/yjyf-app/components/user/UserMineView.vue @@ -0,0 +1,820 @@ + + + + + diff --git a/yjyf-app/components/user/UserOrdersView.vue b/yjyf-app/components/user/UserOrdersView.vue new file mode 100644 index 0000000..13fb3ef --- /dev/null +++ b/yjyf-app/components/user/UserOrdersView.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/yjyf-app/pages/category/category.vue b/yjyf-app/pages/category/category.vue index 12920d6..46a100d 100644 --- a/yjyf-app/pages/category/category.vue +++ b/yjyf-app/pages/category/category.vue @@ -84,13 +84,14 @@ import YjyfTabBar from '@/components/YjyfTabBar.vue'; import GoodsPickerDrawer from '@/components/GoodsPickerDrawer.vue'; import api from '@/utils/api.js'; + import { getWindowInfoSafe } from '@/utils/system.js'; // 系统状态栏高度与胶囊按钮适配 const statusBarHeight = ref(20); const navBarHeight = ref(44); try { - const info = uni.getSystemInfoSync(); + const info = getWindowInfoSafe(); if (info && info.statusBarHeight) statusBarHeight.value = info.statusBarHeight; if (typeof uni.getMenuButtonBoundingClientRect === 'function') { const menu = uni.getMenuButtonBoundingClientRect(); diff --git a/yjyf-app/pages/index/index.vue b/yjyf-app/pages/index/index.vue index 6473669..5681445 100644 --- a/yjyf-app/pages/index/index.vue +++ b/yjyf-app/pages/index/index.vue @@ -1,1060 +1,101 @@ - diff --git a/yjyf-app/pages/login/login.vue b/yjyf-app/pages/login/login.vue index f63c7c0..a6b6472 100644 --- a/yjyf-app/pages/login/login.vue +++ b/yjyf-app/pages/login/login.vue @@ -1,4 +1,4 @@ -