添加无折扣图片

This commit is contained in:
xianyi
2025-12-30 18:22:27 +08:00
parent 0cf99848f0
commit 2156520005
2 changed files with 10 additions and 2 deletions

BIN
src/assets/image/noz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -4,6 +4,7 @@ import type { ExamClient } from '../../data/mockData';
import { searchPhysicalExamAddItem, getAddItemCustomerInfo } from '../../api'; import { searchPhysicalExamAddItem, getAddItemCustomerInfo } from '../../api';
import { Button, Input } from '../ui'; import { Button, Input } from '../ui';
import { cls } from '../../utils/cls'; import { cls } from '../../utils/cls';
import nozImage from '../../assets/image/noz.png';
interface AddonTag { interface AddonTag {
title: string; title: string;
@@ -340,7 +341,7 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
</div> </div>
{/* 加项网格 */} {/* 加项网格 */}
<div className='overflow-y-auto max-h-[366px]'> <div className='overflow-y-auto overflow-x-hidden max-h-[366px]'>
<div className='grid grid-cols-5 gap-3 min-h-[142px]'> <div className='grid grid-cols-5 gap-3 min-h-[142px]'>
{addonError && ( {addonError && (
<div className='col-span-5 text-xs text-amber-600'>{addonError}</div> <div className='col-span-5 text-xs text-amber-600'>{addonError}</div>
@@ -360,9 +361,16 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
return ( return (
<div <div
key={id} key={id}
className='border rounded-lg p-3 cursor-pointer transition-all flex flex-col' className='border rounded-lg p-3 cursor-pointer transition-all flex flex-col relative'
onClick={() => toggleSelect(id)} onClick={() => toggleSelect(id)}
> >
{/* 无折扣标签图片 - 浮动在右上角 */}
<img
src={nozImage}
alt='无折扣'
className='absolute top-[-10px] right-[-10px] w-12 h-12 object-contain pointer-events-none z-10'
/>
{/* 第一行:复选框 + 名称 */} {/* 第一行:复选框 + 名称 */}
<div className='flex items-start gap-2 mb-1'> <div className='flex items-start gap-2 mb-1'>
<input <input