纸通宝SAAS仓库
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.
 

62 lines
3.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>所有员工({{memberList.length}}人)</text></van-index-anchor>
<van-cell clickable is-link 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">
<text class="text-sg text-bold" style="padding-right:24rpx">{{item.enterpriseMemberName || ''}}</text>
<van-tag plain round type="primary" wx:if="{{item.enterpriseRoleNames}}">{{item.enterpriseRoleNames}}</van-tag>
</view>
<view class="text-sm text-gray" style="line-height:18px">{{item.mobile || ''}}</view>
</view>
</view>
</van-cell>
</view>
<view style="border-radius: 50rpx;position: fixed;bottom:160rpx;right:50rpx" wx:if="{{qrcode}}">
<van-button round type="info" icon="plus" open-type="share" custom-style="width: 100rpx;height: 100rpx;"></van-button>
</view>
<notification id="qn-notification"/>