feat: 添加二维码扫描页面,优化用户界面和扫描功能

This commit is contained in:
2026-01-12 00:44:42 +07:00
parent 4902a155a1
commit 8a7af3783b
4 changed files with 57 additions and 12 deletions

View File

@@ -93,7 +93,6 @@ function stop() {
if (videoInst.value) {
videoInst.value.srcObject = null;
}
emit("close");
}
function handleSelectImage() {
@@ -182,7 +181,7 @@ defineExpose({
>
<div class="absolute left-0 top-0 z-10 p-4 pt-[calc(1rem+var(--ion-safe-area-top,0px))] pl-[calc(1rem+var(--ion-safe-area-left,0px))]">
<button class="z-1 flex items-center" @click="stop">
<button class="z-1 flex items-center" @click="emit('close')">
<ion-icon :icon="chevronBackOutline" class="text-2xl text-white" />
</button>
</div>