diff --git a/src/views/choujiang/hxl-cj/cj.vue b/src/views/choujiang/hxl-cj/cj.vue index bb84784..192dde9 100644 --- a/src/views/choujiang/hxl-cj/cj.vue +++ b/src/views/choujiang/hxl-cj/cj.vue @@ -93,9 +93,13 @@
- < + < {{ currentPage }}/{{ totalPage }} - > + >
@@ -341,6 +345,11 @@ const leftPage = async (item) => { leftPageBtn.style.background = "#ccc"; } }; + +const throttledleftPage = _.throttle(leftPage, 500, { + trailing: false, +}); + const rightPage = async (item) => { if (currentPage.value == totalPage.value) { return; @@ -370,6 +379,10 @@ const rightPage = async (item) => { } }; +const throttledrightPage = _.throttle(rightPage, 500, { + trailing: false, +}); + //揭示奖品 const lookPrize = async (item) => { // 未进入抽奖禁止揭晓