优化
This commit is contained in:
+2
-26
@@ -2,7 +2,7 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<title>益选便利店商品查询</title>
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
@@ -16,16 +16,7 @@
|
||||
<section id="searchSection" class="section">
|
||||
<h1>益选便利店商品查询</h1>
|
||||
<div class="search">
|
||||
<div class="search-input">
|
||||
<input id="q" type="text" placeholder="输入条码或名称,支持前缀/后缀/包含" />
|
||||
<button id="scanBtn" class="scan-btn" aria-label="扫码" title="扫码">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
||||
<path d="M4 7a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7z" stroke="#444" stroke-width="1.5" fill="#fff"/>
|
||||
<rect x="9" y="9" width="6" height="6" rx="3" stroke="#444" stroke-width="1.5" fill="#fff"/>
|
||||
<path d="M7 4l2 3h6l2-3" stroke="#444" stroke-width="1.5"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<input id="q" type="text" inputmode="search" placeholder="输入条码或名称,支持前缀/后缀/包含" />
|
||||
<button id="searchBtn">查询</button>
|
||||
</div>
|
||||
<div id="results" class="results"></div>
|
||||
@@ -40,21 +31,6 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div id="scannerModal" class="modal hidden">
|
||||
<div class="modal-content">
|
||||
<div id="scannerMessage" class="scanner-message hidden"></div>
|
||||
<div id="scanner" class="scanner-area"></div>
|
||||
<div class="scanner-controls">
|
||||
<button id="toggleTorch" class="hidden">开灯</button>
|
||||
<label id="zoomWrap" class="hidden">
|
||||
缩放
|
||||
<input id="zoom" type="range" min="1" max="5" step="0.1" value="1" />
|
||||
</label>
|
||||
</div>
|
||||
<button id="closeScanner">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
<input id="captureInput" type="file" accept="image/*" capture="environment" class="hidden" />
|
||||
<script src="/static/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user