zhaojs
2023-06-10 c71b7373cd70e2ddcce9c2e2b78d5d273b0ac329
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export default{
    topHeight:function () {
        var height; 
        uni.createSelectorQuery().select('.placeBox').boundingClientRect(data => {
            console.log("头部高度" + JSON.stringify(data.height));
            height = data.height
        }).exec();
        return height
    }
    // const topHeight =  getheaderTopHeight() {
        // uni.createSelectorQuery().select('.placeBox').boundingClientRect(data => {
        //     console.log("头部高度" + JSON.stringify(data.height));
        //     // return data.height;
        // }).exec();
    // }
}