Files
workspace/code/container-ocr/ocr-uniapp/test.html
T
2026-03-25 21:27:48 +08:00

110 lines
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>集装箱录入</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
<!-- 顶部 -->
<div class="bg-white shadow-sm px-4 py-3 text-lg font-semibold">
集装箱录入
</div>
<div class="p-4 space-y-4">
<!-- Step 1 -->
<div class="bg-white rounded-2xl shadow p-4 space-y-4">
<!-- 标题 -->
<div class="flex items-center gap-2">
<div class="w-6 h-6 rounded-full bg-blue-500 text-white text-sm flex items-center justify-center">
1
</div>
<div class="font-medium text-gray-800">
集装箱识别
</div>
</div>
<!-- 输入框 -->
<div>
<label class="text-sm text-gray-500">集装箱号</label>
<input
type="text"
placeholder="请输入或识别集装箱号"
class="w-full mt-1 border rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-400"
/>
</div>
<!-- 拍照 -->
<div class="flex gap-3">
<div class="flex-1 border-2 border-dashed rounded-xl h-28 flex flex-col items-center justify-center text-gray-400">
📷
<div class="text-xs mt-1">拍照识别</div>
</div>
<div class="flex-1 border-2 border-dashed rounded-xl h-28 flex flex-col items-center justify-center text-gray-400">
🖼
<div class="text-xs mt-1">相册上传</div>
</div>
</div>
<!-- OCR结果 -->
<div class="bg-gray-50 rounded-lg p-3 text-sm text-gray-600">
OCR识别结果:<span class="text-gray-400">暂无</span>
</div>
</div>
<!-- Step 2 -->
<div class="bg-white rounded-2xl shadow p-4 space-y-4">
<div class="flex items-center gap-2">
<div class="w-6 h-6 rounded-full bg-green-500 text-white text-sm flex items-center justify-center">
2
</div>
<div class="font-medium text-gray-800">
其他照片录入
</div>
</div>
<!-- 图片列表 -->
<div class="grid grid-cols-3 gap-3">
<!-- 已上传 -->
<div class="relative">
<div class="h-24 bg-gray-200 rounded-lg"></div>
<div class="absolute top-1 right-1 bg-black/50 text-white text-xs px-1 rounded">
✓
</div>
</div>
<!-- 上传按钮 -->
<div class="h-24 border-2 border-dashed rounded-lg flex flex-col items-center justify-center text-gray-400">
➕
<div class="text-xs mt-1">添加</div>
</div>
</div>
<!-- 说明 -->
<div class="text-xs text-gray-400">
可上传箱体、封条、货物等相关照片
</div>
</div>
</div>
<!-- 底部按钮 -->
<div class="fixed bottom-0 left-0 right-0 bg-white border-t p-3">
<button class="w-full bg-blue-500 text-white py-3 rounded-xl text-lg">
提交
</button>
</div>
</body>
</html>