修复手机唤醒相机
This commit is contained in:
+9
-1
@@ -18,7 +18,13 @@
|
||||
<div class="search">
|
||||
<div class="search-input">
|
||||
<input id="q" type="text" placeholder="输入条码或名称,支持前缀/后缀/包含" />
|
||||
<button id="scanBtn" class="scan-btn" aria-label="扫码">📷</button>
|
||||
<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>
|
||||
<button id="searchBtn">查询</button>
|
||||
</div>
|
||||
@@ -36,10 +42,12 @@
|
||||
</div>
|
||||
<div id="scannerModal" class="modal hidden">
|
||||
<div class="modal-content">
|
||||
<div id="scannerMessage" class="scanner-message hidden"></div>
|
||||
<div id="scanner"></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