| <template> | 
|   <div class="task-check-card-wrapper"> | 
|     <TaskCheckPersonalView | 
|       class="task-check-card-view" | 
|       :avatar="avatar" | 
|       :name="name" | 
|       :gender="gender" | 
|       :isReal="isReal" | 
|       :contactPhoneNumber="contactPhoneNumber" | 
|     > | 
|       <template #time v-if="!!checkTime"> | 
|         {{ dayjs(checkTime).format('HH:mm') }} | 
|       </template> | 
|       <template #actions> | 
|         <div | 
|           class="task-check-card-phone-status" | 
|           :style="{ color: EnumTaskUserSubmitCheckHistoryTypeColor[type] }" | 
|         > | 
|           {{ EnumTaskUserSubmitCheckHistoryTypeText[type] }} | 
|         </div> | 
|       </template> | 
|     </TaskCheckPersonalView> | 
|   </div> | 
| </template> | 
|   | 
| <script setup lang="ts"> | 
| import dayjs from 'dayjs'; | 
| import TaskCheckPersonalView from './TaskCheckPersonalView.vue'; | 
| import { | 
|   Colors, | 
|   EnumUserGender, | 
|   EnumTaskUserSubmitCheckHistoryType, | 
|   EnumTaskUserSubmitCheckHistoryTypeText, | 
|   EnumTaskUserSubmitCheckHistoryTypeColor, | 
| } from '@12333/constants'; | 
|   | 
| defineOptions({ | 
|   name: 'TaskCheckHistoryCard', | 
| }); | 
|   | 
| type Props = { | 
|   avatar?: string; | 
|   name?: string; | 
|   gender?: EnumUserGender; | 
|   isReal?: boolean; | 
|   contactPhoneNumber?: string; | 
|   type?: EnumTaskUserSubmitCheckHistoryType; | 
|   checkTime?: string; | 
| }; | 
|   | 
| const props = withDefaults(defineProps<Props>(), {}); | 
| </script> | 
|   | 
| <style lang="scss"> | 
| @import '@/styles/common.scss'; | 
|   | 
| .task-check-card-wrapper { | 
|   background: #ffffff; | 
|   border-radius: 12px; | 
|   padding: 40px; | 
|   padding-right: 26px; | 
|   margin-bottom: 24px; | 
|   | 
|   &:last-child { | 
|     margin-bottom: 0; | 
|   } | 
|   | 
|   .task-check-card-view { | 
|     .task-check-card-phone-container { | 
|       margin-top: 0; | 
|     } | 
|   } | 
|   | 
|   .task-check-card-phone-status { | 
|     font-size: 24px; | 
|     height: 52px; | 
|     line-height: 52px; | 
|   } | 
| } | 
| </style> |