var that=this;
that.animation.height(that.data.windowWidth * that.data.pixelRatio / 16 * 9 + 160).step()
that.setData({
animation: that.animation.export()
})
if (that.data.mapstatus == 'bottom'){
that.setData({
mapstatus: 'center',
mapHeight: that.data.windowWidth * that.data.pixelRatio / 16 * 9 + 160
})
} else if (that.data.mapstatus == 'center'){
that.setData({
status: 'bottom',
mapstatus: 'top',
mapHeight: that.windowHeight * 0.2
})
}
改变map 的高度,windowHeight的高度包不包括设置的tabBar高度#微信小程序开发教程。想有个动画效果 ,让map 下面的内容跟着 缩短和变长