- 新增 tabbar 配置,改为独立页面路由 - 替换所有 reLaunch 为 switchTab 跳转 tab 页面 - 新增未读消息角标同步逻辑 - 移除旧的多 tab 组件化实现 - 新增 tabbar 图标资源文件
38 行
743 B
Vue
38 行
743 B
Vue
<template>
|
|
<view class="page">
|
|
<MasterMessageView ref="msgRef" />
|
|
<YjyfPrivacyPopup />
|
|
</view>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue';
|
|
import { onShow } from '@dcloudio/uni-app';
|
|
import MasterMessageView from '@/components/master/MasterMessageView.vue';
|
|
import YjyfPrivacyPopup from '@/components/YjyfPrivacyPopup.vue';
|
|
|
|
const msgRef = ref(null);
|
|
let initialShown = false;
|
|
|
|
onShow(() => {
|
|
if (!initialShown) {
|
|
initialShown = true;
|
|
return;
|
|
}
|
|
if (msgRef.value?.load) {
|
|
msgRef.value.load();
|
|
}
|
|
uni.$emit('yjyf:refreshUnread');
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.page {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: $yjyf-bg-page;
|
|
}
|
|
</style>
|