flat:修改

This commit is contained in:
Apcallover
2025-12-16 09:22:57 +08:00
parent e19673b99e
commit d9f0356491
10 changed files with 344 additions and 373 deletions

View File

@@ -71,7 +71,7 @@
</template>
<script setup>
import { ref, inject, nextTick, computed,watch } from 'vue';
import { ref, inject, nextTick, computed, watch } from 'vue';
const { $api, navTo, insertSortData } = inject('globalFunction');
import { onLoad, onShow, onHide } from '@dcloudio/uni-app';
import Tabbar from '@/components/tabbar/midell-box.vue';
@@ -88,19 +88,18 @@ import config from '@/config';
const searchText = ref('');
const paging = ref(null);
import useScreenStore from '@/stores/useScreenStore';
const screenStore = useScreenStore();
import useScreenStore from '@/stores/useScreenStore'
const screenStore = useScreenStore()
const showTabbar = ref(false)
const showTabbar = ref(false);
watch(
() => screenStore.isWideScreen,
(newVal) => {
showTabbar.value = newVal
showTabbar.value = newVal;
},
{ immediate: true }
)
);
// 实时过滤
const filteredList = computed(() => {
@@ -125,7 +124,7 @@ onHide(() => {
paging.value?.handleTouchCancel();
if (isDrawerOpen.value) {
isDrawerOpen.value = false;
if(!screenStore.isWideScreen)uni.showTabBar();
if (!screenStore.isWideScreen) uni.showTabBar();
}
});
@@ -134,7 +133,7 @@ const toggleDrawer = () => {
if (isDrawerOpen.value) {
uni.hideTabBar();
} else {
if(!screenStore.isWideScreen)uni.showTabBar();
if (!screenStore.isWideScreen) uni.showTabBar();
}
};