fix(goods): 修复首页和直播室页面的问题
- 在 liveRoom 页面中添加 getAuctionDetail 调用,以获取拍卖详情 - 在 home 页面中移除不必要的 getAuctionDetail
This commit is contained in:
parent
3db1666c04
commit
a11700a15a
@ -5,7 +5,7 @@ import ItemList from './components/ItemList/index.vue'
|
|||||||
import Cescribe from './components/Cescribe/index.vue'
|
import Cescribe from './components/Cescribe/index.vue'
|
||||||
|
|
||||||
import {liveStore} from "~/stores/live/index.js";
|
import {liveStore} from "~/stores/live/index.js";
|
||||||
const {getAuctionDetail, auctionDetail,getArtworkList} = goodStore();
|
const {auctionDetail,getArtworkList} = goodStore();
|
||||||
const {fullLive} = liveStore()
|
const {fullLive} = liveStore()
|
||||||
const changeLive = () => {
|
const changeLive = () => {
|
||||||
if (!fullLive.value){
|
if (!fullLive.value){
|
||||||
@ -16,7 +16,7 @@ const changeLive = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await getAuctionDetail()
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="grow-1">
|
<div class="grow-1">
|
||||||
|
@ -14,7 +14,7 @@ import {showConfirmDialog} from 'vant';
|
|||||||
import {artworkBuy} from "@/api/goods/index.js"
|
import {artworkBuy} from "@/api/goods/index.js"
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const { auctionDetail} = goodStore();
|
const { auctionDetail,getAuctionDetail} = goodStore();
|
||||||
const player = ref(null)
|
const player = ref(null)
|
||||||
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
|
const {quoteStatus, show, playerId, show1, auctionData, getSocketData, getLiveLink, fullLive} = liveStore()
|
||||||
const pullLink = ref('')
|
const pullLink = ref('')
|
||||||
@ -98,6 +98,7 @@ const initializePlayer = async () => {
|
|||||||
|
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
await getAuctionDetail()
|
||||||
pullLink.value = await getLiveLink()
|
pullLink.value = await getLiveLink()
|
||||||
if (auctionDetail.value.isLiving===1){
|
if (auctionDetail.value.isLiving===1){
|
||||||
initializePlayer()
|
initializePlayer()
|
||||||
|
Loading…
Reference in New Issue
Block a user