liuyg
2022-02-23 ddb2c1b392519fb40086939583bdfad9a43d1ead
+高度
1 files modified
50 ■■■■ changed files
pages/grabOrders/map.vue 50 ●●●● patch | view | raw | blame | history
pages/grabOrders/map.vue
@@ -1,12 +1,12 @@
<template>
    <view class="content">
        <u-top-tips ref="uTips"></u-top-tips>
        <!-- <u-top-tips ref="uTips"></u-top-tips> -->
        <!-- <u-button type="info" @click="acc">测试</u-button> -->
        <!-- <web-view :src="urls" @message="message"></web-view> -->
        <map :scale='18' id="myMap" style="width: 100%;z-index: 10000;" :style="{height: mapHeight + 'px'}"
            :markers="markersCom" :longitude="longitude" :latitude="latitude" :circles="circlesCom"
            :polyline="mypolylinesCom"></map>
        <cover-view id="Umain">
        <map :scale='18' id="myMap" style="width: 100%" :style="{height: mapHeight + 'px'}" :markers="markersCom"
            :longitude="longitude" :latitude="latitude" :circles="circlesCom" :polyline="mypolylinesCom"
            show-location="true"></map>
        <view id="Umain">
            <view class="once-b">
                任务详情
            </view>
@@ -95,7 +95,7 @@
                </view>
            </view>
        </u-popup>
        </cover-view>
        </view>
    </view>
</template>
@@ -412,6 +412,32 @@
                //  首次执行
                checkDom();
            },
            showWindow() {
                return
                let sub = uni.getSubNVueById("myMap");
                sub.show('slide-in-left', 200, () => {
                    console.log('subNVue 原生子窗体显示成功');
                });
                sub.setStyle({
                    "position": "absolute",
                    "width": "100%",
                    "height": "50%",
                    "left": "0px",
                    "bottom": "0px",
                    "background-color": "#FFF000",
                    "border-top-left-radius": "15px",
                    "border-top-right-radius": "15px"
                });
            },
            sendMsg(data) {
                uni.$emit('sub', {
                    project: data
                });
            },
            hideWindow() {
                let sub = uni.getSubNVueById("sub");
                sub.hide('fade-out', 300)
            },
        },
        computed: {
            isOnTaskValue() {
@@ -592,12 +618,15 @@
            const _this = this;
            uni.getSystemInfo({
                success: (res) => {
                    // _this.mapHeight = res.screenHeight - res.statusBarHeight
                    // _this.mapHeight = (res.screenHeight - res.statusBarHeight) /2
                    // setTimeout(() => {
                    //     that.getDom('#Umain', data => {
                    console.log(res.screenHeight - res.statusBarHeight - 420)
                    _this.mapHeight = res.screenHeight - res.statusBarHeight - 420
                    _this.mapHeight = _this.mapHeight
                    // console.log(res.statusBarHeight, res.screenHeight, data, 'dat')
                    // console.log(res.screenHeight - data.height + res
                    //     .statusBarHeight)
                    // _this.mapHeight = res.screenHeight - res.statusBarHeight - 420
                    that.mapHeight = res.screenHeight - res.statusBarHeight - 466
                    that.mapHeight = that.mapHeight
                    // })
                    // }, 1000)
@@ -720,6 +749,7 @@
                arrowLine: false, //带箭头的线 开发者工具暂不支持该属性
            }
            console.log(this.mypolylines)
            this.showWindow();
            // this.getLocationInfo(data);
            if (data.butCT == "beginUp" && data.buttype == 0) {
                this.bye = false;