commit
This commit is contained in:
@@ -71,7 +71,7 @@ layout("/layouts/platform_h5.html"){
|
||||
#reader video {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
object-fit: cover !important;
|
||||
object-fit: contain !important;
|
||||
position: absolute !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
@@ -115,7 +115,6 @@ layout("/layouts/platform_h5.html"){
|
||||
|
||||
<div class="footer-container">
|
||||
<van-button v-if="scanStatus" @click="closeScan" block color="#006DB9">关闭扫描</van-button>
|
||||
<van-button v-if="scanStatus" @click="cameraVisible = true" plain type="primary">切换摄像头</van-button>
|
||||
<van-button v-else @click="initCamera" block color="#006DB9">点击扫描</van-button>
|
||||
</div>
|
||||
|
||||
@@ -205,8 +204,6 @@ layout("/layouts/platform_h5.html"){
|
||||
fps: 10,
|
||||
qrbox: size,
|
||||
videoConstraints: {
|
||||
width: { ideal: 1280 },
|
||||
height: { ideal: 720 },
|
||||
facingMode: "environment" // 强制后置(部分浏览器支持)
|
||||
},
|
||||
disableFlip: true, // 防止镜像
|
||||
|
||||
Reference in New Issue
Block a user