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();
| // }
| }
|
|