From 911aa9ce1f4383c55eb5bbf07f4fe99478f31d59 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Mon, 24 Feb 2025 09:41:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(payment):=20=E4=BC=98=E5=8C=96=E8=89=BA?= =?UTF-8?q?=E6=9C=AF=E5=93=81=E8=AF=A6=E6=83=85=E5=92=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E7=9A=84=E6=94=AF=E4=BB=98=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在艺术品详情页添加支付相关数据的存储和处理 - 根据艺术品状态跳转到不同的支付页面 - 在用户主页添加拍卖艺术品UUID的存储 - 优化页面布局,确保元素不被压缩 --- app/pages/artDetail/index.vue | 18 +++++++++++++++--- app/pages/profile/index.vue | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/app/pages/artDetail/index.vue b/app/pages/artDetail/index.vue index 219db6f..bda1817 100644 --- a/app/pages/artDetail/index.vue +++ b/app/pages/artDetail/index.vue @@ -2,9 +2,11 @@ import itemDetail from '@/components/itemDetail/index.vue' import {userArtwork} from "~/api/goods/index.js"; import {useRouter} from "#vue-router"; +import {authStore} from "~/stores/auth/index.js"; definePageMeta({ i18n: 'detail.text8' }) +const { userInfo, payment } = authStore() const route = useRoute() const detail = ref({}) const uuid = route.query.uuid @@ -48,7 +50,17 @@ const stopDrag = () => { isDragging.value = false } const goPay=()=>{ -router.push('/payment') + payment.value.leftPrice=detail.value.leftPrice + payment.value.leftCurrency=detail.value.leftCurrency + payment.value.buyUid=detail.value.uuid + payment.value.auctionArtworkUuid=detail.value?.auctionArtworkUuid + if (detail.value.status===1){ + router.push('/signature/protocol') + }else if (detail.value.status===4){ + router.push('/payment') + } + console.log('detail',detail.value) +//router.push('/payment') } onMounted(() => { document.addEventListener('mousemove', onDrag) @@ -72,7 +84,7 @@ initData()