|
@@ -31,11 +31,11 @@ export function useSwiper(Da, callBack) {
|
|
if (absDeltaX > 10 && checkBusinessCondition()) {
|
|
if (absDeltaX > 10 && checkBusinessCondition()) {
|
|
swiperData.isAllowed = true;
|
|
swiperData.isAllowed = true;
|
|
// 根据方向更新索引
|
|
// 根据方向更新索引
|
|
- if (deltaX > 0 && Da.activeIndex > 0) {
|
|
|
|
- Da.activeIndex--; // 向右滑,上一页
|
|
|
|
- } else if (deltaX < 0 && Da.activeIndex < Da.jieNumberList.length - 1) {
|
|
|
|
- Da.activeIndex++; // 向左滑,下一页
|
|
|
|
- }
|
|
|
|
|
|
+ // if (deltaX > 0 && Da.activeIndex > 0) {
|
|
|
|
+ // Da.activeIndex--; // 向右滑,上一页
|
|
|
|
+ // } else if (deltaX < 0 && Da.activeIndex < Da.jieNumberList.length - 1) {
|
|
|
|
+ // Da.activeIndex++; // 向左滑,下一页
|
|
|
|
+ // }
|
|
} else {
|
|
} else {
|
|
swiperData.isAllowed = false;
|
|
swiperData.isAllowed = false;
|
|
}
|
|
}
|