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.
79 lines
4.1 KiB
79 lines
4.1 KiB
<!--pages/home/employee/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">企业员工</view>
|
|
</cu-custom>
|
|
|
|
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{checkList.length == 0 && memberList.length == 0 && !loading}}">
|
|
<view style="margin-bottom:24px" wx:if="{{loading}}">
|
|
<van-loading type="spinner" size="32" />
|
|
</view>
|
|
<image class="img-empty" src="/assets/image/list_empty.png" wx:else></image>
|
|
<view class="text-empty">{{loading? '正在加载' : '暂无数据'}}</view>
|
|
</view>
|
|
|
|
<view wx:if="{{checkList.length}}">
|
|
<van-index-anchor use-slot><text>待审核</text></van-index-anchor>
|
|
<view class="bg-white" wx:for="{{ checkList }}" wx:key="index">
|
|
<view class="flex flex-justify item-content">
|
|
<view class="flex flex-center" style="height:90rpx">
|
|
<van-image use-loading-slot width="90rpx" height="90rpx" round src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}">
|
|
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
|
|
</van-image>
|
|
<view class="flex flex-column" style="margin-left:18rpx">
|
|
<text class="text-sg text-bold">{{item.applicantName || item.enterpriseMemberName}}</text>
|
|
<text class="text-sm text-gray" style="line-height:18px">{{item.phone || item.applicationMobile || ''}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:if="{{item.status == 0}}" style="height:90rpx">
|
|
<van-button type="info" size="small" custom-style="margin-right:12rpx" data-index="{{index}}" bind:click="agreeItem">同意加入</van-button>
|
|
<van-button type="danger" size="small" data-index="{{index}}" bind:click="refuseItem">拒绝加入</van-button>
|
|
</view>
|
|
<view class="flex flex-center" wx:if="{{item.status == 2}}" style="height:90rpx">
|
|
<view class="text-gray">已拒绝</view>
|
|
</view>
|
|
<view class="flex flex-center" wx:if="{{item.status == 3}}" style="height:90rpx">
|
|
<view class="text-gray">已过期</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{memberList.length}}">
|
|
<van-index-anchor use-slot><text>所有员工</text></van-index-anchor>
|
|
<van-cell clickable wx:for="{{ memberList }}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
|
|
<view slot="title" class="flex" style="margin-bottom:0rpx">
|
|
<van-image round width="90rpx" height="90rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" />
|
|
<view style="margin-left:18rpx;width:100%">
|
|
<view class="flex flex-justify">
|
|
<text class="text-sg text-bold">{{item.enterpriseMemberName || ''}}</text>
|
|
<van-tag plain round type="primary" wx:if="{{item.position == 'PRIMARY'}}">企业主</van-tag>
|
|
<van-tag plain round type="primary" wx:elif="{{item.position == 'ADMINISTRATOR'}}">管理员</van-tag>
|
|
</view>
|
|
<view class="text-sm text-gray" style="line-height:18px">{{item.mobile || ''}}</view>
|
|
</view>
|
|
</view>
|
|
</van-cell>
|
|
</view>
|
|
|
|
<view class="booking-tool" style="bottom:200rpx" bindtap="addEmployee">
|
|
<view class="roder-add flex flex-center">
|
|
<text class="cuIcon-add text-white" style="font-size:32px"></text>
|
|
</view>
|
|
</view>
|
|
|
|
<van-overlay show="{{ showEmbedded }}" duration="{{0}}" bind:click="onClickHideEmbedded">
|
|
<view class="wrapper flex-column" catch:tap="noop">
|
|
<view style="position: relative;background-color:white;margin-top:48px">
|
|
<van-image use-loading-slot width="525rpx" height="525rpx" src="data:image/png;base64,{{base64}}">
|
|
<view class="image-load" slot="loading"><van-loading type="spinner" size="32" /></view>
|
|
</van-image>
|
|
</view>
|
|
<van-button block type="info" custom-style="margin-top:36rpx;width:525rpx" bind:click="saveQrcode">保存二维码
|
|
</van-button>
|
|
<text class="text-df text-white" style="margin-top:36rpx;text-align:center">为保证企业账户安全,二维码仅在3小时内有效,失效后,可重新生成。</text>
|
|
<van-icon name="close" color="white" size="36px" custom-style="margin-top:48px" catch:tap="onClickHideEmbedded" />
|
|
</view>
|
|
</van-overlay>
|
|
|
|
<van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:cancel="onClose" bind:close="onClose" bind:select="onSelect" cancel-text="取消" z-index="22"/>
|