H5端显示三列岗位列表

This commit is contained in:
francis_fh
2025-12-09 17:53:45 +08:00
parent aa4b185aa2
commit be47e94196

View File

@@ -33,9 +33,19 @@ export function useColumnCount(onChange = () => {}) {
let count = 2 let count = 2
if (width >= 1000) { if (width >= 1000) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 5 count = 5
// #endif
} else if (width >= 750) { } else if (width >= 750) {
// #ifdef H5
count = 3 // H5端最多显示3列
// #endif
// #ifndef H5
count = 4 count = 4
// #endif
} else if (width >= 500) { } else if (width >= 500) {
count = 3 count = 3
} else { } else {