1.实现scroll-view顶部或者底部不随scroll滚动而滚动:
<scroll-view scroll-y='true' scroll-x="false"
style='height:{{boxHeight}}px'>
onShow: function() {
console.log(wx.getSystemInfoSync().windowHeight)
this.setData({
//30是顶部或者底部的高度除以2
boxHeight: wx.getSystemInfoSync().windowHeight - 30
})
},