忽略本地报错信息文件

This commit is contained in:
2026-06-17 10:20:43 +08:00
parent 6b11144366
commit 090362c32d
191 changed files with 5434 additions and 76452 deletions

View File

@@ -47,9 +47,22 @@
<view class="jd-header-placeholder" :style="{ height: (activeTopModule == 'home' ? headerPlaceholderHeight : navbarTotalHeight) + 'px' }"></view>
<scroll-view
direction="vertical"
<!-- #ifdef WEB || H5 -->
<scroll-view
direction="vertical"
class="main-scroll main-scroll-web"
:style="{ height: mainScrollHeight + 'px' }"
:lower-threshold="50"
@scrolltolower="handleMainScrollToLower"
@scroll="handleScroll"
>
<!-- #endif -->
<!-- #ifndef H5 -->
<!-- #ifndef WEB -->
<scroll-view
direction="vertical"
class="main-scroll"
:style="{ height: mainScrollHeight + 'px' }"
refresher-enabled
:refresher-triggered="refreshing"
:lower-threshold="50"
@@ -57,6 +70,8 @@
@scrolltolower="handleMainScrollToLower"
@scroll="handleScroll"
>
<!-- #endif -->
<!-- #endif -->
<HomeMallContent
v-if="activeTopModule == 'home'"
:current-category="currentCategory"
@@ -191,7 +206,14 @@
</view>
<view class="safe-area" :style="{ height: bottomSafeArea + 88 + 'px' }"></view>
<!-- #ifdef WEB || H5 -->
</scroll-view>
<!-- #endif -->
<!-- #ifndef H5 -->
<!-- #ifndef WEB -->
</scroll-view>
<!-- #endif -->
<!-- #endif -->
<view
v-if="activeTopModule == 'home' && showCategoryPanel"
@@ -261,6 +283,7 @@ import { logSupaConfig } from '@/ak/config.uts'
const statusBarHeight = ref(0)
const bottomSafeArea = ref(20)
const scrollHeight = ref(0)
const screenWindowHeight = ref(667)
const refreshing = ref(false)
const loading = ref(false)
const isFirstShow = ref(true)
@@ -298,6 +321,13 @@ const searchRowStyle = ref('')
const activeTopModule = ref('home')
const searchKeyword = ref('')
const MIN_MAIN_SCROLL_HEIGHT = 320
const mainScrollHeight = computed((): number => {
const headerHeight = activeTopModule.value == 'home' ? headerPlaceholderHeight.value : navbarTotalHeight.value
const availableHeight = screenWindowHeight.value - headerHeight
return availableHeight > MIN_MAIN_SCROLL_HEIGHT ? availableHeight : MIN_MAIN_SCROLL_HEIGHT
})
type HeaderModuleItem = {
key: string
label: string
@@ -2102,10 +2132,15 @@ const initPage = () => {
statusBarHeight.value = windowInfo.statusBarHeight != null ? windowInfo.statusBarHeight : 20
screenWidth = windowInfo.screenWidth != null ? windowInfo.screenWidth : (windowInfo.windowWidth != null ? windowInfo.windowWidth : 375)
screenHeight = windowInfo.screenHeight != null ? windowInfo.screenHeight : (windowInfo.windowHeight != null ? windowInfo.windowHeight : 667)
screenWindowHeight.value = screenHeight
safeAreaBottom = windowInfo.safeArea != null ? windowInfo.safeArea.bottom : 0
} catch (e) {
statusBarHeight.value = 20
screenWindowHeight.value = screenHeight
}
// #ifdef WEB || H5
statusBarHeight.value = 0
// #endif
const searchContentHeight = Math.round(68 * screenWidth / 750)
const searchTopGap = Math.round(14 * screenWidth / 750)
const headerBottomPadding = Math.round(10 * screenWidth / 750)
@@ -2144,6 +2179,9 @@ const initPage = () => {
headerPlaceholderHeight.value = navbarTotalHeight.value + categoryBarHeightPx.value
const safeBottom = safeAreaBottom > 0 ? (screenHeight - safeAreaBottom) : 20
bottomSafeArea.value = safeBottom > 0 ? safeBottom : 20
// #ifdef WEB || H5
bottomSafeArea.value = 0
// #endif
isMobile.value = screenWidth < 768
}
@@ -2604,6 +2642,39 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
width: 100%;
}
/* #ifdef WEB || H5 */
.medic-home {
position: fixed;
width: 100vw;
height: 100vh;
min-height: 100vh;
}
.home-main-stage {
height: 100vh;
display: flex;
flex-direction: column;
min-height: 0;
}
.jd-header-placeholder {
flex: 0 0 auto;
}
.main-scroll-web {
flex: none;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
}
.home-skeleton-overlay {
position: fixed;
}
/* #endif */
.service-home-section {
background-color: #f4f8fb;
padding: 16rpx 16rpx 32rpx;
@@ -3173,6 +3244,18 @@ const navigateToReminders = () => uni.navigateTo({ url: '/pages/user/reminders'
z-index: 1;
}
/* #ifdef WEB || H5 */
.main-scroll-web {
flex: none;
overflow-y: auto;
overflow-x: hidden;
}
.service-home-section {
min-height: auto;
}
/* #endif */
/* 智能健康卡片 */
.smart-health-card {
background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);