+
liuyg
2022-02-22 d3ccf1ca0e991ed821407a0af0399db68ef35866
+
1 files modified
25 ■■■■ changed files
pages/grabOrders/map.vue 25 ●●●● patch | view | raw | blame | history
pages/grabOrders/map.vue
@@ -126,7 +126,7 @@
                ourData: {},
                map: null,
                domMove: null,
                query :null,
                query: null,
            }
        },
        methods: {
@@ -433,18 +433,19 @@
            //     }, 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",