| 12345678910111213141516171819202122232425262728293031323334353637383940 | // pages/threadedTree/modules/popup/index.jsComponent({    /**     * 组件的属性列表     */    properties: {        sheetTitle: String    },    lifetimes: {        ready: function () {            const that = this;            wx.getSystemInfo({                success: (res => that.setData({                    scrollHeight: res.windowHeight - 45                }))            });        }    },    /**     * 组件的初始数据     */    data: {        scrollHeight: 0    },    /**     * 组件的方法列表     */    methods: {        /* 关闭弹窗 */        sheetClose() {            let pages = getCurrentPages(),                prevPage = pages[pages.length - 1];            prevPage.setData({                sheetTitle: ""            })        },    }})
 |