小程序拍题:接整页点选链路(detect→点框→prepare 逐条勾→import),换相机图标

This commit is contained in:
dev
2026-11-22 21:19:27 +08:00
parent c4f5df3343
commit d6462b9ce2
5 changed files with 331 additions and 135 deletions
+27 -4
View File
@@ -3,6 +3,7 @@
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.mode { margin-left: auto; color: var(--brand); border-color: #f0cfc4; background: #fff7f4; }
/* 空着的时候:一个大方框让人点 */
.shot {
position: relative; height: 210px; border-radius: 16px; border: 2px dashed #e0d5c9;
display: flex; flex-direction: column; align-items: center; justify-content: center;
@@ -13,8 +14,28 @@
.plus { font-size: 40px; color: #c9bda9; line-height: 1; }
.shot-t { margin-top: 8px; font-size: 15px; font-weight: 700; }
.shot-s { margin-top: 4px; font-size: 12px; color: var(--muted); }
.thumb { width: 100%; height: 100%; }
.shot-n { position: absolute; bottom: 10px; font-size: 11px; color: #6b6560; background: rgba(255,255,255,.9); padding: 3px 10px; border-radius: 999px; }
/* 拍完:图 + 切块框 */
.stage { position: relative; margin-bottom: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.page { display: block; width: 100%; }
.overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.blk {
position: absolute; border: 2px dashed rgba(140,130,120,.55); border-radius: 8px;
background: rgba(255,255,255,.04);
}
.blk.on { border: 2px solid var(--brand); background: rgba(179,39,45,.16); }
.blk-n {
position: absolute; left: -2px; top: -2px; min-width: 18px; height: 18px; line-height: 18px;
padding: 0 5px; border-radius: 8px 0 8px 0; background: rgba(140,130,120,.92);
color: #fff; font-size: 11px; text-align: center;
}
.blk.on .blk-n { background: var(--brand); }
.blk-more { font-size: 10px; }
/* 并排两个按钮 */
.row2 { display: flex; gap: 10px; }
.row2 .btn { flex: 1; }
.btn.half { width: auto; }
/* 手输 */
.ta {
@@ -28,6 +49,7 @@
background: #fff; font-size: 15px;
}
/* 逐条勾选 */
.q { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #f5efe8; }
.q:last-of-type { border-bottom: none; }
.box {
@@ -38,9 +60,10 @@
.box.on { background: var(--brand); border-color: var(--brand); }
.qmain { flex: 1; }
.qstem { font-size: 14px; line-height: 1.5; }
.qstem.off { color: #b7afa8; text-decoration: line-through; }
/* 题单预览 */
.queue { border: 1px solid #f0cfc4; background: #fffaf7; }
.queue { border: 1px solid #f0cfc4; background: #fffaf7; margin-top: 16px; }
.qbig { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.qnum { font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1; }
.qunit { font-size: 13px; color: #6b6560; }
@@ -48,7 +71,7 @@
.note { margin-top: 18px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; color: #9a938c; line-height: 1.7; }
.cutinfo {
margin-top: 10px; padding: 8px 12px; border-radius: 10px;
margin: 0 0 12px; padding: 9px 12px; border-radius: 10px;
background: #fbf2e1; border: 1px solid #ecd9b6; color: #7a6440; font-size: 12px;
white-space: pre-line; line-height: 1.6;
}