<!--miniprogram/pages/indexapp/indexapp.wxml-->


<!-- <button  open-type="getUserInfo" bindgetuserinfo="getPerson">获取用户信息</button> -->

<view class="icon-finishi-area" bindtap="clickFinishArea" wx:if="{{!actionSheetShow}}">
    <image wx:if="{{!isSign}}" src="../../images/not-finish.png" class="icon-finishi" mode=""/>
    <image wx:if="{{isSign}}" src="../../images/finish.png" class="icon-finishi" mode=""/>
</view>
<view class="" hover-class="none" hover-stop-propagation="false" style="width: 100%; height: 100%; min-height:100%;">
	<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}"  bindcontroltap="controltap"  markers="{{markers}}" scale="13" show-location 
	style="width: 100%; height: 100%; min-height:100%">
	</map>
</view>
<van-search value="{{ devcode }}" shape="round"  label="编号" placeholder="根据设备编号/井编号搜索" use-action-slot bind:change="onChange" bind:search="onSearch">
	<view slot="action" bind:tap="onClick">
		<image class="scan-img" src="../../images/saoma.png"></image>
	</view>
</van-search>
<view class="titleinfo">最近访问的位置</view>
<scroll-view class="viewlist" scroll-y="true">
<view class="log-list" wx:for="{{deviceloglist}}" wx:key="index">
	<van-row-group>
		<van-row>
			<van-col span="3">
				<view wx:if="{{item.welltype==1}}">
					<image class='log-image' src="/images/ys.png"></image>
				</view>
				<view wx:elif="{{item.welltype==2}}">
					<image class='log-image' src="/images/ws.png"></image>
				</view>
				<view wx:elif="{{item.welltype==3}}">
					<image class='log-image' src="/images/rq.png"></image>
				</view>
				<view wx:elif="{{item.welltype==4}}">
					<image class='log-image' src="/images/rl.png"></image>
				</view>
				<view wx:elif="{{item.welltype==5}}">
					<image class='log-image' src="/images/dl.png"></image>
				</view>
					<view wx:elif="{{item.welltype==12}}">
					<image class='log-image' src="/images/js.png"></image>
				</view>
					<view wx:elif="{{item.welltype==8}}">
					<image class='log-image' src="/images/tx.png"></image>
				</view>
					<view wx:elif="{{item.welltype==11}}">
					<image class='log-image' src="/images/xf.png"></image>
				</view>
				<view wx:else>
					<image class='log-image' src="/images/bm.png"></image>
				</view>
			</van-col>
			<van-col class="log-info" span="19">
                <view style="display: flex;flex-direction: column;justify-content: space-around;height: 100rpx;">
                    <view class="title" bindtap="toDetail"  data-devcode="{{item.devcode}}" >{{item.devcode}} {{item.devicetype}}</view>
                    <view class="subtitle">
                        {{item.installtime}} {{item.project}}
                    </view>
                </view>
				
			</van-col>
			<van-col span="2">
				<image  bindtap="jump" data-point-lon="{{item.longitude}}" data-point-lat="{{item.latitude}}" data-point-code="{{item.devcode}}" class='point-image' src="/images/point.png"></image>
			</van-col>
		</van-row>
	</van-row-group>
</view>
</scroll-view>
<!-- <van-popup show="{{ show }}" overlay="false" bind:close="onClose" duration="1">

	<image  class='noticeClass' src="/images/notice.jpg">
	</image>
</van-popup> -->

<van-action-sheet
  show="{{ actionSheetShow }}"
  actions="{{ projectList }}"
  description="请选择施工项目"
  bind:select="selectProject"
/>
