扫码页:改回.vue(WebView)+plus.barcode,全透明无取景框

This commit is contained in:
97694732@qq.com 2026-06-04 16:19:31 +08:00
parent f61adecf02
commit a52a8cc404
3 changed files with 7 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules/
unpackage/
.hbuilderx/
hybrid/
.DS_Store

View File

@ -58,10 +58,7 @@
"path": "pages/upload/scan-isbn",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom",
"app-plus": {
"render": "native"
}
"navigationStyle": "custom"
}
}
],

View File

@ -15,8 +15,10 @@
scanned: false
}
},
onReady() {
mounted() {
this.$nextTick(() => {
this.initBarcode()
})
},
onUnload() {
this.destroyBarcode()
@ -27,7 +29,6 @@
uni.showToast({ title: '扫码初始化失败', icon: 'none' })
return
}
//
var options = {
top: '0px',
left: '0px',
@ -80,6 +81,7 @@
flex: 1;
background-color: #000;
position: relative;
overflow: hidden;
}
.barcode-container {
position: absolute;