Newer
Older
smart_construction / miniprogram / pages / earth / earth.wxml
dutingting 25 days ago 3 KB 新需求开发90%
<!--miniprogram/pages/earth/earth.wxml-->
<view class="earth" hover-class="none" hover-stop-propagation="false" style="width: 100%; height: 100%;">
 <!-- <navigator open-type="switchTab" url="{{urlTab}}"><view>返回日志页</view></navigator> -->
	<!-- <view class="map_container"> -->
	<van-search value="{{ value }}" label="地址"  shape="round" background="#ffcf00" placeholder="请输入搜索关键词" bind:change="onChange">
	</van-search>

	<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" bindcallouttap="bindcallouttap"   scale="20"  bindregionchange="bindregionchange" enable-satellite="{{enableSsatellite}}" scale="13" show-location style="width: 100%; height: 100%;">
		<cover-view wx:if="{{isShow}}" class="map-search-list {{isShow ? '' : 'map-hide'}}">
			<cover-view bindtouchstart="bindSearch" wx:key="searchId" data-keywords="{{item.title}}" data-location="{{item.location}}" class="map-box" wx:for="{{tips}}">
				{{item.title}} {{item.address}}
			</cover-view>
		</cover-view>
        <cover-view slot="callout">
        <!-- <cover-view class="zh-marker-label" marker-id="{{id}}">
            这是一个自定义气泡
        </cover-view> -->
    </cover-view>
		<cover-view class="cover">{{longitude}},{{latitude}}</cover-view>

        <!-- <cover-view class="cover1" wx:for="{{ controls }} wx:key={{ item.id }}">
            <cover-image src="../../images/add.png" style="{{item.position}}" mode=""/>
        </cover-view> -->
        <image src="../../images/copy.png" style="position: absolute;right: {{position1.right}};top: {{position1.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='1' />
        <image src="../../images/write.png" style="position: absolute;right: {{position2.right}};top: {{position2.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='2'/>
        <image src="../../images/add.png" style="position: absolute;right: {{position3.right}};top: {{position3.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='3'/>
        <image src="../../images/map.png" style="position: absolute;right: {{position9.right}};top: {{position9.top}};width:  60rpx;height:  60rpx;" mode=""  bindtap="controltap" data-controlId='9'/>
        <image src="../../images/navigation.png" style="position: absolute;right: {{position4.right}};bottom: {{position4.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='4'/>
        <image src="../../images/gps.png" style="position: absolute;left: {{position5.left}};bottom: {{position5.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='5'/>
        <image src="../../images/aim.png" style="position: absolute;left: {{position6.left}};bottom: {{position6.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='6'/>
        <image src="../../images/applocat.png" style="position: absolute;left: {{position7.left}};top: {{position7.top}};width: 60rpx;height: 60rpx;" mode="" />
        <image src="../../images/back.png" style="position: absolute;right: {{position8.right}};bottom: {{position8.bottom}};width: 60rpx;height: 60rpx;" mode=""  bindtap="controltap" data-controlId='8'/>
	</map>


</view>
<!-- <van-popup show="{{ show }}" closeable close-icon="close" position="bottom" custom-style="height: 70%;" bind:close="onClose" bind:after-leave="leave"> -->
<van-popup show="{{ show }}"  position="bottom" custom-style="height: 800rpx" bind:close="onClose" >
	<van-button bindtap="leave" type="primary" style="margin: 10px 10px 0 0;position: fixed;right: 0rpx;bottom: 700rpx;z-index: 100;">查询</van-button>
    <van-cell-group>
		<van-field model:value="{{ devcodes }}" adjust-position="false" style="height: 100%;overflow: auto;"  type="textarea" placeholder="请输入定位设备编号用换行隔开" autosize border="{{ false }}" />
	</van-cell-group>
</van-popup>