diff --git a/app/api/goods/index.js b/app/api/goods/index.js index 3e2a5e7..4c0fee7 100644 --- a/app/api/goods/index.js +++ b/app/api/goods/index.js @@ -69,4 +69,12 @@ export async function fddCheck(data) { method: 'POST', data }) +} +export async function createBuyOrder(data) { + + return await request( { + url:'/api/v1/m/auction/createBuyOrder', + method: 'POST', + data + }) } \ No newline at end of file diff --git a/app/components/liveLoading/index.vue b/app/components/liveLoading/index.vue new file mode 100644 index 0000000..6381dac --- /dev/null +++ b/app/components/liveLoading/index.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/app/pages/home/index.vue b/app/pages/home/index.vue index e1321df..b0fe5ad 100644 --- a/app/pages/home/index.vue +++ b/app/pages/home/index.vue @@ -9,24 +9,29 @@ import {liveStore} from "~/stores/live/index.js"; const {getAuctionDetail, auctionDetail} = goodStore(); const {fullLive} = liveStore() const changeLive = () => { - fullLive.value = true; -}; -if (!auctionDetail.value.uuid) { - await getAuctionDetail() + if (auctionDetail.value.isLiving===1){ + fullLive.value = true; + } } - +await getAuctionDetail()