publication v-1
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
<p
|
||||
class="text-[3.59vw] md:text-[1.055vw] font-[600] text-[#383E43]"
|
||||
>
|
||||
{{ myCourses.data.value.course.length }}
|
||||
{{ myCourses.data.value.user.course.length }}
|
||||
دوره
|
||||
</p>
|
||||
<p
|
||||
@@ -361,8 +361,8 @@
|
||||
|
||||
<div class="flex justify-center items-center flex-col mt-[1.823vw]">
|
||||
<img
|
||||
v-if="authUser.avatarMedia"
|
||||
:src="authUser.avatarMedia"
|
||||
v-if="authUser.user.avatarMedia"
|
||||
:src="authUser.user.avatarMedia"
|
||||
class="h-[27.949vw] md:h-[7.24vw] w-[27.949vw] md:w-[7.24vw] rounded-full"
|
||||
alt=""
|
||||
/>
|
||||
@@ -376,12 +376,12 @@
|
||||
<p
|
||||
class="text-[4.038vw] md:text-[0.938vw] text-[#383E43] font-semibold mt-[1.25vw]"
|
||||
>
|
||||
{{ authUser.name ? authUser.name : 'کاربر مهمان' }}
|
||||
{{ authUser.user.name ? authUser.user.name : 'کاربر مهمان' }}
|
||||
</p>
|
||||
<p
|
||||
class="font-[400] text-[3.19vw] md:text-[0.833vw] text-[#878787] mt-[0.417vw]"
|
||||
>
|
||||
{{ authUser.userName ? authUser.userName + '@' : 'نام کاربری'}}
|
||||
{{ authUser.user.userName ? authUser.user.userName + '@' : 'نام کاربری'}}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -521,12 +521,13 @@
|
||||
const tickets = await useFetch("/api/ticket/getTickets");
|
||||
const lastTickets = tickets?.data?.value.result.slice(-2);
|
||||
const myCourses = await useFetch("/api/auth/me");
|
||||
const lastCourses = myCourses.data?.value.course.slice(-2);
|
||||
|
||||
const lastCourses = myCourses.data?.value.com.slice(-2);
|
||||
const balance = await useFetch("/api/user/balance");
|
||||
const { authUser } = useAuth();
|
||||
|
||||
const today = new Date(); // تاریخ امروز
|
||||
const pastDate = new Date(authUser.value.createdAt); // تاریخ گذشته
|
||||
const pastDate = new Date(authUser.value.user.createdAt); // تاریخ گذشته
|
||||
|
||||
// تفاوت زمانی را محاسبه میکنیم
|
||||
const timeDifference = today.getTime() - pastDate.getTime();
|
||||
|
||||
Reference in New Issue
Block a user