+
mdi-calendar-edit
{{ card.meta.update_time }}
@@ -108,7 +112,7 @@ type TPostCardEmits = {
type RenderForum = { name: string; icon: string; id: number };
type RenderStatus = { stat: number; label: string; color: string };
type RenderData = { mark: number; forward: number; like: number; reply: number; view: number };
-type RenderMeta = { create_time: string; update_time: string };
+type RenderMeta = { create_time: string; update_time?: string };
export type RenderCard = {
title: string;
cover: string;
@@ -173,7 +177,7 @@ function getPostCover(item: TGApp.BBS.Post.FullData): string {
else if (item.post.images.length > 0) cover = item.post.images[0];
if (cover === undefined) return "";
if (cover.endsWith(".gif")) return cover;
- return `${cover}?x-oss-process=image/resize,m_fill,w_360,h_130,limit_0/format,png`;
+ return `${cover}?x-oss-process=image/resize,m_fill,w_690,h_320,limit_0/format,png`;
}
function getCommonCard(item: TGApp.BBS.Post.FullData): RenderCard {
@@ -193,7 +197,8 @@ function getCommonCard(item: TGApp.BBS.Post.FullData): RenderCard {
}
const metaData: RenderMeta = {
create_time: timestampToDate(Number(item.post.created_at) * 1000),
- update_time: timestampToDate(Number(item.post.updated_at) * 1000),
+ update_time:
+ item.post.updated_at === 0 ? undefined : timestampToDate(Number(item.post.updated_at) * 1000),
};
return {
title: item.post.subject,
@@ -289,7 +294,7 @@ function onUserClick(): void {
width: 100%;
align-items: center;
justify-content: center;
- aspect-ratio: 36 / 13;
+ aspect-ratio: 69 / 32;
background: var(--common-shadow-2);
cursor: pointer;
}
diff --git a/src/components/userAvatar/tua-avatar-box.vue b/src/components/userAvatar/tua-avatar-box.vue
index 4deae1b2..ebb2aca8 100644
--- a/src/components/userAvatar/tua-avatar-box.vue
+++ b/src/components/userAvatar/tua-avatar-box.vue
@@ -227,7 +227,8 @@ function getWeaponTitle(): string {
width: 100%;
flex-direction: column;
align-items: center;
- justify-content: space-between;
+ justify-content: flex-end;
+ row-gap: 4px;
border-radius: 4px;
aspect-ratio: 21/10;
}
@@ -273,11 +274,11 @@ function getWeaponTitle(): string {
:first-child {
position: relative;
display: flex;
- width: 48px;
- height: 48px;
+ width: 40px;
+ height: 40px;
align-items: center;
justify-content: center;
- padding: 4px;
+ padding: 5px;
box-sizing: border-box;
border: 1px solid var(--box-bg-4);
border-radius: 50%;
diff --git a/src/components/userRecord/tur-role-info.vue b/src/components/userRecord/tur-role-info.vue
index 27019e0e..3199b3eb 100644
--- a/src/components/userRecord/tur-role-info.vue
+++ b/src/components/userRecord/tur-role-info.vue
@@ -1,12 +1,12 @@
+
+
+
{{ role.nickname }}({{ uid }})
Lv.{{ role.level }} {{ role.region }}
-
-
-