Newer
Older
smart_construction / miniprogram / pages / indexapp / indexapp.wxml
zhout on 16 Jun 2020 1 KB 初版提交
<!--miniprogram/pages/indexapp/indexapp.wxml-->

<view class="" hover-class="none" hover-stop-propagation="false" style="width: 100%; height: 100%;">

	<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}" bindcontroltap="controltap" markers="{{markers}}" scale="13" show-location style="width: 100%; height: 100%;">
	</map>
</view>
<van-search value="{{ value }}" 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>

<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==6}}">
					<image class='log-image' src="/images/js.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">
				<span class="title">{{item.devcode}} {{item.devicetype}}</span>
				<span class="subtitle">
					{{item.installtime}} {{item.project}}
				</span>
			</van-col>
			<van-col span="2">
				<image bindtap="jump" data-point-lon="{{item.longitude}}" data-point-lat="{{item.latitude}}" class='point-image' src="/images/point.png"></image>
			</van-col>
		</van-row>
	</van-row-group>
</view>