no message

This commit is contained in:
hajimi
2026-06-12 17:34:00 +08:00
parent b9669269b5
commit bd95eed024
20 changed files with 1383 additions and 112 deletions
+19 -13
View File
@@ -6,9 +6,10 @@
<view v-if="descText" class="feed-card__desc">{{ descText }}</view>
<view class="feed-card__footer">
<text class="feed-card__author">{{ authorText }}</text>
<text class="feed-card__meta feed-card__meta--center">{{ item.comment_count || item.click || 0
}}评论</text>
<text class="feed-card__meta feed-card__meta--right">{{ formatTime(item.create_time) }}</text>
<view class="feed-card__footer-right">
<text class="feed-card__meta">{{ item.comment_count || item.click || 0 }}阅读</text>
<text class="feed-card__meta">{{ formatTime(item.create_time) }}</text>
</view>
</view>
</view>
<UImage v-if="item.image" :src="item.image" width="220" height="140" border-radius="8" mode="aspectFill"
@@ -103,11 +104,13 @@ const formatTime = (t: string) => {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding-top: 12rpx;
gap: 12rpx;
gap: 16rpx;
white-space: nowrap;
overflow: hidden;
min-width: 0;
}
&__author {
@@ -120,19 +123,22 @@ const formatTime = (t: string) => {
text-align: left;
}
&__footer-right {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
gap: 12rpx;
margin-left: auto;
flex-shrink: 0;
min-width: 0;
}
&__meta {
flex: 1;
font-size: 24rpx;
color: #bbb;
white-space: nowrap;
&--center {
text-align: center;
}
&--right {
text-align: right;
}
flex-shrink: 0;
}
&__img {
@@ -114,6 +114,7 @@
<script lang="ts" setup>
import { computed } from 'vue'
import { getLocalMatchDate } from '@/utils/match-time'
const props = defineProps<{
match: any
@@ -160,7 +161,8 @@ const statusLabel = computed(() => {
const scheduleTime = computed(() => {
if (!props.match.match_time) return ''
const d = new Date(props.match.match_time * 1000)
const d = getLocalMatchDate(props.match.match_time, props.match)
if (!d) return ''
const year = d.getFullYear()
const month = String(d.getMonth() + 1).padStart(2, '0')
const date = String(d.getDate()).padStart(2, '0')