Newer
Older
smart_construction / miniprogram / pages / applog / applog.wxml
dutingting on 12 Dec 2022 2 KB first commit
<van-row class="searchVan">
	<van-search value="{{ value }}" shape="round" background="#ffcf00" placeholder="请输入搜索关键词" bind:focus="onSearch" />
</van-row>

<view style="margin-top:100rpx;overflow:hidden;">

	<view class="log-list {{item.isTouchMove ? 'touch-move-active' : ''}}" wx:for="{{deviceloglist}}" data-index="{{index}}" bindtouchstart="touchstart" bindtouchmove="touchmove" wx:key="index">
		<van-row class="logrow">
			<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 class="title" bindtap="{{!buttonClicked?'addDetail':''}}" data-devcode="{{item.devcode}}">
					{{item.devcode}} {{item.devicetype}}
				</view>

				<view class="subtitle">
					{{item.project}} {{item.installtime}}- {{item.installperson}}
				</view>
			</van-col>
			<van-col span="2">
				<image bindtap="add" data-devcode="{{item.devcode}}" class='point-image' src="/images/point.png"></image>
			</van-col>
		</van-row>
		<view data-index="{{index}}" data-devid="{{item.id}}" bindtap="delItem" class="del">删除</view>
		<!-- <view class="del" data-id="{{item.id}}" catchtap="delBtn" data-index="{{index}}">删除</view> -->
	</view>
	<van-row wx:if="{{show}}">
		<view class="total">
			共计:{{total}}台
		</view>
	</van-row>
</view>