123456789101112131415 |
- Component({
- //使用在自定义头部 导航 沉浸式 显示后退按钮
- properties: {
- title: String
- },
- data: {
- backTop: wx.getMenuButtonBoundingClientRect().bottom - wx.getMenuButtonBoundingClientRect().height,
- backHeight: wx.getMenuButtonBoundingClientRect().height
- },
- methods: {
- back() {
- wx.navigateBack();
- },
- },
- });
|