- 新增底部导航栏配置,替换原有多页切换逻辑 - 统一页面跳转使用 switchTab 替代 reLaunch,优化性能 - 新增未读消息角标自动更新功能 - 修复登录后跳转逻辑,兼容旧版 tab 参数 - 调整页面高度为 100vh,修复安全区域适配问题 - 优化订单列表页加载逻辑,支持状态参数传递
38 行
752 B
Vue
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>
|