添加无折扣图片
This commit is contained in:
BIN
src/assets/image/noz.png
Normal file
BIN
src/assets/image/noz.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
@@ -4,6 +4,7 @@ import type { ExamClient } from '../../data/mockData';
|
||||
import { searchPhysicalExamAddItem, getAddItemCustomerInfo } from '../../api';
|
||||
import { Button, Input } from '../ui';
|
||||
import { cls } from '../../utils/cls';
|
||||
import nozImage from '../../assets/image/noz.png';
|
||||
|
||||
interface AddonTag {
|
||||
title: string;
|
||||
@@ -340,7 +341,7 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
|
||||
</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]'>
|
||||
{addonError && (
|
||||
<div className='col-span-5 text-xs text-amber-600'>{addonError}</div>
|
||||
@@ -360,9 +361,16 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
|
||||
return (
|
||||
<div
|
||||
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)}
|
||||
>
|
||||
{/* 无折扣标签图片 - 浮动在右上角 */}
|
||||
<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'>
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user