New Huajishe Check ChaoXing

This commit is contained in:
e2hang
2025-10-01 10:01:52 +08:00
parent 240b884eac
commit 80be8ae3cf
1094 changed files with 61709 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
function isPrev(current, index, list) {
return (current - 1 + list.length) % list.length === index;
}
function isNext(current, index, list) {
return (current + 1 + list.length) % list.length === index;
}
function getImageClass(prefix, current, index, list) {
var arr = [prefix + '-swiper__image-host', prefix + '-swiper__image', prefix + '-class-image'];
if (isPrev(current, index, list)) {
arr.push(prefix + '-class-prev-image');
}
if (isNext(current, index, list)) {
arr.push(prefix + '-class-next-image');
}
return arr.join(' ');
}
module.exports.isPrev = isPrev;
module.exports.isNext = isNext;
module.exports.getImageClass = getImageClass;