1. 图片放大
https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewImage.html
wx.previewImage({
current: '', // 当前显示图片的http链接
urls: [] // 需要预览的图片http链接列表
})
2. 顶部对齐胶囊
https://developers.weixin.qq.com/miniprogram/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html
const res = wx.getMenuButtonBoundingClientRect()
this.setData({
logoTop: res.top + 'px'
})