This commit is contained in:
chashaobao
2025-12-07 20:43:06 +08:00
parent 4ed1d45873
commit 587436058a
2 changed files with 4 additions and 3 deletions

View File

@ -67,11 +67,12 @@ function ProductContactDialog(props: Omit<IProps, 'visible'>) {
return; return;
} }
const productInfo = await requestUseProduct(PRODUCT_CODE, { jobId: data.id }); const productInfo = await requestUseProduct(PRODUCT_CODE, { jobId: data.id });
console.log('开始报单'); console.log('开始报单', productInfo);
Taro.eventCenter.trigger(EventName.READ_CONTACT); Taro.eventCenter.trigger(EventName.READ_CONTACT);
handleContact(productInfo.declarationTypeResult); handleContact(productInfo ? productInfo.declarationTypeResult : undefined);
} catch (e) { } catch (e) {
Toast.error('出错了,请重试'); Toast.error('出错了,请重试');
console.log(e);
handleCloseDialog(); handleCloseDialog();
} finally { } finally {
Taro.hideLoading(); Taro.hideLoading();

View File

@ -131,7 +131,7 @@ const AnchorFooter = (props: { data: JobDetails }) => {
return; return;
} }
if (!productInfo.isPaidVip && !productInfo.freeBalance) { if (!productRecord && !productInfo.isPaidVip && !productInfo.freeBalance) {
setShowBuyDialog(true); setShowBuyDialog(true);
return; return;
} }