From bfb3b8ead34656a6160dd23aaa4648dfc63e282c Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 14 八月 2025 13:25:38 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- packages/components/src/Card/FlexJobTopView.vue | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/packages/components/src/Card/FlexJobTopView.vue b/packages/components/src/Card/FlexJobTopView.vue index 754b80d..f874817 100644 --- a/packages/components/src/Card/FlexJobTopView.vue +++ b/packages/components/src/Card/FlexJobTopView.vue @@ -1,6 +1,10 @@ <template> <div :class="['flexJob-card-top-wrapper', size]"> - <Avatar :src="avatar" :size="size === 'small' ? 50 : 60" class="flexJob-card-top-avatar" /> + <Avatar + :src="setOSSLink(avatar)" + :size="size === 'small' ? 50 : 60" + class="flexJob-card-top-avatar" + /> <div class="flexJob-card-top-info"> <div class="flexJob-card-top-info-item"> <div class="flexJob-card-top-info-name">{{ name }}</div> @@ -18,11 +22,7 @@ </div> <slot name="detail"> <div class="flexJob-card-top-info-detail"> - {{ - `${age ? '' : `${age}宀亅`}${personalIdentityContent ?? ''} | ${ - educationalBackgroundContent ?? '' - } | 涓婂矖${taskCount ?? 0}娆 - }} + {{ infoDetail }} </div> </slot> </div> @@ -34,6 +34,8 @@ import IconFemale from '@/assets/mine/icon-female.png'; import { AvatarImage, EnumUserGender } from '@12333/constants'; import { Avatar } from '@12333/components'; +import { computed } from 'vue'; +import { setOSSLink } from '@12333/utils'; defineOptions({ name: 'FlexJobTopView', @@ -55,7 +57,20 @@ const props = withDefaults(defineProps<Props>(), { size: 'normal', avatar: AvatarImage, + personalIdentityContent: '', + educationalBackgroundContent: '', }); + +const infoDetail = computed(() => + [ + props.age > 0 ? `${props.age}宀乣 : '', + props.personalIdentityContent, + props.educationalBackgroundContent, + props.taskCount > 0 ? `涓婂矖${props.taskCount ?? 0}娆 : '', + ] + .filter(Boolean) + .join('|') +); </script> <style lang="scss"> -- Gitblit v1.9.1