文件
yjyf/yjyf-app/pages/message/message.vue
MiAn f71a12f5fa feat(app): 重构底部导航为原生 tabbar 并优化页面跳转逻辑
- 新增底部导航栏配置,替换原有多页切换逻辑
- 统一页面跳转使用 switchTab 替代 reLaunch,优化性能
- 新增未读消息角标自动更新功能
- 修复登录后跳转逻辑,兼容旧版 tab 参数
- 调整页面高度为 100vh,修复安全区域适配问题
- 优化订单列表页加载逻辑,支持状态参数传递
2026-11-28 11:29:43 +08:00

38 行
752 B
Vue

<template>
<view class="page">
<UserMessageView ref="msgRef" role-type="user" />
<YjyfPrivacyPopup />
</view>
</template>
<script setup>
import { ref } from 'vue';
import { onShow } from '@dcloudio/uni-app';
import UserMessageView from '@/components/user/UserMessageView.vue';
import YjyfPrivacyPopup from '@/components/YjyfPrivacyPopup.vue';
const msgRef = ref(null);
let initialShown = false;
onShow(() => {
uni.$emit('yjyf:refreshUnread');
if (!initialShown) {
initialShown = true;
return;
}
if (msgRef.value?.load) {
msgRef.value.load();
}
});
</script>
<style lang="scss" scoped>
.page {
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
background: $yjyf-bg-page;
}
</style>