feat: 二维码生成插件
parent
e7240d694a
commit
b96d5d79db
@ -0,0 +1,114 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0"
|
||||
/>
|
||||
<title>二维码解码工具</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="style.css"
|
||||
/>
|
||||
<style>
|
||||
/* 为解码页面添加特定样式 */
|
||||
#image-preview-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
margin: 20px 0;
|
||||
padding: 10px;
|
||||
border: 2px dashed #dfe1e6;
|
||||
border-radius: 4px;
|
||||
min-height: 100px;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.preview-item {
|
||||
position: relative;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
cursor: move;
|
||||
}
|
||||
.preview-item img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.preview-item .remove-btn {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
#result-container {
|
||||
margin-top: 20px;
|
||||
}
|
||||
#result-text {
|
||||
width: 100%;
|
||||
height: 150px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>二维码解码 & 拼接工具</h1>
|
||||
<p>上传多个二维码图片,拖拽排序,然后一键解码并拼接内容。</p>
|
||||
|
||||
<div>
|
||||
<label
|
||||
for="qr-input"
|
||||
class="button-like"
|
||||
>选择二维码图片</label
|
||||
>
|
||||
<input
|
||||
type="file"
|
||||
id="qr-input"
|
||||
multiple
|
||||
accept="image/*"
|
||||
style="display: none"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="image-preview-container">
|
||||
<!-- 上传的图片预览将显示在这里 -->
|
||||
</div>
|
||||
|
||||
<button id="decode-btn">解码 & 拼接</button>
|
||||
|
||||
<div id="result-container">
|
||||
<h3>解码结果:</h3>
|
||||
<textarea
|
||||
id="result-text"
|
||||
readonly
|
||||
placeholder="解码后的内容将显示在这里..."
|
||||
></textarea>
|
||||
<button id="copy-btn">复制结果</button>
|
||||
</div>
|
||||
|
||||
<a
|
||||
href="/index.html"
|
||||
class="nav-link"
|
||||
>返回二维码生成器</a
|
||||
>
|
||||
</div>
|
||||
|
||||
<!-- JS 库和逻辑脚本将在这里引入 -->
|
||||
<script src="./js/jsQR.js"></script>
|
||||
<script src="./js/Sortable.min.js"></script>
|
||||
<script src="./js/decode.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue