From 10cba595b0c1576175fcd77d60d2d159659a2b8f Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:02:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor(live):=20=E4=BC=98=E5=8C=96=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E5=AE=A4=E5=8A=9F=E8=83=BD=E5=92=8C=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改艺术品状态更新逻辑,仅在未售出时允许改变状态 - 添加支付按钮点击后跳转到签名协议页面 - 优化侧边按钮组件,增加支付按钮的显示逻辑 --- .../components/PaymentInput/index.vue | 2 + .../liveRoom/components/SideButton/index.vue | 41 +++++++++++-------- app/stores/live/index.js | 4 +- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/app/pages/liveRoom/components/PaymentInput/index.vue b/app/pages/liveRoom/components/PaymentInput/index.vue index 51d20f3..cf9aa63 100644 --- a/app/pages/liveRoom/components/PaymentInput/index.vue +++ b/app/pages/liveRoom/components/PaymentInput/index.vue @@ -9,6 +9,7 @@ const props = defineProps({ default: 0 } }) +const router = useRouter() const emit = defineEmits(['update:show']) const payStatus=ref(0) const changePayStatus=()=>{ @@ -18,6 +19,7 @@ const close=()=>{ emit('update:show',false) } const confirm=()=>{ + router.push('/signature/protocol') emit('update:show',false) } diff --git a/app/pages/liveRoom/components/SideButton/index.vue b/app/pages/liveRoom/components/SideButton/index.vue index 6207636..15d8599 100644 --- a/app/pages/liveRoom/components/SideButton/index.vue +++ b/app/pages/liveRoom/components/SideButton/index.vue @@ -1,42 +1,47 @@