2025-01-09 11:01:35 +00:00
|
|
|
<script setup>
|
2025-01-16 03:23:46 +00:00
|
|
|
import LiveRoom from '@/pages/LiveRoom/index.client.vue';
|
2025-01-20 08:17:49 +00:00
|
|
|
import {goodStore} from "@/stores/goods/index.js";
|
|
|
|
import ItemList from './components/ItemList/index.vue'
|
|
|
|
import Cescribe from './components/Cescribe/index.vue'
|
|
|
|
import {artworkList} from "~/api/goods/index.js";
|
|
|
|
const {fullLive,getAuctionDetail,auctionDetail,itemList,pageRef,liveRef} = goodStore();
|
2025-01-17 03:06:19 +00:00
|
|
|
definePageMeta({
|
|
|
|
layout: 'default',
|
|
|
|
i18n: 'menu.home',
|
|
|
|
})
|
|
|
|
const changeLive = () => {
|
|
|
|
fullLive.value = true;
|
2025-01-16 03:23:46 +00:00
|
|
|
};
|
2025-01-20 03:42:25 +00:00
|
|
|
const initData=async ()=>{
|
|
|
|
await getAuctionDetail()
|
2025-01-20 08:17:49 +00:00
|
|
|
const res= await artworkList({auctionUuid: auctionDetail.value.uuid,...pageRef.value})
|
|
|
|
if (res.status===0){
|
|
|
|
itemList.value=res.data.data
|
|
|
|
pageRef.value.itemCount=res.data.count
|
|
|
|
}
|
2025-01-20 03:42:25 +00:00
|
|
|
}
|
|
|
|
initData()
|
2025-01-09 11:01:35 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2025-01-15 01:32:25 +00:00
|
|
|
<div class="flex-grow-1">
|
2025-01-20 08:17:49 +00:00
|
|
|
<client-only>
|
|
|
|
<LiveRoom @click="changeLive" :class="['changeLive', fullLive ? 'expanded' : 'collapsed']" ref="liveRef" :fullLive="fullLive"/>
|
|
|
|
</client-only>
|
2025-01-17 03:06:19 +00:00
|
|
|
<transition name="fade">
|
2025-01-16 03:23:46 +00:00
|
|
|
<div v-show="!fullLive" class="bg-#fff">
|
|
|
|
<van-tabs sticky animated>
|
|
|
|
<van-tab title="拍品列表">
|
2025-01-20 08:17:49 +00:00
|
|
|
<ItemList></ItemList>
|
2025-01-16 03:23:46 +00:00
|
|
|
</van-tab>
|
|
|
|
<van-tab title="拍卖说明">
|
2025-01-20 08:17:49 +00:00
|
|
|
<Cescribe></Cescribe>
|
2025-01-16 03:23:46 +00:00
|
|
|
</van-tab>
|
|
|
|
</van-tabs>
|
|
|
|
<van-back-top right="15vw" bottom="10vh"/>
|
|
|
|
</div>
|
2025-01-15 02:55:22 +00:00
|
|
|
</transition>
|
2025-01-13 03:12:11 +00:00
|
|
|
</div>
|
2025-01-09 11:37:03 +00:00
|
|
|
</template>
|
2025-01-16 03:27:12 +00:00
|
|
|
<style>
|
|
|
|
:root:root {
|
2025-01-10 06:59:54 +00:00
|
|
|
--van-action-sheet-header-height: 39px;
|
|
|
|
}
|
2025-01-16 03:27:12 +00:00
|
|
|
</style>
|
|
|
|
<style scoped lang="scss">
|
2025-01-13 03:12:11 +00:00
|
|
|
:deep(.van-swipe__indicator) {
|
2025-01-10 06:59:54 +00:00
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
}
|
2025-01-16 03:23:46 +00:00
|
|
|
|
2025-01-15 02:55:22 +00:00
|
|
|
.fade-enter-active, .fade-leave-active {
|
|
|
|
transition: opacity 1s;
|
|
|
|
}
|
2025-01-16 03:23:46 +00:00
|
|
|
|
|
|
|
.fade-enter, .fade-leave-to {
|
2025-01-15 02:55:22 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
2025-01-16 03:23:46 +00:00
|
|
|
|
|
|
|
:deep(.van-swipe__indicator:not(.van-swipe__indicator--active)) {
|
2025-01-13 03:12:11 +00:00
|
|
|
background: rgba(0, 0, 0, 0.8);
|
2025-01-10 06:59:54 +00:00
|
|
|
}
|
2025-01-16 03:23:46 +00:00
|
|
|
|
2025-01-15 02:55:22 +00:00
|
|
|
.changeLive {
|
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
transition: height 0.5s ease, transform 0.5s ease;
|
|
|
|
}
|
2025-01-13 12:59:25 +00:00
|
|
|
|
2025-01-15 02:55:22 +00:00
|
|
|
.changeLive.collapsed {
|
|
|
|
height: 188px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.changeLive.expanded {
|
2025-01-15 04:00:19 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
2025-01-15 02:55:22 +00:00
|
|
|
height: calc(100vh - var(--van-nav-bar-height));
|
2025-01-17 02:19:01 +00:00
|
|
|
}
|
2025-01-16 03:23:46 +00:00
|
|
|
</style>
|