扫码页:改回.vue(WebView)+plus.barcode,全透明无取景框
This commit is contained in:
parent
f61adecf02
commit
a52a8cc404
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
node_modules/
|
||||
unpackage/
|
||||
.hbuilderx/
|
||||
hybrid/
|
||||
.DS_Store
|
||||
|
||||
@ -58,10 +58,7 @@
|
||||
"path": "pages/upload/scan-isbn",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"app-plus": {
|
||||
"render": "native"
|
||||
}
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@ -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;
|
||||
Loading…
Reference in New Issue
Block a user