chore(master): 重构师傅端 tabbar 为独立页面路由模式
- 新增 tabbar 配置,改为独立页面路由 - 替换所有 reLaunch 为 switchTab 跳转 tab 页面 - 新增未读消息角标同步逻辑 - 移除旧的多 tab 组件化实现 - 新增 tabbar 图标资源文件
这个提交包含在:
@@ -922,8 +922,7 @@
|
||||
@import '@/uni.scss';
|
||||
|
||||
.hall-view {
|
||||
height: calc(100vh - 112rpx - constant(safe-area-inset-bottom));
|
||||
height: calc(100vh - 112rpx - env(safe-area-inset-bottom));
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
];
|
||||
|
||||
function goMasterLogin() {
|
||||
toLogin('/pages/master/hall?tab=2');
|
||||
toLogin('/pages/message/message');
|
||||
}
|
||||
|
||||
async function load() {
|
||||
@@ -158,8 +158,7 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.message-view {
|
||||
height: calc(100vh - 112rpx - constant(safe-area-inset-bottom));
|
||||
height: calc(100vh - 112rpx - env(safe-area-inset-bottom));
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
}
|
||||
|
||||
function goMasterLogin() {
|
||||
toLogin('/pages/master/hall?tab=1');
|
||||
toLogin('/pages/master/orders');
|
||||
}
|
||||
|
||||
async function load() {
|
||||
@@ -333,7 +333,7 @@
|
||||
emit('switch-tab', 0);
|
||||
return;
|
||||
}
|
||||
uni.reLaunch({ url: '/pages/master/hall' });
|
||||
uni.switchTab({ url: '/pages/master/hall' });
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
@@ -444,7 +444,7 @@
|
||||
|
||||
/* 列表卡片 */
|
||||
.list {
|
||||
padding: 24rpx 24rpx calc(140rpx + env(safe-area-inset-bottom));
|
||||
padding: 24rpx 24rpx 48rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20rpx;
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
}
|
||||
|
||||
function goMasterLogin() {
|
||||
toLogin('/pages/master/hall?tab=3');
|
||||
toLogin('/pages/master/workbench');
|
||||
}
|
||||
|
||||
function go(url) {
|
||||
@@ -449,7 +449,7 @@
|
||||
emit('switch-tab', 1);
|
||||
return;
|
||||
}
|
||||
uni.reLaunch({ url: '/pages/master/hall?tab=1' });
|
||||
uni.switchTab({ url: '/pages/master/orders' });
|
||||
}
|
||||
|
||||
function goSkills() {
|
||||
@@ -634,8 +634,7 @@
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.workbench-view {
|
||||
height: calc(100vh - 112rpx - constant(safe-area-inset-bottom));
|
||||
height: calc(100vh - 112rpx - env(safe-area-inset-bottom));
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
在新工单中引用
屏蔽一个用户