1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-12 04:00:23 +08:00

add 您已加入 to workbench

This commit is contained in:
源文雨
2023-03-19 11:47:41 +08:00
parent a68b139320
commit 2c416f8059
3 changed files with 12 additions and 4 deletions

View File

@@ -15,9 +15,13 @@
<span class="text-secondary"> {{ userinfo.desc }} </span>
</div>
<div class="flex flex-1 justify-end md:mt-0 mt-4">
<div class="flex flex-col justify-center text-right md:mr-10 mr-4">
<span class="text-secondary"> 您已加入 </span>
<span class="text-2xl"> {{ enterDays }} </span>
</div>
<div class="flex flex-col justify-center text-right md:mr-10 mr-4">
<span class="text-secondary"> 课程组人数 </span>
<span class="text-2xl"> {{ userscount }} </span>
<span class="text-2xl"> {{ userscount }} </span>
</div>
</div>
</div>
@@ -31,6 +35,10 @@
const userStore = useUserStore()
const userinfo = computed(() => userStore.getUserInfo)
const enterDays = computed(() => {
const date: Date = new Date(new Date().getTime() - userStore.getUserInfo.date * 1000)
return date.getDay()
})
const userscount = ref(0)
getUsersCount().then((value: number) => {
userscount.value = value