修复: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>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<view ref="barcodeContainer" class="barcode-container"></view>
|
<view id="barcodeContainer" class="barcode-container"></view>
|
||||||
<view class="close-btn" @click="goBack">
|
<view class="close-btn" @click="goBack">
|
||||||
<text class="close-icon">✕</text>
|
<text class="close-icon">✕</text>
|
||||||
</view>
|
</view>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initBarcode() {
|
initBarcode() {
|
||||||
if (!window.plus) {
|
if (typeof plus === 'undefined') {
|
||||||
uni.showToast({ title: '扫码初始化失败', icon: 'none' })
|
uni.showToast({ title: '扫码初始化失败', icon: 'none' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user