zhao_js
2023-11-15 b44e169dd8a6e0f15d3788970176922e96aec6e1
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();
    // }
}