js:获取客户端高度
// 获取客户端高度
wx.getSystemInfo({
success: function (res) {
that.setData({
clientHeight: res.windowHeight
});
}
});
wxml
<swiper style="height: {{clientHeight?clientHeight+'px':'auto'}}">
<swiper-item >
<scroll-view scroll-y="true">