wupengfei
2 天以前 bfb3b8ead34656a6160dd23aaa4648dfc63e282c
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
<template>
  <InfiniteLoading scrollViewClassName="common-infinite-scroll-list" v-bind="infiniteLoadingProps">
    <template #renderItem="{ item }">
      <FlexJobCard
        :name="item.name"
        :age="item.age"
        :gender="item.gender"
        :avatar="setOSSLink(item.avatar)"
        :isReal="item.isReal"
        :personalIdentityContent="item.personalIdentityContent"
        :educationalBackgroundContent="item.educationalBackgroundContent"
        :taskCount="item.taskCount"
        :workSeniority="item.workSeniority"
        :workExperience="item.workExperience"
      >
        <template #footerLeft>
          <div
            class="flexJob-card-footer-text"
            :style="{ color: EnumTaskUserHireStatusColor[item.hireStatus] }"
          >
            {{ EnumTaskUserHireStatusText[item.hireStatus] }}
          </div>
        </template>
        <template #footerRight>
          <nut-button type="primary" @click="goToJobDetail(item)">查看详情</nut-button>
        </template>
      </FlexJobCard>
    </template>
  </InfiniteLoading>
</template>
 
<script setup lang="ts">
import { EnumTaskUserHireStatusText, EnumTaskUserHireStatusColor } from '@12333/constants';
import { RouterPath } from '@/constants';
import { useTaskUserList } from '@12333/hooks';
import { FlexJobCard } from '@12333/components';
import Taro from '@tarojs/taro';
import { setOSSLink } from '@12333/utils';
 
defineOptions({
  name: 'SignList',
});
 
// type Props = {};
 
// const props = withDefaults(defineProps<Props>(), {});
 
const router = Taro.useRouter();
const id = router.params?.id ?? '';
 
const { infiniteLoadingProps } = useTaskUserList({
  id: id,
});
 
function goToJobDetail(item: API.GetTaskUsersQueryResultItem) {
  Taro.navigateTo({
    url: `${RouterPath.flexJobDetailFromTask}?enterpriseEmployeeId=${item.enterpriseEmployeeId}&id=${item.id}&taskInfoId=${id}`,
  });
}
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
</style>