From 27e694ee0d86be3f7e52013fd86edf8533a67a7c Mon Sep 17 00:00:00 2001 From: Eamon-meng <17516219072@163.com> Date: Mon, 20 Apr 2026 16:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=85=B3=E9=97=AD=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=BC=B9=E7=AA=97=E8=B0=83=E7=94=A8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=8E=A5=E5=8F=A3=20&=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=9C=AA=E5=AE=9E=E5=90=8D=E5=8E=BB=E6=94=AF=E4=BB=98=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- .../composites/payment/payment-modal.tsx | 30 ++++++++-------- .../composites/purchase/shared/side-panel.tsx | 34 ++++++++++++++----- 3 files changed, 41 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 476c38b..070d191 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lanhu-web", - "version": "1.7.0", + "version": "1.8.0", "private": true, "scripts": { "dev": "next dev -H 0.0.0.0 --turbopack", diff --git a/src/components/composites/payment/payment-modal.tsx b/src/components/composites/payment/payment-modal.tsx index c264b72..f399a2c 100644 --- a/src/components/composites/payment/payment-modal.tsx +++ b/src/components/composites/payment/payment-modal.tsx @@ -17,21 +17,21 @@ export type PaymentModalProps = { export function PaymentModal(props: PaymentModalProps) { // 手动关闭时的处理 const handleClose = async () => { - try { - const res = await payClose({ - trade_no: props.inner_no, - method: props.method, - }) - if (!res.success) { - throw new Error(res.message) - } - } - catch (error) { - console.error('关闭订单失败:', error) - } - finally { - props.onClose?.() - } + // try { + // const res = await payClose({ + // trade_no: props.inner_no, + // method: props.method, + // }) + // if (!res.success) { + // throw new Error(res.message) + // } + // } + // catch (error) { + // console.error('关闭订单失败:', error) + // } + // finally { + props.onClose?.() + // } } // SSE处理方式检查支付状态 diff --git a/src/components/composites/purchase/shared/side-panel.tsx b/src/components/composites/purchase/shared/side-panel.tsx index dcba4c0..0967b00 100644 --- a/src/components/composites/purchase/shared/side-panel.tsx +++ b/src/components/composites/purchase/shared/side-panel.tsx @@ -14,6 +14,7 @@ import {ExtraResp} from '@/lib/api' import {formatPurchaseLiveLabel} from './sku' import {User} from '@/lib/models' import {PurchaseFormValues} from './form-values' +import {IdCard} from 'lucide-react' const emptyPrice: ExtraResp = { price: '0.00', @@ -107,15 +108,30 @@ export function PurchaseSidePanel(props: PurchaseSidePanelProps) { ¥{discountedPrice}

{profile ? ( - <> - - - + profile.id_type !== 0 ? ( + <> + + + + ) : ( +
+

+ 根据监管要求,您需要完成实名认证后才能支付。 +

+ + + 去实名认证 + +
+ ) ) : ( 登录后支付