123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <template>
- <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
- <cus-header title='员工管理'></cus-header>
- <div class="boxs" v-if="list.length">
- <div class="box" v-for="(item,index) in list" :key="index" @tap="toDetail(item)">
- <div class="top">
- <div class="left">
- <text>{{item.name}}</text>
- <image :src="imgBase+'home/staff_man.png'" v-if="item.sex==1"></image>
- <image :src="imgBase+'home/staff_women.png'" v-else-if="item.sex==2"></image>
- </div>
- <div class="right">{{item.date}}入职</div>
- </div>
- <div class="bottom">
- <div class="left">手机号:{{item.phone}}</div>
- <div class="right">工号:{{item.workno}}</div>
- </div>
- </div>
- </div>
- <template v-else>
- <page-empty :height="'calc(100vh - '+mt+'px)'"></page-empty>
- </template>
- </view>
- </template>
- <script>
- export default {
- data(){
- return {
- list:[
- {
- name:'梁惠美',
- sex:1,
- date:'2022-09-22',
- phone:'18755223476',
- workno:'0103'
- },
- {
- name:'周佳玉',
- sex:1,
- date:'2023-09-22',
- phone:'18755264476',
- workno:'0123'
- },
- {
- name:'魏琳琳',
- sex:2,
- date:'2024-09-22',
- phone:'18935223476',
- workno:'0243'
- }
- ]
- }
- },
- methods:{
- toDetail(item){
- uni.navigateTo({
- url:'/pagesHome/employee/detail'
- })
- }
- }
- }
- </script>
- <style scoped lang="less">
- .page{
- padding: 0 24rpx 20rpx;
- background: #F4F8FB;
- box-sizing: border-box;
- .boxs{
- width: 100%;
- .box{
- width: 100%;
- background: #FFFFFF;
- border-radius: 16rpx;
- padding: 36rpx 24rpx;
- box-sizing: border-box;
- margin-top: 20rpx;
- &>div{
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .top{
- .left{
- display: flex;
- align-items: center;
- text{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 32rpx;
- color: #1D2129;
- line-height: 36rpx;
- }
- image{
- width: 26rpx;
- height: 26rpx;
- margin-left: 23rpx;
- }
- }
- .right{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #4E5969;
- line-height: 36rpx;
- text-align: right;
- }
- }
- .bottom{
- margin-top: 20rpx;
- &>div{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #4E5969;
- line-height: 36rpx;
- &.right{
- text-align: right;
- }
- }
- }
- }
- }
- }
- </style>
|