|
@@ -137,7 +137,7 @@ export default {
|
|
|
this.cameras = new Html5Qrcode('reader')
|
|
this.cameras = new Html5Qrcode('reader')
|
|
|
this.cameras.start(
|
|
this.cameras.start(
|
|
|
{ facingMode: { exact: 'environment' } },
|
|
{ facingMode: { exact: 'environment' } },
|
|
|
- { fps: 10, qrbox: { width: 250, height: 250 } },
|
|
|
|
|
|
|
+ { fps: 10 },
|
|
|
this.CamerasSuccess
|
|
this.CamerasSuccess
|
|
|
)
|
|
)
|
|
|
},
|
|
},
|
|
@@ -334,4 +334,21 @@ export default {
|
|
|
transform: translateY(0);
|
|
transform: translateY(0);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+#reader__dashboard_section_cameras,
|
|
|
|
|
+#reader__dashboard_section_swaplink,
|
|
|
|
|
+#reader__header_message,
|
|
|
|
|
+#reader__scan_region > div {
|
|
|
|
|
+ display: none !important; /* 隐藏默认的一些 UI */
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+#reader__scan_region video {
|
|
|
|
|
+ width: 100% !important;
|
|
|
|
|
+ height: 100% !important;
|
|
|
|
|
+ object-fit: cover; /* 视频填充满容器,裁切多余部分 */
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// #reader__dashboard {
|
|
|
|
|
+// display: none !important;
|
|
|
|
|
+// }
|
|
|
</style>
|
|
</style>
|