diff --git a/packages/community/index/index.vue b/packages/community/index/index.vue index b0ee4067..52487768 100644 --- a/packages/community/index/index.vue +++ b/packages/community/index/index.vue @@ -90,7 +90,8 @@
- + @@ -148,7 +149,9 @@ categoryList: [], infoList: [], - selectedTab: 0 + selectedTab: 0, + + currentAdIndex: 0 } }, async onLoad(options) { @@ -351,6 +354,9 @@ // #endif } }, + onSwiperChange(e) { + this.currentAdIndex = e.detail.current; + }, onDetailClick() { // 获取当前显示的广告项 const currentAd = this.popList[this.currentAdIndex];