update
This commit is contained in:
@@ -18,6 +18,7 @@ const tabs = [
|
||||
|
||||
const po = reactive({
|
||||
type: 1,
|
||||
is_read: 99,
|
||||
keyword: null,
|
||||
});
|
||||
const vo = reactive({
|
||||
@@ -61,7 +62,11 @@ const changeTab = ({index}) => {
|
||||
</view>
|
||||
|
||||
<view class="!px-[20rpx] !py-[16rpx] box-border !h-[80rpx] !flex items-center">
|
||||
<checkbox>只看未读</checkbox>
|
||||
<checkbox @click="() => {
|
||||
po.is_read = po.is_read === 0 ? 99 : 0;
|
||||
initFetchData();
|
||||
}">只看未读
|
||||
</checkbox>
|
||||
</view>
|
||||
|
||||
<scroll-view
|
||||
@@ -74,6 +79,7 @@ const changeTab = ({index}) => {
|
||||
scroll-y>
|
||||
<view class="!flex flex-col !px-[20rpx]">
|
||||
<MessageCard
|
||||
@success="initFetchData"
|
||||
:context-row="po.type === 0 ? 'ellipsis-1': 'ellipsis-2'"
|
||||
:type="po.type"
|
||||
:data="item"
|
||||
|
||||
@@ -26,6 +26,7 @@ const MyBackfill = defineAsyncComponent(() => import('./components/MyBackfill.vu
|
||||
const ReviewCommunication = defineAsyncComponent(() => import('./components/ReviewCommunication.vue'));
|
||||
// #endif
|
||||
|
||||
const showMenu = ref(false);
|
||||
const ScrollViewRef = ref();
|
||||
const details = ref(null);
|
||||
const home = ref(false);
|
||||
@@ -144,6 +145,16 @@ const setScroll = (value) => {
|
||||
});
|
||||
}
|
||||
const scroll = ({detail: {scrollTop}}) => {
|
||||
const systemInfo = uni.getSystemInfoSync();
|
||||
const screenHeight = systemInfo.screenHeight;
|
||||
console.log('屏幕高度:', screenHeight);
|
||||
|
||||
if (scrollTop > screenHeight) {
|
||||
showMenu.value = true;
|
||||
} else {
|
||||
showMenu.value = false;
|
||||
}
|
||||
|
||||
let last = menuTabs[0];
|
||||
for (const k of menuTabs) {
|
||||
if (scrollTop + 300 > k.value) {
|
||||
@@ -159,7 +170,7 @@ const scroll = ({detail: {scrollTop}}) => {
|
||||
<!--任务详情-->
|
||||
<XNav :delta="delta"></XNav>
|
||||
<x-notice-bar></x-notice-bar>
|
||||
<left-menu :tabs="menuTabs" @top="topTop" @setScroll="setScroll"></left-menu>
|
||||
<left-menu v-show="showMenu" :tabs="menuTabs" @top="topTop" @setScroll="setScroll"></left-menu>
|
||||
|
||||
<scroll-view
|
||||
scroll-y
|
||||
|
||||
Reference in New Issue
Block a user