Skip to content

Commit

Permalink
fix(clubs): minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Mar 14, 2024
1 parent e3a1cfb commit 6a3554f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pages/cas/clubs/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ definePageMeta({
<div class="font-bold">
简介
</div>
<div v-if="hasDescriptionC" class="my-3" v-text="Description_C" />
<div v-if="hasDescriptionC" class="my-3 text-sm" v-text="Description_C" />
<div v-else class="text-sm italic text-muted-foreground text-center w-full my-2">
暂无简介 ;-(
</div>
Expand All @@ -86,18 +86,15 @@ definePageMeta({
<div v-else class="mt-3">
<div class="flex flex-wrap">
<div v-for="(member, index) in club.gmember" :key="member.StudentID" class="flex items-center">
<div class="flex items-center">
<div class="flex items-center text-sm mt-0.5">
<span class="">{{ member.S_Name }}</span>
<span v-if="member.S_Nickname" class="text-muted-foreground ml-2">({{ member.S_Nickname }})</span>
<Badge v-if="Number(member.LeaderYes) === 2" variant="default" class="ml-1">
<span v-if="member.S_Nickname" class="text-muted-foreground ml-1">({{ member.S_Nickname }})</span>
<Badge v-if="Number(member.LeaderYes) === 2" variant="default" class="ml-1 -py-0.5">
社长
</Badge>
<Badge v-else-if="Number(member.LeaderYes) === 1" variant="secondary" class="ml-1">
<Badge v-else-if="Number(member.LeaderYes) === 1" variant="secondary" class="ml-1 -py-0.5">
副社
</Badge>
<Badge v-else variant="outline" class="ml-1">
社员
</Badge>
<span v-if="index < club.gmember.length - 1" class="mx-2">/</span>
</div>
</div>
Expand Down

0 comments on commit 6a3554f

Please sign in to comment.