feat
This commit is contained in:
@ -67,11 +67,12 @@ function ProductContactDialog(props: Omit<IProps, 'visible'>) {
|
||||
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();
|
||||
|
||||
@ -131,7 +131,7 @@ const AnchorFooter = (props: { data: JobDetails }) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!productInfo.isPaidVip && !productInfo.freeBalance) {
|
||||
if (!productRecord && !productInfo.isPaidVip && !productInfo.freeBalance) {
|
||||
setShowBuyDialog(true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user