页面修改

This commit is contained in:
zmj 2023-11-16 10:05:57 +08:00
parent 3088532b46
commit 2c2364849c

View File

@ -5,14 +5,17 @@
</view> </view>
<view v-else> <view v-else>
<view class="content"> <view class="content">
<u-toast ref="uToast"></u-toast> <!-- <u-toast ref="uToast"></u-toast> -->
<view class="map"> <view class="map">
<map :class="mapClass" id="map" @markertap='mapFun' :enable-zoom="true" :polyline="polyline" <map :class="mapClass" id="map" @markertap='mapFun' :enable-zoom="true" :polyline="polyline"
:markers='markers' :scale="scale" style="width:100%;height: 70%;" :markers='markers' :scale="scale" style="width:100%;height: 70%;background-color: red;"
:latitude="markers[0].latitude" :enable-scroll="true" :longitude="markers[0].longitude"> :latitude="markers[0].latitude" :enable-scroll="true" :longitude="markers[0].longitude">
<cover-image class="map_btn" @tap="test" src="../../static/img/logistics/DH.png"> <cover-image class="map_btn" @tap="test" src="../../static/img/logistics/DH.png">
</cover-image> </cover-image>
<cover-view class="cover" v-if="showToast">
</cover-view>
</map> </map>
<view class="map_address"> <view class="map_address">
<view style="display: flex;"> <view style="display: flex;">
<view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir" <view style="flex-shrink: 0;margin-right: 16rpx;"><text class="cir"
@ -105,6 +108,7 @@
<!-- 组件 --> <!-- 组件 -->
<u-overlay :show="showToast" @click="showToast = false"> <u-overlay :show="showToast" @click="showToast = false">
<!-- <u-overlay :show="false" @click="showToast = false"> -->
<view class="warp"> <view class="warp">
<view class="rect"> <view class="rect">
<view class="cont"> <view class="cont">
@ -327,6 +331,11 @@
}); });
}, },
qrqodeFn() { qrqodeFn() {
this.showToast = true
return
let that = this let that = this
uni.scanCode({ uni.scanCode({
onlyFromCamera: true, onlyFromCamera: true,
@ -493,4 +502,14 @@
font-size: 35.05rpx; font-size: 35.05rpx;
} }
} }
.cover {
/* width: 100rpx;
height: 100rpx;
background-color: red; */
z-index: 999999;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
}
</style> </style>