Browse Source

扫码样式调整

lwx_v5
liwenxuan 11 months ago
parent
commit
29883a7abe
  1. 2
      src/views/home/index.vue
  2. 12
      src/views/home/scanQrCode.vue

2
src/views/home/index.vue

@ -269,7 +269,7 @@ const openNews = (val:any,name:string) => {
</template> </template>
<template #append> <template #append>
<div style="display: flex; justify-content: center; max-width: 15px;"><el-icon :size="20" style="margin-top: 15%;" @click="router.push('/scanQrCode')"><SetUp /></el-icon></div> <div style="display: flex; justify-content: center; max-width: 15px;"><el-icon :size="20" style="margin-top: 15%;" @click="router.push('/scanQrCode')"><i class="fa fa-qrcode"></i></el-icon></div>
</template> </template>
</el-input> </el-input>

12
src/views/home/scanQrCode.vue

@ -66,8 +66,8 @@
{ facingMode: "environment" }, { facingMode: "environment" },
{ {
fps: 5, fps: 5,
qrbox: { width: 300, height: 300 }, qrbox: { width: 300, height: 210 },
aspectRatio: 1.7, aspectRatio: 1.7,//
}, },
(decodedText, decodedResult) => { (decodedText, decodedResult) => {
window.location.href = decodedText; window.location.href = decodedText;
@ -174,12 +174,12 @@
height: 100vh; height: 100vh;
position: relative; position: relative;
width: 100%; width: 100%;
border: red solid 7px; /* border: red solid 7px; */
} }
.qrcode { .qrcode {
height: 90%; height: 90%;
/* width: 100%;*/ /* width: 100%;*/
border: white solid 7px; /* border: white solid 7px; */
} }
#reader { #reader {
display: block; display: block;
@ -188,7 +188,7 @@
/* top: 50%; /* top: 50%;
left: 0; left: 0;
transform: translateY(-50%); */ transform: translateY(-50%); */
border: yellow solid 5px; /* border: yellow solid 5px; */
} }
.btn { .btn {
@ -199,7 +199,7 @@
color: #fff; color: #fff;
font-size: 6vw; font-size: 6vw;
align-items: flex-start; align-items: flex-start;
border: green solid 7px; /* border: green solid 7px; */
} }
</style> </style>
Loading…
Cancel
Save