小程序 - swiper中嵌套使用scroll-view

效果如下 需要注意的地方 swiper標籤有默認的高度,展示更多的話需要另外設置height值 這裏的scroll-view設置佔滿整個屏幕,height設置100%;swiper的height設置成屏幕的高度(除去tab欄的高度),需要微信提供的api獲取設備屏幕高度數據 wx.getSystemInfo({ success: (res) => { let windowHeight
相關文章
相關標籤/搜索