53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
<!--index.wxml-->
|
|
<view class="container">
|
|
<form bindsubmit="formSubmit" bindreset="formReset" id='queryForm'>
|
|
<view class='queryBox'>
|
|
<view class="section">
|
|
<view class='box'>
|
|
<view class="section__title">人员姓名:</view>
|
|
<view class="section__input">
|
|
<input placeholder="请输入姓名" type="text" name="username" />
|
|
</view>
|
|
</view>
|
|
<view class='box'>
|
|
<view class="section__title">所属单位:</view>
|
|
<view class="section__input">
|
|
<input placeholder="请输入单位" type="text" name="unit" />
|
|
</view>
|
|
</view>
|
|
<view class='box'>
|
|
<view class="section__title">手机号码:</view>
|
|
<view class="section__input">
|
|
<input placeholder="请输入手机号码 " type="text" name="phone" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='box'>
|
|
<button form-type="submit" hover-class="other-button-hover"> 查询 </button>
|
|
</view>
|
|
</view>
|
|
</form>
|
|
|
|
<view class="table">
|
|
<view class="tr bg-w">
|
|
<view class="th">姓名</view>
|
|
<view class="th">身份证</view>
|
|
<view class="th">手机号</view>
|
|
</view>
|
|
<block wx:for="{{listData}}" wx:key="{{id}}">
|
|
<view class="tr bg-g" wx:if="{{index % 2 == 0}}" bindtap='jump' id ="{{item.id}}" data-username = "{{item.name}}">
|
|
<view class="td">{{item.name}}</view>
|
|
<view class="td">{{item.ident}}</view>
|
|
<view class="td">{{item.phone}}</view>
|
|
</view>
|
|
<view class="tr" wx:else bindtap='jump' id ="{{item.id}}" data-username = "{{item.name}}">
|
|
<view class="td">{{item.name}}</view>
|
|
<view class="td">{{item.ident}}</view>
|
|
<view class="td">{{item.phone}}</view>
|
|
|
|
</view>
|
|
</block>
|
|
</view>
|
|
|
|
</view>
|