2025-01-22 07:44:50 +00:00
|
|
|
|
<script setup>
|
|
|
|
|
import xPopup from '@/components/x-popup/index.vue'
|
|
|
|
|
import {goodStore} from "~/stores/goods/index.js";
|
2025-01-22 08:23:48 +00:00
|
|
|
|
import xImage from '@/components/x-image/index.vue'
|
2025-01-23 11:29:29 +00:00
|
|
|
|
import DetailPopup from '@/pages/home/components/DetailPopup/index.vue'
|
2025-01-22 07:44:50 +00:00
|
|
|
|
const {pageRef,itemList} = goodStore();
|
2025-01-23 11:29:29 +00:00
|
|
|
|
const showDetail=ref(false)
|
2025-01-22 07:44:50 +00:00
|
|
|
|
const props = defineProps({
|
|
|
|
|
show: Boolean,
|
|
|
|
|
title: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: ''
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const emit = defineEmits(['update:show'])
|
|
|
|
|
|
|
|
|
|
const close = () => emit('update:show', false);
|
2025-01-23 11:29:29 +00:00
|
|
|
|
const openShow=()=>{
|
|
|
|
|
showDetail.value=true
|
|
|
|
|
}
|
2025-01-22 07:44:50 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<x-popup :show="show" @update:show="close">
|
|
|
|
|
<template #title>
|
|
|
|
|
<div class="text-#000 text-16px">拍品列表</div>
|
|
|
|
|
<div class="text-#939393 text-16px ml-14px">共{{ pageRef.itemCount }}个拍品</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item,index) of itemList"
|
|
|
|
|
:key="item.uuid"
|
|
|
|
|
class="flex mb-21px"
|
2025-01-23 11:29:29 +00:00
|
|
|
|
@click="openShow"
|
2025-01-22 07:44:50 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mr-10px flex-shrink-0 rounded-4px overflow-hidden cursor-pointer"
|
|
|
|
|
>
|
2025-01-22 08:23:48 +00:00
|
|
|
|
<xImage
|
2025-01-23 11:29:29 +00:00
|
|
|
|
:preview="false"
|
2025-01-22 07:44:50 +00:00
|
|
|
|
class="w-80px h-80px"
|
2025-01-22 08:23:48 +00:00
|
|
|
|
:src="item.artwork?.hdPic"
|
|
|
|
|
:alt="item?.artworkTitle"
|
2025-01-22 07:44:50 +00:00
|
|
|
|
loading="lazy"
|
2025-01-22 08:23:48 +00:00
|
|
|
|
/>
|
2025-01-22 07:44:50 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="ellipsis line-height-20px text-16px font-600 min-h-40px">
|
|
|
|
|
{{ item.artworkTitle }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-14px text-#575757">起拍价:RMB 1,000</div>
|
|
|
|
|
<div class="text-14px text-#B58047">成交价:等待更新</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</x-popup>
|
2025-01-23 11:29:29 +00:00
|
|
|
|
<DetailPopup v-model:show="showDetail"></DetailPopup>
|
2025-01-22 07:44:50 +00:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.ellipsis {
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
</style>
|