You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

56 lines
2.9 KiB

<!-- pagesA/facepeople/facepeople.wxml -->
<view class="facepeople">
<!-- 搜索框图像管理 -->
<view class="facepeople-search">
<van-search value="{{ value }}" placeholder="请输入搜索关键词" show-action bind:search="onSearch" bind:cancel="onCancel" />
<!-- 图像管理 -->
<view class="facepeople-manage">
<view class="manage-title">图像管理</view>
<!-- <view class="manage-create" bindtap="addFace"> -->
<view class="manage-create" bindtap="changeshow2">
<van-icon name="plus" class="plus" />
<span class="new">新增</span>
</view>
</view>
</view>
<!-- 个人数据 -->
<view class="facepeople-list" wx:for="{{faceList}}" wx:key="{{index}}">
<view class="facepeople-item" bindtap="changeshow" data-item="{{item}}">
<view class="facepeople-left">
<van-image round width="100rpx" height="100rpx" src="{{item.facepic}}" />
<span class="name">{{item.pzname}}</span>
</view>
<view class="facepeople-right">
<span class="facepeople-date">{{ item.startTime }} - {{ item.endTime }}</span>
<van-icon name="arrow" class="arrow" />
</view>
</view>
</view>
<!-- 个人数据弹出框 -->
<van-popup show="{{ show }}" bind:close="onClose" round>
<view class="popup-face">
<view class="face-item" bindtap="gotoinfo">修改图像信息</view>
<view class="face-item" bindtap="delFace">删除该图像信息</view>
<view class="face-item" bindtap="onClose">取消</view>
</view>
</van-popup>
<!-- 影响弹出框 -->
<van-popup show="{{ show2 }}" bind:close="onClose" round>
<view class="addfaces">
<van-field value="{{ facename }}" placeholder="请输入图像名称" label="人脸" border="{{ true }}" bind:change="onChange2" maxlength="8" />
<picker mode="date" value="{{starttime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChange">
<van-field value="{{ starttime }}" placeholder="请选择开始时间" label="开始时间" border="{{ true }}" readonly />
</picker>
<picker mode="date" value="{{endtime}}" start="{{minDate}}" end="{{ minDate1 }}" bindchange="bindDateChange1">
<van-field value="{{ endtime }}" placeholder="请选择结束时间" label="结束时间" border="{{ true }}" readonly />
</picker>
<view class="pic">
<view class="picadd" bindtap="addFace">
<van-icon name="plus" size="60" color="#E0E0E0" wx:if="{{!chooseface}}"/>
<image class="faceimg" src="{{avatarPath}}" wx:else></image>
</view>
</view>
<view class=""><button type="primary" bindtap="sendface">添加</button></view>
</view>
</van-popup>
</view>