71 lines
2.9 KiB
Plaintext
71 lines
2.9 KiB
Plaintext
<view class="page">
|
|
<view class="container">
|
|
<view class="tab" style="position:fixed;z-index:999;width:100%;top:0px;left:0;background: #fff;">
|
|
<view class="tab-item" bindtap="switchTab" data-tab="tab1">获证信息统计</view>
|
|
<view class="tab-item" bindtap="switchTab" data-tab="tab2">证书真伪查询</view>
|
|
<view style="position: absolute;z-index:999;top:46px;left:0;width:100%;background: #fff;" wx:if="{{currentTab === 'tab1'}}">
|
|
<view style="padding-top: 18px;" >
|
|
<input class="search-input" placeholder="搜索..." bindinput="onSearchInput" />
|
|
</view>
|
|
<view class="table-header" >
|
|
<text style="width:60px;">姓名</text>
|
|
<text style="width:90px;">所在企业</text>
|
|
<text style="width:70px;">职业等级</text>
|
|
<text style="width:100px;">职业方向</text>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="tab-content" style="height:500px;padding-top:150px;position: relative;z-index:1;" >
|
|
<view wx:if="{{currentTab === 'tab1'}}">
|
|
|
|
<view class="table">
|
|
|
|
<view class="table-body" >
|
|
<block wx:for="{{consumers}}" wx:key="index">
|
|
<view class="table-row" bindtap="showModal" data-item="{{item}}">
|
|
<text style="width:60px">{{item.consumer_name}}</text>
|
|
<text style="width:90px;">{{item.company_name}}</text>
|
|
<text style="width:70px;">{{level[item.opllevel]}}</text>
|
|
<text style="width:100px;">{{item.workscope_name}}</text>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<view wx:if="{{currentTab === 'tab2'}}" style="top:-120px;position: relative;z-index:1;">
|
|
<view class="searWrap" >
|
|
<input class="infoInput" placeholder="填写:身份证号" placeholder-class="weui-input__placeholder" bindinput="bindinput"
|
|
value="{{ID_number}}"/>
|
|
<view class="searchBtn" bindtap="search">查询</view>
|
|
</view>
|
|
<view class="listWrap">
|
|
<view wx:if="{{candidates.length}}">
|
|
<block wx:for="{{candidates}}" wx:key="unique">
|
|
<view class="weui-cell" data-url="{{item.img}}" data-id="{{item.id}}" bindlongpress="copyUrl" style="border-bottom: 1rpx solid #eeeeee;" bindtap="toDetail">
|
|
<view class="weui-cell__bd">
|
|
<view class="weui-media-box__title">
|
|
姓名:{{item.consumer_name}}</view>
|
|
<view class="weui-media-box__desc">
|
|
<view style="color:darkblue"> 证书号:{{item.number}}</view>
|
|
</view>
|
|
<view class="weui-media-box__desc">
|
|
<view>发证日期:{{item.issue_date}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="weui-cell__ft">
|
|
<view style="color:green">查看详情</view>
|
|
<!-- <view >长按复制地址去浏览器打开</view> -->
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view wx:else style="text-align:center">暂无证书信息</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view> |