修复:nvue中typeof plus判断+id属性+移除hybrid文件

This commit is contained in:
97694732@qq.com 2026-06-04 16:17:56 +08:00
parent ff9905948c
commit f61adecf02
2 changed files with 2 additions and 3 deletions

View File

@ -1 +0,0 @@
deprecated - use scan-isbn.nvue

View File

@ -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
}