修复:nvue中typeof plus判断+id属性+移除hybrid文件
This commit is contained in:
parent
ff9905948c
commit
f61adecf02
@ -1 +0,0 @@
|
||||
deprecated - use scan-isbn.nvue
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="page">
|
||||
<view ref="barcodeContainer" class="barcode-container"></view>
|
||||
<view id="barcodeContainer" class="barcode-container"></view>
|
||||
<view class="close-btn" @click="goBack">
|
||||
<text class="close-icon">✕</text>
|
||||
</view>
|
||||
@ -23,7 +23,7 @@
|
||||
},
|
||||
methods: {
|
||||
initBarcode() {
|
||||
if (!window.plus) {
|
||||
if (typeof plus === 'undefined') {
|
||||
uni.showToast({ title: '扫码初始化失败', icon: 'none' })
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user