zhengyiming
5 天以前 24e5e65a571e13404daf5642497322ef0f8a9c87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<template>
  <div class="businessCardHolder-card-wrapper">
    <FlexJobTopView
      :name="name"
      :age="age"
      :genderType="genderType"
      :isRealName="isRealName"
      :arrangeCount="arrangeCount"
      :educationalLevel="educationalLevel"
    >
      <template #detail>
        <slot name="detail"> </slot>
      </template>
    </FlexJobTopView>
 
    <div class="businessCardHolder-card-footer">
      <div class="businessCardHolder-card-footer-left-wrapper">
        <div class="businessCardHolder-card-footer-left" v-if="showFooterLeft">
          <slot name="footerLeft"> </slot>
        </div>
      </div>
      <div class="businessCardHolder-card-footer-right" v-if="showFooterRight">
        <slot name="footerRight"> </slot>
      </div>
    </div>
  </div>
</template>
 
<script setup lang="ts">
import { CommonTaskCardProps } from './card';
import FlexJobTopView from './FlexJobTopView.vue';
import { Gender } from '@12333/constants';
 
defineOptions({
  name: 'BusinessCardHolderCard',
});
 
type Props = CommonTaskCardProps & {
  showFooterLeft?: boolean;
  showFooterRight?: boolean;
  showDoneDetail?: boolean;
 
  name?: string;
  genderType?: Gender;
  age?: number;
  isRealName?: boolean;
  educationalLevel?: string;
  arrangeCount?: number;
};
 
const props = withDefaults(defineProps<Props>(), {
  showFooterLeft: true,
  showFooterRight: true,
  showDoneDetail: true,
});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.businessCardHolder-card-wrapper {
  padding: 32px 24px 20px;
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 12px;
 
  &:last-child {
    margin-bottom: 0;
  }
 
  .businessCardHolder-card-top-wrapper {
    margin-bottom: 38px;
  }
 
  .businessCardHolder-card-done-list {
    font-size: 24px;
    line-height: 36px;
    color: boleGetCssVar('text-color', 'primary');
    margin-bottom: 12px;
    @include ellipsis;
  }
 
  .businessCardHolder-card-footer {
    display: flex;
    align-items: center;
    border-top: #d9d9d9 1px solid;
    padding-top: 24px;
    margin-top: 18px;
 
    .businessCardHolder-card-footer-left-wrapper {
      flex: 1;
      min-width: 0;
    }
 
    .businessCardHolder-card-footer-left {
      .businessCardHolder-card-footer-text {
        font-size: 24px;
        line-height: 36px;
        color: boleGetCssVar('color', 'primary');
      }
    }
 
    .businessCardHolder-card-footer-right {
      --nut-button-default-font-size: 24px;
      --nut-button-default-height: 52px;
      --nut-button-default-line-height: 49px;
 
      .nut-button {
        min-width: 144rpx;
      }
    }
  }
}
</style>