更新加项pdf接口
This commit is contained in:
@@ -367,8 +367,8 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
|
||||
CombinationCode: combinationItemCodes,
|
||||
});
|
||||
|
||||
if (res.Status === 200 && res.Data?.pdf_url && res.Data?.pdf_sort !== undefined && res.Data?.pdf_sort !== null) {
|
||||
|
||||
if (res.Status === 200 && res.Data?.listPdfInfo && res.Data.listPdfInfo.length > 0) {
|
||||
// 新的接口返回的是数组,至少有一个PDF文件即认为成功
|
||||
return true;
|
||||
} else {
|
||||
console.error('获取加项PDF失败', res.Message);
|
||||
@@ -743,7 +743,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
|
||||
<div className='mt-auto pt-1'>
|
||||
<div className='flex flex-col'>
|
||||
{origPrice >= 0 && origPrice >= currPrice && (
|
||||
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(0)}</span>
|
||||
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(2)}</span>
|
||||
)}
|
||||
<div className='flex items-center justify-between gap-2'>
|
||||
<span className='text-[14px] font-bold text-red-600'>¥{currPrice.toFixed(2)}</span>
|
||||
|
||||
Reference in New Issue
Block a user