1. 优化视觉效果、后端规范化

This commit is contained in:
李琦
2026-08-03 08:31:29 +08:00
parent 709893b0b0
commit 9efc2b21d6
2 changed files with 97 additions and 47 deletions

View File

@@ -748,15 +748,10 @@ const likeBusy = ref(false)
let likePulseTimer = null
const previewVisible = ref(false), previewIndex = ref(0), albumLoaded = ref(false)
const albumPreviewImages = ref([])
/** 重型画廊:安卓进视口中线后停滚再串行加载
* iOS 跳过停滚,由 PhotoGallery 近视口 IO 串行挂载(保留滚动连续性) */
const HOLD_GALLERY_TYPES = new Set([
'nine-grid',
'one-large-five-small',
'overlap',
'masonry',
'polaroid',
])
/** 九宫格 / 一大五小:安卓进视口中线后停滚再串行加载
* 错落/瀑布/拍立得不停滚,由组件内 IO 分步挂载
* iOS 全部跳过停滚,近视口 IO 串行(保留滚动连续性) */
const HOLD_GALLERY_TYPES = new Set(['nine-grid', 'one-large-five-small'])
const isHoldGalleryType = (type) => !isIOS && HOLD_GALLERY_TYPES.has(type)
const galleryActivate = reactive({})
const galleryHold = ref(false)