This commit is contained in:
李志鹏
2026-06-01 13:55:39 +08:00
parent 5a85ff0189
commit e3c889c58a
9 changed files with 70 additions and 22 deletions

View File

@@ -42,27 +42,27 @@
<div class="item">
<div class="images">
<img
v-for="v in v.item.slice(0, maxItemNum)"
v-for="v in v.items.slice(0, maxItemNum)"
:key="v.id"
:src="v.url"
/>
<span v-if="v.item.length > maxItemNum"
>+{{ v.item.length - maxItemNum }} more</span
<span v-if="v.items.length > maxItemNum"
>+{{ v.items.length - maxItemNum }} more</span
>
</div>
<div class="titles">
<div v-for="v in v.item.slice(0, maxItemNum)" :key="v.id">
<div v-for="v in v.items.slice(0, maxItemNum)" :key="v.id">
{{ v.title }}
</div>
<span v-if="v.item.length > maxItemNum">...</span>
<span v-if="v.items.length > maxItemNum">...</span>
</div>
</div>
<div class="price">{{ v.price }}</div>
<div class="buyer-username">{{ v.username }}</div>
<div class="date">
<div>{{ v.date }}</div>
<div>{{ v.time }}</div>
</div>
<div
class="date"
v-html="FormatDate(v.date, $t('Seller.dateTimeFormat'))"
></div>
</div>
</div>
<div class="null" v-show="list.length === 0 && !loading && finish">
@@ -80,6 +80,7 @@
import { ref, onMounted, onBeforeUnmount, computed } from "vue"
import { Https } from "@/tool/https"
import { useI18n } from "vue-i18n"
import { FormatDate } from "@/tool/util"
const { t } = useI18n()
const totals_obj = ref({
totalRevenue: "--",
@@ -177,6 +178,7 @@
onBeforeUnmount(() => {
observer.disconnect()
})
const formatTimestamp = (ts) => {
const d = new Date(ts)
const h = d.getHours()