| | |
| | | ourData: {}, |
| | | map: null, |
| | | domMove: null, |
| | | query :null, |
| | | query: null, |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // }, 10000) |
| | | // } |
| | | const _this = this; |
| | | // uni.getSystemInfo({ |
| | | // success: (res) => { |
| | | // _this.mapHeight = res.screenHeight - res.statusBarHeight |
| | | // _this.mapHeight = _this.mapHeight |
| | | uni.getSystemInfo({ |
| | | success: (res) => { |
| | | // _this.mapHeight = res.screenHeight - res.statusBarHeight |
| | | _this.mapHeight = res.screenHeight /2 |
| | | _this.mapHeight = _this.mapHeight |
| | | |
| | | // console.log(res) |
| | | // let info = uni.createSelectorQuery().select("Umain"); |
| | | // info.boundingClientRect(function(data) { //data - 各种参数 |
| | | // console.log(data.width) // 获取元素宽度 |
| | | // }).exec() |
| | | // } |
| | | // }) |
| | | // console.log(res) |
| | | // let info = uni.createSelectorQuery().select("Umain"); |
| | | // info.boundingClientRect(function(data) { //data - 各种参数 |
| | | // console.log(data.width) // 获取元素宽度 |
| | | // }).exec() |
| | | } |
| | | }) |
| | | // console.log(document.getElementById("Umain")) |
| | | // this.checkDomHeightId({ |
| | | // domName: "getElementById", |