From 450372ce847c7cfc0cdea7cd782b94eafa29f04f Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 17 Feb 2025 19:54:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(payment):=20=E6=B7=BB=E5=8A=A0=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增支付相关页面和功能 - 优化直播室页面,增加静音提示和加载动画 - 修改首页拍卖信息展示逻辑 - 重构侧边按钮组件,支持拖动和吸附功能 --- app/api/goods/index.js | 8 ++ app/components/liveLoading/index.vue | 107 ++++++++++++++++++ app/pages/home/index.vue | 17 ++- .../components/PaymentInput/index.vue | 1 - .../liveRoom/components/SideButton/index.vue | 56 +++++++-- app/pages/liveRoom/index.client.vue | 83 +++++++++++--- app/pages/payment/index.vue | 68 +++++++++++ app/pages/payment/result/index.vue | 20 ++++ app/pages/signature/panel/index.vue | 2 +- app/static/images/5554@2x1.png | Bin 0 -> 10865 bytes app/static/images/z6022@2x.png | Bin 0 -> 496975 bytes app/stores/live/index.js | 5 +- i18n/locales/zh-CN.json | 5 + 13 files changed, 339 insertions(+), 33 deletions(-) create mode 100644 app/components/liveLoading/index.vue create mode 100644 app/pages/payment/index.vue create mode 100644 app/pages/payment/result/index.vue create mode 100644 app/static/images/5554@2x1.png create mode 100644 app/static/images/z6022@2x.png 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()