From 587436058acdcac9d33d277bf72a3cd8651ad2c5 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Sun, 7 Dec 2025 20:43:06 +0800 Subject: [PATCH] feat --- src/components/product-dialog/contact/index.tsx | 5 +++-- src/pages/job-detail/index.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/product-dialog/contact/index.tsx b/src/components/product-dialog/contact/index.tsx index 13ee976..edfc3fe 100644 --- a/src/components/product-dialog/contact/index.tsx +++ b/src/components/product-dialog/contact/index.tsx @@ -67,11 +67,12 @@ function ProductContactDialog(props: Omit) { return; } const productInfo = await requestUseProduct(PRODUCT_CODE, { jobId: data.id }); - console.log('开始报单'); + console.log('开始报单', productInfo); Taro.eventCenter.trigger(EventName.READ_CONTACT); - handleContact(productInfo.declarationTypeResult); + handleContact(productInfo ? productInfo.declarationTypeResult : undefined); } catch (e) { Toast.error('出错了,请重试'); + console.log(e); handleCloseDialog(); } finally { Taro.hideLoading(); diff --git a/src/pages/job-detail/index.tsx b/src/pages/job-detail/index.tsx index 3444c51..b2a641e 100644 --- a/src/pages/job-detail/index.tsx +++ b/src/pages/job-detail/index.tsx @@ -131,7 +131,7 @@ const AnchorFooter = (props: { data: JobDetails }) => { return; } - if (!productInfo.isPaidVip && !productInfo.freeBalance) { + if (!productRecord && !productInfo.isPaidVip && !productInfo.freeBalance) { setShowBuyDialog(true); return; }